FAB's primary container for the field values are stored in the the Fields area Area Section of the application definition. For every Bound Field, this assignment should be reflected in the Fields area. FAB provides an automated way of creating the Field Name when it is assigned to the Bound Field of the element.
The Fields can be accessed in Javascript using the FAB delivered functions:
getField("fieldName")
setField("fieldName", value)
...
Tip | ||
---|---|---|
| ||
It is highly recommended to mark the Use Data Model from the Properties sections and use the FAB Data Model Node in building up the fields, structures and structures tables list. The fields from the FAB Data Model Node will still have to be assigned to the Bound Field of the relevant control element. This will in turn create the same field list in the Fields Area Section like what has been exhibited in the above example.
FAB Data Model Node is similar to the Fields with the following additional characteristics:
Advantages of using the FAB Data Model Node FAB
How to use the FAB Data Model Node.
|
Sample FAB Application
Upload this XML file in the FAB Workbench (TCODE /IQX/FAB) View file name ADAM_DEMO_DATA_MODEL_000001.xml height 250
Create a class in SE24 with the name YCL_ADAM_DEMO_DATA_MODEL. Once created, switch the Class in Source Code-Based mode by clicking on then copy and paste the code from the file below. Activate the class View file name YCL_ADAM_DEMO_DATA_MODEL height 250
Related articles
Filter by label (Content by label) | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...