Get Function
Get function is used in case that you’d like to use data from input parameters or AS400 screen to create business logics. To use a get function:
- Click Get on CODE PROPERTIES popup to use the function
- Select Interface Type, Function, and Requirements for function respectively
Available Get functions :
Interface Type | Function | Description | Required |
Input | getContextData(fieldName) | Get field names of input parameters needed for further process. In most cases, after getting a field name, value must be got for further use. | fieldName of input parameter that you want to get |
getAll() | Get all fields from input parameters. | ||
Host | getMessages() | Get a message at the default line on AS400 screen. Noted that row of default line varies on screen size. | |
getContextData(fieldName, screen) | Get field names of input parameters of AS400 screen needed for further process. In most cases, after getting a field name, value must be got for further use. | – fieldName of needed input parameter – AS400 screen that fields are in. | |
getAll() | Get all fields from input parameters of AS400 screen. | ||
getAll(screen) | Get all fields from selected AS400 screen | AS400 screen that fields are in | |
getScreenString() | Get all information on AS400 screen in text format | ||
getScreenString(row, col, length) | Get field value at specific position on AS400 screen | Row, column, and length of field on AS400 screen |
- Click OK to confirm selection
- Selected get function will be encoded and shown in whitespace of CODE EDITOR
- Click DONE to save coding