Graphics Builder > Genies > Dynamically Instantiate a Genie at Runtime

Dynamically Instantiate a Genie at Runtime

Use the DspSym Cicode function with a Genie to dynamically display content that is only generated at runtime. DspSym can be used with or without an expression.

At runtime when the page is refreshed or the operator clicks away from the page the instantiated genie is deleted.

Note: ActiveX objects and controls (such as Process Analyst, Database Exchange Control, Pelco Camera View Control, Scheduler, and the Web Gate Control) are not supported. If used and the "I want to use this Genie with Cicode Function DspSym" is selected then on saving the page the following error message will be displayed:
Genie cannot be saved.
Genies cannot contain ActiveX controls when configured to be used with the cicode function DspSym.
You must remove all ActiveX controls to continue.
To save the page deselect the checkbox or remove or delete the ActiveX controls used in the genie.

To edit the properties of the Genie:

  1. Open Graphics Builder.
  2. Click the Open button on the toolbar, or select Open from File menu.
  3. Select the Genie tab.
  4. Select the Project and Library in which the Genie is stored.
  5. Select the Genie.
  6. Click OK.
  7. Right click on the page and select Page Properties
  8. Select the option "I want to use this Genie with Cicode Function DspSym"
  9. Click OK
  10. If the Genie or an object within the genie uses substitution '%%' syntax in the expression, replace the substitution with the full expression so it can be used at runtime. If you do not edit the substitution a compile error message may be displayed.
  11. Note: You can define Metadata instead of using the full expression.

See Also

Published June 2018