XmlNF (variable name : value : length : disabled)
variable name = Constant or numeric field (30A)
value = Constant or numeric field (30A)
value = Length of display field (2.0) (optional)
*on/*off = Disable field (optional)
Return type:
Encoded XML string
Description:
XmlNF returns a HTML encoded display field in XML. This is a primary function for building fields to the browser.
This is normally used in conjunction with PutXmlRec function
Example:
Creates a field on the browser with the size of the formatted value of the field + 3 blanks
Eval string = xmlNF(‘amount’:cust_balance)
Creates a field on the browser with the size 20
Eval string = xmlNF(‘amount’:cust_balance :20)
Creates a field on the browser with the size of the field definition in file SSAPD012P, and disables it.
Eval string = xmlNF(‘amount’:cust_balance :0:*off)
Functions in the statement are allowed, and often used.
Eval string = xmlNF(‘amount’:cust_balance + number)
Notes and Restrictions:
The variable name is case sensitive.