Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


When a Form an App loads it may be necessary to default some data. There are two three ways of doing this.
 

  • providing default values for the Fields in the FAB Workbench 
  • implementing method methods DETERMINE_INITIAL_FIELD_VALUES or DETERMINE_FIELD_VALUES

...

  • _ON_LOAD
  • setting the values during load of the App

           1. Providing default values using the FAB Workbench

...

Note: for defaulting field values after a form has already been submitted at least once (ie as part of a workflow), implement method DETERMINE_FIELD_VALUES_ON_LOAD
Important: always call the SUPER method in this implementation so that system fields such as the current user name will be determined correctly at run-time.

...

 
This method is called once for each field in the form via parameter I_FIELD_NAME and the method may set the value of each field using the parameter E_FIELD_VALUE.
 
A typical implementation is as follows:

4. Set values on load of the App

On the function defined in the OnLoad of the Page, the values can be set.
Image Added

Image Added



Info

Filter by label (Content by label)
showLabelsfalse
max5
spacesIFAB
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("default","runtime","values") and type = "page" and space = "IFAB"
labelsruntime default values

...