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:

  1. Click Get on CODE PROPERTIES popup to use the function
  2. Select Interface Type, Function, and Requirements for function respectively 

Available Get functions :

Interface TypeFunctionDescriptionRequired
InputgetContextData(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.
HostgetMessages()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 screenAS400 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 screenRow, column, and length of field on AS400 screen
  1. Click OK to confirm selection
  2. Selected get function will be encoded and shown in whitespace of CODE EDITOR  
  1. Click DONE to save coding