Insight-userprofile.json¶
The configuration insight-userprofile.json
is used for login. And it is also used for collecting user-specific data that can be used as userspecific constraints in other treeConfigs. The labels of attributes in insight-userprofile.json
can be used as variables and queryParams in other trees.
Example:
The following Attribute DEFSITE
in insight-userprofile.json
"attributes": [
{
"name": "DEFSITE",
"label": "siteid",
"readonly": true,
"type": "String"
}
]
can be used as queryParam:
"root": {
"name": "Lagerort",
"type": "LOCATIONS",
"query": {
"constraint": "type='STOREROOM'"
},
"queryParams": [
{
"name": "siteid",
"attribute": "SITEID"
}
]
}
or as a variable ${userData.siteid}
"menus": [
{
"label": "New Service Request",
"icon": "icon-warning",
"action": "create",
"actionValues": [
{
"_tree": "en-service",
"SITEID": "${userData.siteid}",
"LOCATION": "${LOCATION}",
}
]
}
]
deviceToken¶
The deviceToken can be used as a queryParam in insight-userprofile.json
and all other treeConfiguration's
{
"name": "deviceassets",
"type": "ASSET",
"queryParams": {
"name": "deviceToken",
"attribute": "ASSETTAG"
},
"query": {
"constraint": "1 = 1"
},
"attributes": [
{
"name": "ASSETTAG",
"label": "tag",
"readonly": true,
"type": "String"
},
{
"name": "ASSETNUM",
"label": "deviceassets",
"readonly": true,
"type": "String"
}
]
}