Using scripting objectsMeridian Enterprise 2013 Developer's Guide | BlueCielo ECM Solutions

Like the client-side classes, scripting classes can help simplify some programming tasks. But be aware, the classes have been optimized for use from VBScript and require proper initialization; otherwise a run-time error (exception) will be generated.

The central class of the SDK scripting model is the BCSMetadata class that allows you to instantiate other script classes (like the BCRepository class provides instantiation of server-side classes).

Before using a scripting object, you must create and initialize the BCSMetadata object with BCServiceProvider object as a parameter in the constructor.

The following example shows how to read values from a table in a standalone application.

In order to use either a BCSDocument or BCSFolder object, you must initialize BCSMetadata with the BCServiceProvider object and the proper BCFSObject. The following example shows how to get the Web Access URL of a document in a stand-alone application.

In a user interface extension, scripting objects are initialized by the host application and accessible via the ExtensionHost.ScriptObjects property. It replaces the Visual Basic 6 designer API and provides the same functionality as DocumentDetails, FolderDetails, ClientDetails, and VaultDetails properties of the AMUIExtension object.

See Also

Other Resources