skelta.userContext.getUserContextFor()
- Last UpdatedApr 28, 2021
- 1 minute read
Use getUserContextFor() method to get the form information.
Syntax
sRetVal = skelta.userContext.getUserContextFor(formConstants);
Parameters
|
Parameter |
Description |
|
formConstants |
Form Constants. |
|
"appN" – Application Name "uId" – User ID "vId" – Virtual Actor ID "fName" – Form Name "vStamp" – Form Version "itemId" – Item ID "listName" – List Name "themePath" – Theme Path "culture" – Culture "deviceId" – Device ID (applicable only for AVEVA Work Tasks Pro app) "accessToken" – Access Token of the logged-in user |
Return Value
This method returns a string value.
Example
// Get the application name of the form.
var applicationName = skelta.userContext.getUserContextFor("appN");
Note: For this API, the Access token constant is not supported in System Platform.