Connection
The Connection control specifies a connection to an application, server, or site. The control properties determine the source database name and other parameters needed to establish the initial connection; as well as any required data bindings.
The ConnectionString property for the Connection control is used to configure the details for the connection.
Note: If you want to use a connection to the current Micromine Geobank database, use a GbConnection.
Properties
The key properties for the Connection control include:
-
ConnectionString. Specifies connection details, including credentials for connecting to the application, server or site.
-
DataBindings. Specifies the configured DataBindings for the connection.
Events
Events can be configured for the Connection to specify the behaviour of the Data control. For example, an action can be configured to occur when a connection property is changed using the PropertyChanged event property.
For information on configuring events and other components of the design using a script, see: Working with Scripts.
Adding a Connection
When you drag a Connection control from the Toolbox to a form in the Flow Designer, it will appear as an entry in the design space. You can select the control and configure it using the Properties pane.
To configure the ConnectionString, click the ellipsis at the right of the field to open the Data Link Properties form.
Use the tabs of the Data Link Properties form to configure the connection for the control. Information on the settings for the Data Link Properties form is contained in Connect to a Configuration Database.
When the connection has been properly established, you can set the relevant DataBindings using the control property.
For more information on using a Connection to read and display data, see Working with Data.