Transferring VisiconX Objects into Proficy Portal

VisiconX objects are part of iFIX and are used for displaying data from and connecting to relational data sources via OLE DB providers.VisiconX is a suite of the following four ActiveX objects:

The Proficy iFIX WorkSpace is the container for the objects. The Data Control connects to any database including the iFIX database. The Grid, ListBox, and ComboBox Controls display the data retrieved by connecting to the Data Control through object-to-object animation.

The following illustration depicts how VisiconX works within the iFIX WorkSpace. In the following figure, each Data Control is configured to access an OLE DB data provider.

Proficy Portal has much of the same functionality and is used for building similar types of applications, through there is no direct match-up between VisiconX and Proficy Portal components. The following table shows the mapping of VisiconX components into equivalent Proficy Portal functionality.

VisiconX

Proficy Portal

Data Control

Data source configuration – Administration application

Schema – SQL Statement Builder

Statement – SQL Statement Builder

Grid Control

Grid component – Proficy Portal client

ListBox Control

List Box control – Proficy Portal client

ComboBox Control

Combo box control – Proficy Portal client

Data Control

The VisiconX data control combines the definition of the OLE DB provider connection and the SQL statement to be used. The SQL statement can be parameterized using the controls parameters. As a client component, VisiconX allowed connection to the data source to be controlled using methods of the control. In Proficy Portal, the connection state is common for all clients and is managed by the server and cannot be user-controlled; however, other options not available in VisiconX, such as results caching and connection pooling, are available.

The first two dialog boxes of the VisiconX data control provide the information needed to configure the data source connector.

 

The Provider tab identifies the data source. To configure the data source connector requires the ProgID of the selected provider. In the case of the selected Historian OLE DB Provider, the ProgID is IhOLEDB.iHistorian. Connection to the data source is managed at the server and is not configurable. The author of the OLE DB provider should define the ProgID in the provider documentation.

 

The Database tab provides the other details of the OLE DB connection string. These map into the URL for the jadoZOOM ADO bridge JDBC driver provided. The format of this URL when used for OLDBD connections is as follows:

jdbc:izmado:Provider=ProviderName;Server=ServerName;Database=DatabaseName;[property=value;]

Where:

User name and Password directly map to the data source configuration, while options for password prompting and use of Windows integrated security are configured per user or role.

 

The final Record Source tab allows configuration of the data returned. The drop-down list roughly corresponds to the schema definition in Proficy Portal, by selecting either tables, SQL commands, or stored procedures. Refer to the following for details:

Parameters within VisiconX queries are identified as QP1 through QP32; within Proficy Portal they are defined as parameters using the graphical editing tools. Any parameterized queries will need to be rewritten within the Statement Builder, and the parameters need to be linked in the client display.

There are no equivalents to the methods of the VisiconX Data Control, and use of Data Control properties, including the 64 field properties may be substantially different. If the field properties are used in the display then additional filter criteria may be required in the SQL statement to return a single record as equivalent to the Filed property.

Grid Control

The VisiconX Grid control is roughly equivalent to the Proficy Portal Grid Component. While both items perform similar tasks specific functionality differs between the two.

In general the simple case of connecting the ADORecords property of a Data control to the ADORecords property of the Grid control to have the grid provide a data bound display of the record set, is the equivalent of a Proficy Portal Grid component connected to an equivalent SQL statement. Other applications using different properties and methods need to be evaluated individually to determine equivalent functionality.

ListBox Control

The VisiconX ListBox control is equivalent to the Proficy Portal ListBox control. While both items perform similar tasks, specific functionality varies between the two.

In general the simple case of connecting the ADORecords property of a Data control to the ADORecords property of the ListBox control to have the list box provide a data bound display of the record set is the equivalent of a Proficy Portal ListBox connected to an equivalent SQL statement. Other applications using different properties and methods need to be evaluated individually to determine equivalent functionality.

ComboBox Control

The VisiconX ComboBox control is equivalent to the Proficy Portal ComboBox control. While both items perform similar tasks, specific functionality varies between the two.

In general the simple case of connecting the ADORecords property of a Data control to the ADORecords property of the ComboBox control to have the combo box provide a data bound display of the record set is the equivalent of a Proficy Portal ComboBox connected to an equivalent SQL statement. Other applications using different properties and methods need to be evaluated individually to determine equivalent functionality.