Function related to session
f-set-xsest
In order to handle throughout the system, this function stores the information in the form of session variable. It uses field ‘xses.xsest’ to store the value for the currently logged in user.
ReturnType: Logical
AppliesTo: Data
Used as
v-ok = f-set-xsest(input sessionVariable,input sessionVarValue)
/* It sets the value in sessionVarValue to variable sessionVariable and returns true. */
Input Parameters
Parameters | Data Type | Description |
---|---|---|
sessionVariable | Character | Name of session variable |
sessionVarValue | Character | Values to be set to that session variable |
f-get-xsest
This function returns a character value. It returns the value set by logged on user. The function is used to access data from the field ‘xes.xsest’, which was previously saved by current logged in user using function ‘f-set-xsest’. It does not return the value if unknown value (?) is set to field ‘xsest’ of ‘xsession’ table.
ReturnType: Character
AppliesTo: Data
Used as:
This function is used as f-get-xsest(input sessionVariable).
Output:
Returns value stored in session variable sessionVariable.
Input Parameters
Parameters | Data Type | Description |
---|---|---|
sessionVariable | Character | Name of session variable from which we get the saved value |
f-reset-xsest
The function removes the session variable. If input param is(*),then clears all session variables otherwise only clears the session value of input sessionVariable.It also resets value and returns true if xsest = ?.
ReturnType: Logical
AppliesTo: Data
Used as:
This function is used as f-reset-xsest(input sessionVariable).
Input Parameters
Parameters | Data Type | Description |
---|---|---|
sessionVariable | Character | Name of session variable on which we stored the value |