Message from Px5
After changing the value on the Px5 form:
{ "currentpxform": "Px5 Form Name", "currentpxtab": "Tab 1", "method": "ValueChangedInPx5", "payload": { "controlname": "input1", "value": "Value of input1", "type": "pxText" }}
After MessageToPx5 with method "GetControlsFromPx5":
{ "currentpxform": "Px5 Form Name", "currentpxtab": "Tab 1", "method": "GetControlsFromPx5", "payload": [ { "controlname": "input1", "value": "Value of input1", "type": "pxText" }, { "controlname": "input2", "value": "Value of input2", "type": "pxText" }, { "controlname": "input3", "value": 12.5, "type": "pxCurrency" }, { "controlname": "input2", "value": false, "type": "pxCheck" } ]}
After MessageToPx5 with method "GetInfoFromPx5":
{ "pxform": "Px5 Form Name", "currentpxtab": "Tab 1", "method": "GetInfoFromPx5", "payload": { "pxversion": "PxVersion", "dbname": "DBName", "dbpath": "DBPath", "dbuser": "DBUser", "loginuser": "LoginUser", "logingroup": "LoginGroup", "readonly": false, "connectionstring": "ConnectionString", "skin": "Skin", "restapiurl": "RESTAPIURL", "webservicepassword": "WebservicePassword", "logintoken": "LoginToken" }}
Error if control (changing value or triggering action) is not found:
{ "currentpxform": "Px5 Form Name", "currentpxtab": "Tab 1", "method": "MessageErrorInPx5", "payload": { "origin": "{\"currentpxform\":\"Px5 Form Name\",\"currentpxtab\": \"Tab 1\", ...", "errortype": "NotFound", "errormsg": "Human readable error message from Px5" }}
Current form in Px5
Visible caption of current tab in Px5 (if tabs are avaiable)
Method of the message:
Payload of the message:
Message from Px5
Example
After changing the value on the Px5 form:
Example
After MessageToPx5 with method "GetControlsFromPx5":
Example
After MessageToPx5 with method "GetInfoFromPx5":
Example
Error if control (changing value or triggering action) is not found: