Using the web component in programs

Once a web component field is defined in the form file with the WEBCOMPONENT item type, it can be used as a regular edit field in program dialogs.

For example:
DEFINE mychart STRING
DEFINE data_array DYNAMIC ARRAY OF RECORD ...
...
LET mychart = array_to_chart( data_array )
DISPLAY BY NAME mychart 
...
INPUT BY NAME mychart 
  AFTER FIELD mychart 
    CALL deserialize( mychart, data_array )
...

The data format is completely specific to the component. The data must be serialized in the program, and de-serialized it in the onData function of gICAPI.

Use the PROPERTIES attribute to pass the data and use JSON to handle it in the onProperty function of gICAPI.

Keep in mind that all data will be transmitted through the abstract user interface protocol; transmitting a lot of data will not be efficient and is likely to slow down your application.