Check Function
Check function is used for checking field names and values of input parameters and/or check screen and other attributes of AS400 screens. To use a check function:
- Click Check on CODE PROPERTIES popup to use the function
- Select Interface Type, Function, and Requirements for function respectively
Available Check functions :
Interface Type | Function | Description | Required |
Input | containsKey(fieldName) | Check specific field name of input parameters | fieldName of needed input parameter |
checkBlank(fieldName) | Check if the value of specific field name of input parameters is empty or null | fieldName of needed input parameter | |
Host | checkScreen(screen) | Compare between current AS400 screen and specific AS400 screen | AS400 screen wanted to check |
checkScreen(text, row, col) | Check specific text at specific position on AS400 screen | Row, column of position and text needed to check on AS400 screen | |
checkBlank(fieldName, screen) | Check if the value of specific field name of specific AS400 screen is empty or null | – fieldName of needed field AS400 screen – AS400 screen needed to check | |
checkErrorMsg(row, col) | Check error message at specific position on AS400 screen | Row and column of position on AS400 screen | |
checkAndThrowErrorMsg(row, col, errorCode) | Check error message at specific position on AS400 screen and return selected error code | – Row and column of position on AS400 screen- Select available errorCode as follows: 1. RESPONSE_CODE_AUTHENTICATION_FAILED2. RESPONSE_CODE_CANNOT_CONNECT_HOST3. RESPONSE_CODE_HOST_ERROR4. RESPONSE_CODE_HOST_TIMEOUT5. RESPONSE_CODE_INCORRECT_DATA6. RESPONSE_CODE_REQUIRE_INPUT7. RESPONSE_CODE_PAGE_NOT_FOUND8. RESPONSE_CODE_SESSION_FAIL9. RESPONSE_CODE_SESSION_SUCCESS10. RESPONSE_CODE_USER_NOT_ALLOW11. RESPONSE_CODE_USER_EXPIRED |
- Click OK to confirm selection
- Selected check function will be encoded and shown in whitespace of CODE EDITOR
- Click DONE to save coding