Function related to status
f-xstafirst
After setting status group in X/E Repository file, the function searches the status group in ‘xstatus’ table. If it finds the status group and if the field xsta.xstalinit is set to true then it returns the initial status from status group. It is used to find the initial status for the required table defined in status group.
ReturnType: Character
AppliesTo: Data
Used as:
This function is used as f-xstafirst(input tableName,input initialStatus).
Input Parameters
Parameters | Data Type | Description |
---|---|---|
tableName | Character | Table name |
initialStatus | Logical | If true then returns comma-separated initial status code with description (e.g. xstatus, xstac, xstatus.xstam) else it returns only initial status code (e.g. xstatus.xstac). |
f-xstanext
If the status trajectory holds record satisfying the status group, trajectory condition, current status and program change, then it returns the “To Status” else the same current status is returned.It finds the required status as per the condition supplied.
ReturnType: Character
AppliesTo: Data
Used as:
The function is used as f-xstanext(input tableName,input currentStatus,input condition,input changeState,input rowID).
Input Parameters
Parameters | Data Type | Description |
---|---|---|
tableName | Character | Table name |
currentStatus | Character | Current status |
condition | Character | Changed to next status as per the condition mentioned |
changeState | Logical | Prgram changes set to true in order to get next status |
rowID | Rowid | Rowid of the table |
f-xstadisp
The function returns comma-separated status description and status code for the From Status, and if the Condition is 0 and program change is set to false then it also returns comma-separated status description and status code for the “To Status” as well.
ReturnType: Character
AppliesTo: Data
Used as:
This function is used as f-xstadisp(input tableName, input tableStatus).
Input Parameters
Parameters | Data Type | Description |
---|---|---|
tableName | Character | Table name |
tableStatus | Character | Current status |