Smart Controls |
|
NOMADS Smart Controls allow you to create controls that auto-load data. A dataset based on a Query object definition can be automatically loaded into all types of List Box, Drop Box, Grid, Multi-Line or Chart controls or written into a data file - with little or no additional coding.
Standard List Boxes, Drop Boxes and List View List Boxes will display lists consisting of a single column. Formatted List Boxes, Report View List Boxes and Grids will display multiple columns with titles. Smart Multi-Lines are display-only lookup fields that are loaded with a single value. Smart Charts will display a graphical representation of the data.
With Smart List controls, you can set up columns and filter records based on a simple Query List definition. Column formats can be derived automatically from the Query definition; however, you can override this. The Query definition also supplies the information to automatically do all the file handling to create the dataset that will be loaded into the Smart control, including reading the main and cross-reference files and filtering the data to attain only the required records.
Smart Chart controls are based on Query+ public AutoChart definitions, which can be created in the Query Definition or at run-time through the Query AutoChart feature.
You can also determine exactly when to load and reload the Smart control by specifying the fields/variables that will trigger that event. When the value in a trigger variable changes, this causes the Load logic to be invoked. If no trigger variable is specified, the list will be loaded after the panel is drawn. For further control, a conditional trigger test can be defined so that the loading process is only invoked when the test is true. Pre- and Post-Load logic may also be specified. Any type of List Box, Drop Box, Grid, Multi-Line or Chart can be used with any selection of attributes.
Smart Controls can also be used to load the dataset into a data file instead of a NOMADS control. A CALL to the *winlist interface loads the data into a Keyed File (with internal or external keys), a Serial File, or a keyed *MEMORY* file. Key information is derived from the first column of the Query definition. The resulting file can be used as a temporary file, for example, when creating reports.
Smart List Boxes, Drop Boxes, Grids, Multi-Lines: |
|
Smart Charts: |
|
Smart File: |