Accessing data and model information from a UI component

Database application development is a feature of JBuilder Professional and Enterprise. Distributed application development is a feature of JBuilder Enterprise.

If you set the dataSet property on a component, you should avoid accessing the DataSet data or model information programmatically through the component until the component's peer has been created; basically, this means until the component is displayed in the application UI.

Operations which fail or return incorrect/inconsistent results when executed before the component is displayed in the application UI include any operation that accesses the model of the component. This may include,

To assure successful execution of such operations, check for the open() event notification generated by the DataSet. Once the event notification occurs, you are assured that the component and its model are properly initialized.