Web site configuration: db.config
The db.config file resides in the admin sub-folder within the website folder. DesignBais uses the db.config file to determine how to connect to the database.
The default connection path is defined in what we call the null qcode entry point. This is the entry point shown to the right
<entryPoint qcode="">.
It is the recommended way to connect RD users. The
normaluser could be set up to have a login form in which each user enters their user id and password and are then directed to their start account and start form. The start form should be an RD form.
The db.config file may contain multiple entry points. By using a "?ac=name" query string in the url used to access DesignBais you can direct DesignBais to commence in a particular account. See the example to the right
<entryPoint qcode="website">. A url like:
192.111.111.122/dbnet/?ac=website
will find this entry point and connect to the database account named DBINETWEBSITE using the login credentials of user dbnetuser with password pwxxxxxxx.
The DesignBais user for the session, however, is taken from the loginPublicUser. So the WEBLOGON for the session will be in this example
salesuser.
The rule to be followed by RD form designers is to ensure they are in the same database account as the database files they plan to use.
When publishing an RD form make sure that this is done in the account in which the application is to run. The publish step will create, or update, a record in the DBIFORMHTML file. In environments where there is more than one set of DesignBais accounts the developer should make sure that they are referencing the correct DBIFORMHTML file. The status bar displayed at the base of the forms designer tool shows the account name and the work folder name.