ui.Dialog.getFieldValue
Returns the value of a field controlled by a dynamic dialog.
Syntax
getFieldValue(
name STRING )
- name is the name of the form field, see Identifying fields in dialog methods.
Usage
The
getFieldValue() method can be used when implementing a dynamic
dialog, to return the value of a
field:DISPLAY d.getFieldValue( "customer.cust_addr" )In a dynamic dialog controlling a list of records (INPUT ARRAY /
DISPLAY ARRAY), this method returns the value for a field in the current row.
Important:
- During dialog execution, the
getFieldValue()method must only be used to get the value of a field for the current row. Calling thesetCurrentRow()method to change the current row before callinggetFieldValue()will have no effect. - In a
DISPLAY ARRAYusing the paged mode (ON FILL BUFFER),getFieldValue()returnsNULL, if the current row is not part of the visible page. In aDISPLAY ARRAYusing the full list mode, aNULLvalue is returned, if there is no current row (when the array is empty).