UI Builder, Dynamic Data Binding is not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2023 02:06 AM
Dear All,
I am trying to Dynamically Bind the Data within UI Builder but the system is not allowing me to edit anything. For example, I want to put this line of code @context.session.user.sys_id into the Record field to fetch the current login user Sys_id details.
Similarly, when I am trying to dynamically bind the record using the Config option, I am getting a similar issue.
Build name: Vancouver
Build tag: glide-vancouver-07-06-2023__patch5-12-01-2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2023 02:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2024 07:18 AM
Hi Saurabh,
Thanks for your reply, sorry if I understood correctly or not.
Are you looking for the below details?
Properties:
[
{
"name": "table",
"label": "Table",
"description": "Table to look up",
"readOnly": false,
"fieldType": "table_name",
"mandatory": true
},
{
"name": "recordId",
"label": "Record",
"description": "Record to look up",
"readOnly": false,
"fieldType": "reference",
"mandatory": true,
"defaultValue": "",
"typeMetadata": {"reference": "@table"}
},
{
"name": "returnFields",
"label": "Return fields",
"description": "Returned field values",
"readOnly": false,
"fieldType": "field_list",
"mandatory": false,
"defaultValue": "",
"typeMetadata": {
"table": "@table",
"variant": "ordered"
}
},
{
"name": "returnTableMetadata",
"label": "Return table metadata",
"description": "Return table metadata",
"readOnly": false,
"fieldType": "boolean",
"mandatory": false,
"defaultValue": false
},
{
"name": "returnFieldMetadata",
"label": "Return field metadata",
"description": "Return field metadata",
"readOnly": false,
"fieldType": "boolean",
"mandatory": false,
"defaultValue": false
}
]
Data fetching
Data Driver
{
"recordQuery": {
"definition" : {
"id" : "54e9c8d25310101024e5ddeeff7b12db",
"type" : "GRAPHQL"
},
"elementId" : "recordQuery",
"inputValues" : {
"table" : {
"type": "BROKER_INTERNAL_INPUT_BINDING",
"binding": {
"address": [
"table"
]
}
},
"recordId" : {
"type": "BROKER_INTERNAL_INPUT_BINDING",
"binding": {
"address": [
"recordId"
]
}
},
"returnFields" : {
"type": "BROKER_INTERNAL_INPUT_BINDING",
"binding": {
"address": [
"returnFields"
]
}
},
"returnTableMetadata" : {
"type": "BROKER_INTERNAL_INPUT_BINDING",
"binding": {
"address": [
"returnTableMetadata"
]
}
},
"returnFieldMetadata" : {
"type": "BROKER_INTERNAL_INPUT_BINDING",
"binding": {
"address": [
"returnFieldMetadata"
]
}
}
},
"elementLabel" : "Record Query"
},
"result": {
"definition" : {
"id" : "49595ad153131010c495ddeeff7b1225",
"type" : "SCRIPTLET"
},
"elementId" : "result",
"inputValues" : {
"query" : {
"type": "BROKER_INTERNAL_STATE_BINDING",
"binding": {
"address": [
"recordQuery",
"output"
]
}
},
"first" : {
"type": "JSON_LITERAL",
"value": true
}
},
"elementLabel" : "Result"
},
"items": {
"definition" : {
"id" : "11e9dad153131010c495ddeeff7b1283",
"type" : "SCRIPTLET"
},
"elementId" : "items",
"inputValues" : {
"query" : {
"type": "BROKER_INTERNAL_STATE_BINDING",
"binding": {
"address": [
"recordQuery",
"output"
]
}
},
"labelField" : {
"type": "JSON_LITERAL",
"value": "label"
},
"idField" : {
"type": "JSON_LITERAL",
"value": "value"
},
"valueField" : {
"type": "JSON_LITERAL",
"value": "displayValue"
}
},
"elementLabel" : "Items"
}
}
Output Properties:
[
{
"name": "result",
"label": "Result",
"description": "Result",
"origin": {
"type": "data",
"id": "result"
}
},
{
"name": "items",
"label": "Items",
"description": "Items",
"origin": {
"type": "data",
"id": "items"
}
}
]