Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Ask Reuben 164 - ComboBox Initializer Function  (Read 5073 times)
Reuben B.
Four Js
Posts: 1116


« on: February 17, 2023, 04:33:46 am »

The list of entries that appear in a COMBOBOX can be populated programmatically.  That is rather than defining a static list using the ITEMS attribute,  you can populate it at runtime via 4gl code.  This can use the INITIALIZER syntax in the form file to indicate what function to use to populate the ComboBox item list when the form is loaded.
 
There is an error that can occur when using INITIALIZER due to an optimisation process at link time for which there are some simple solutions.

Read more at https://4js.com/ask-reuben/ig-164/

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines