|
|
|
BlueCielo Meridian Enterprise 2012 Developer's Guide | BlueCielo ECM Solutions |
Opens a vault for reading or writing. The parameters determine the view on the vault.
Sub OpenRepository(
[DataStoreName As String],
[SectionName As String],
[Moment],
[WorkPackage As AMWorkPackage],
[UserMode As Boolean = True],
[Environment As AMEDMEnvironment],
[TRANSACTIONMODE As TRANSACTIONMODE = TM_READCOMMITTEDCACHED],
[lpAMAsyncErrorSink As IAMAsyncErrorSink]) Sub OpenRepositoryEx(
[DataStoreName As String],
[SectionName As String],
[Moment],
[WorkPackage],
[Reserved As Boolean = False],
[Environment As AMEDMEnvironment],
[TRANSACTIONMODE As TRANSACTIONMODE = TM_READCOMMITTEDCACHED],
[lpAMAsyncErrorSink As IAMAsyncErrorSink])
Name | Description |
---|---|
DataStoreName |
See Remarks. |
SectionName |
See Remarks. |
Moment |
See Remarks. |
WorkPackage |
See Remarks. |
UserMode |
Default is True. To open the vault in Submitted mode, this argument should be False. |
Environment |
Reserved. See About reserved objects, methods, and properties. Must be Nothing. |
TransactionMode |
Use the default value TM_READCOMMITTEDCACHED. |
lpAMAsyncErrorSink |
Reserved. See About reserved objects, methods, and properties. Must be Nothing. |
Meridian Enterprise client applications use the AMDocumentRepository object as the connection to the EDM server. To access a specific vault on the server, any client must call OpenRepository(Ex).
Opening the vault will start a database transaction. Changes to the vault will be saved when the transaction is committed using CloseRepository method or ReOpen method.
Any call to OpenRepository(Ex) must be matched with a call to CloseRepository method. There can be intermediate calls to ReOpen method.
DataStoreName
Each vault is stored in a separate DataStore (see About property effectivity). If you omit this argument, the datastore for the default vault will be opened.
To open another vault, use the name of the datastore that stores the vault.
SectionName
Specifies the name of the vault that will be opened. Leave this value empty to open the default section of the vault.
Moment
Specifies the DATE at which to open the vault in history mode. By default the vault is opened in the present time.
WorkPackage
By default the vault is opened in the context of the Main area. You can open the vault in a work area by passing a reference to the AMWorkPackage object.
OpenRepositoryEx also accepts a work area ID.
Related information
Copyright © 2000-2012 BlueCielo ECM Solutions |