This is of the view itself:
{"type":"view","payload":{"view":{"path":"Page/adm/UserEdit_PU","width":800.0,"height":800.0,"params":{"v_UserID":0}}}}
This is from the root:
[
{
"type": "ia.container.flex",
"version": 0,
"props": {
"direction": "column"
},
"meta": {
"name": "root"
},
"position": {},
"custom": {},
"children": [
{
"type": "ia.container.flex",
"version": 0,
"props": {
"justify": "space-around",
"alignItems": "center"
},
"meta": {
"name": "FlexContainer"
},
"position": {
"basis": "90px"
},
"custom": {},
"children": [
{
"type": "ia.input.button",
"version": 0,
"props": {
"text": "Edit"
},
"meta": {
"name": "Edit"
},
"position": {
"basis": "106px"
},
"custom": {},
"events": {
"component": {
"onActionPerformed": {
"type": "script",
"scope": "G",
"config": {
"script": "\tbool_enable = True\n\tself.view.custom.v_Edit=bool_enable"
}
}
}
}
},
{
"type": "ia.input.button",
"version": 0,
"props": {},
"meta": {
"name": "Button_0"
},
"position": {
"basis": "106px"
},
"custom": {},
"events": {
"component": {
"onActionPerformed": {
"type": "script",
"scope": "G",
"config": {
"script": "\tmessageType = 'msg_enable'\n\tbool_enable = True\n\tpayload = {'Enable':bool_enable}\n\tsystem.perspective.sendMessage(messageType, payload)"
}
}
}
}
},
{
"type": "ia.input.button",
"version": 0,
"props": {},
"meta": {
"name": "Button_1"
},
"position": {
"basis": "106px"
},
"custom": {}
}
]
},
{
"type": "ia.container.flex",
"version": 0,
"props": {},
"meta": {
"name": "FlexContainer_0"
},
"position": {
"basis": "258px"
},
"custom": {},
"children": [
{
"type": "ia.container.flex",
"version": 0,
"props": {
"direction": "column"
},
"meta": {
"name": "FlexContainer"
},
"position": {
"basis": "200px"
},
"custom": {},
"children": [
{
"type": "ia.display.label",
"version": 0,
"props": {
"text": "First"
},
"meta": {
"name": "FirstName"
},
"position": {
"basis": "50px"
},
"custom": {}
},
{
"type": "ia.display.label",
"version": 0,
"props": {
"text": "Last"
},
"meta": {
"name": "LastName"
},
"position": {
"basis": "50px"
},
"custom": {}
},
{
"type": "ia.display.label",
"version": 0,
"props": {
"text": "User Name"
},
"meta": {
"name": "UserName"
},
"position": {
"basis": "50px"
},
"custom": {}
},
{
"type": "ia.display.label",
"version": 0,
"props": {
"text": "Email"
},
"meta": {
"name": "EmailAddress"
},
"position": {
"basis": "50px"
},
"custom": {}
},
{
"type": "ia.display.label",
"version": 0,
"props": {
"text": "Role"
},
"meta": {
"name": "Role"
},
"position": {
"basis": "50px"
},
"custom": {}
}
]
},
{
"type": "ia.container.flex",
"version": 0,
"props": {
"direction": "column"
},
"meta": {
"name": "FlexContainer_0"
},
"position": {
"basis": "200px"
},
"custom": {},
"children": [
{
"type": "ia.input.text-field",
"version": 0,
"props": {},
"meta": {
"name": "FirstName"
},
"position": {
"basis": "50px"
},
"custom": {},
"propConfig": {
"props.text": {
"binding": {
"config": {
"expression": "try({view.custom.userView}[0, 'First Name'], \"none\")"
},
"type": "expr"
}
},
"props.enabled": {
"binding": {
"type": "property",
"config": {
"path": "view.custom.v_Edit"
}
}
}
}
},
{
"type": "ia.input.text-field",
"version": 0,
"props": {},
"meta": {
"name": "LastName"
},
"position": {
"basis": "50px"
},
"custom": {},
"propConfig": {
"props.text": {
"binding": {
"config": {
"expression": "try({view.custom.userView}[0, 'Last Name'], \"none\")"
},
"type": "expr"
}
},
"props.enabled": {
"binding": {
"type": "property",
"config": {
"path": "view.custom.v_Edit"
}
}
}
}
},
{
"type": "ia.input.text-field",
"version": 0,
"props": {},
"meta": {
"name": "UserName"
},
"position": {
"basis": "50px"
},
"custom": {},
"propConfig": {
"props.style.backgroundColor": {
"binding": {
"config": {
"expression": "if({view.custom.v_new}=1,\"#FFFFFF\",\"#000000\")"
},
"type": "expr"
}
},
"props.text": {
"binding": {
"config": {
"expression": "try({view.custom.userView}[0, 'User Name'], \"none\")"
},
"type": "expr"
}
},
"props.enabled": {
"binding": {
"type": "property",
"config": {
"path": "view.custom.v_Edit"
}
}
}
}
},
{
"type": "ia.input.text-field",
"version": 0,
"props": {},
"meta": {
"name": "EmailAddress"
},
"position": {
"basis": "50px"
},
"custom": {},
"propConfig": {
"props.text": {
"binding": {
"config": {
"expression": "try({view.custom.userView}[0, 'Email'], \"none\")"
},
"type": "expr"
}
},
"props.enabled": {
"binding": {
"type": "property",
"config": {
"path": "view.custom.v_Edit"
}
}
}
}
},
{
"type": "ia.input.text-field",
"version": 0,
"props": {
"enabled": false
},
"meta": {
"name": "Role"
},
"position": {
"basis": "50px"
},
"custom": {},
"propConfig": {
"props.text": {
"binding": {
"config": {
"expression": "try({view.custom.userView}[0, 'Email'], \"none\")"
},
"type": "expr"
}
}
}
}
]
},
{
"type": "ia.container.flex",
"version": 0,
"props": {
"direction": "column"
},
"meta": {
"name": "FlexContainer_2"
},
"position": {
"basis": "200px"
},
"custom": {},
"children": [
{
"type": "ia.display.label",
"version": 0,
"props": {
"text": "Title"
},
"meta": {
"name": "Title"
},
"position": {
"basis": "50px"
},
"custom": {}
},
{
"type": "ia.display.label",
"version": 0,
"props": {
"text": "Department"
},
"meta": {
"name": "Department"
},
"position": {
"basis": "50px"
},
"custom": {}
},
{
"type": "ia.display.label",
"version": 0,
"props": {
"text": "Notes"
},
"meta": {
"name": "Notes"
},
"position": {
"basis": "50px"
},
"custom": {}
},
{
"type": "ia.input.checkbox",
"version": 0,
"props": {
"text": "Gone?"
},
"meta": {
"name": "UserGone"
},
"position": {
"basis": "36px"
},
"custom": {},
"propConfig": {
"props.selected": {
"binding": {
"config": {
"expression": "try({view.custom.userView}[0, 'Gone'], \"none\")"
},
"type": "expr"
}
},
"props.enabled": {
"binding": {
"type": "property",
"config": {
"path": "view.custom.v_Edit"
}
}
}
}
}
]
},
{
"type": "ia.container.flex",
"version": 0,
"props": {
"direction": "column"
},
"meta": {
"name": "FlexContainer_1"
},
"position": {
"basis": "200px"
},
"custom": {},
"children": [
{
"type": "ia.input.text-field",
"version": 0,
"props": {},
"meta": {
"name": "Title"
},
"position": {
"basis": "50px"
},
"custom": {},
"propConfig": {
"props.text": {
"binding": {
"config": {
"expression": "try({view.custom.userView}[0, 'Title'], \"none\")"
},
"type": "expr"
}
},
"props.enabled": {
"binding": {
"type": "property",
"config": {
"path": "view.custom.v_Edit"
}
}
}
}
},
{
"type": "ia.input.text-field",
"version": 0,
"props": {
"enabled": false
},
"meta": {
"name": "Department"
},
"position": {
"basis": "50px"
},
"custom": {},
"propConfig": {
"props.text": {
"binding": {
"config": {
"expression": "try({view.custom.userView}[0, 'Department'], \"none\")"
},
"type": "expr"
}
}
}
},
{
"type": "ia.input.text-field",
"version": 0,
"props": {
"enabled": false
},
"meta": {
"name": "Notes"
},
"position": {
"basis": "50px"
},
"custom": {},
"propConfig": {
"props.text": {
"binding": {
"config": {
"expression": "try({view.custom.userView}[0, 'Notes'], \"none\")"
},
"type": "expr"
}
}
},
"scripts": {
"customMethods": [],
"messageHandlers": [
{
"messageType": "msg_enable",
"script": "\t# implement your handler here\n\tself.props.enabled = payload['Enable']",
"sessionScope": false,
"pageScope": true,
"viewScope": false
}
],
"extensionFunctions": null
}
}
]
}
]
},
{
"type": "ia.container.flex",
"version": 0,
"props": {},
"meta": {
"name": "FlexContainer_1"
},
"position": {
"basis": "101px"
},
"custom": {}
}
]
}
]