Version: 10.8.1b |
| ArcFM Desktop Overview > ArcFM Overview > Login Objects > Using the Default Login Object |
|
To make the task of writing custom login objects easier, we provide a means of reusing our implementation of MMDefaultLoginObject. The ArcFM Default Login Object is provided as a coclass that your custom login object can create and use to perform the process of connecting to an ArcFM system database. Your custom login object could collect the necessary connection properties and pass them to the SetConnectionProperties method on the IMMDefaultLoginObject Interface. Then, you can set the ShowDialog property to FALSE. Subsequent calls to Login on the MMDefaultLoginObject will use the connection properties to login, without bringing up the default login dialog. Your implementations of GetFullTableName, IsValidLogin, LoginWorkspace and UserName could be written to call those routines on the MMDefaultLoginObject. |
|
When using the default login object to connect to a database, you will provide the connection information that it requires. This connection information is similar to the information you provide in ArcCatalog to make an SDE connection. In order to connect to an ArcFM system database in ArcSDE, you will need to set the following properties:
SERVER - Specify the name of the machine which is running the ArcSDE service.
INSTANCE - This specifies the name of the ArcSDE service, or its port number, running on the SERVER.
USERNAME - A valid user name with which to login to the SDE service.
PASSWORD - The password belonging to USERNAME.
VERSION - Specify the SDE version to which the connection will be made.
DATABASE - Always set to "SDE." Note that when using the default login object, this property will be automatically set to "SDE." When writing your own implementation, this must be specified explicitly. ArcFM requires that its system tables be stored in the SDE database schema.
AUTHENTICAION_MODE - (SDE only.) The mode of authentication to be used to validate the username and password. Operating System (OSA) uses the Windows username and password. Database (DBMS) uses the username and password stored in the database. Valid options: OSA and DBMS.
When connecting to a personal geodatabase, the only connection properties that are required are the following:
DATABASE - Specify the path to the personal geodatabase and its filename.
USERNAME - Specify the user with which to login to the ArcFM system database. This is so user-specified page templates, stored displays, documents, and favorites can be stored under the USERNAME in ArcFM’s system tables.
These properties need to be set in a PropertySet (Esri ArcObjects) object that will then be passed into the default login object via the SetConnectionProperties method on the IMMDefaultLoginObject interface.