UI Builder, Dynamic Data Binding is not working

Bhavesh Sharma
Tera Contributor

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.

BhaveshSharma_1-1703757726681.png

 

Similarly, when I am trying to dynamically bind the record using the Config option, I am getting a similar issue. 

BhaveshSharma_0-1703757697176.png

 

Build name: Vancouver
Build tag: glide-vancouver-07-06-2023__patch5-12-01-2023

2 REPLIES 2

Saurabh Gupta
Kilo Patron
Kilo Patron

Hi @Bhavesh Sharma 

Can you show me the lookup for the record?

 

 


Thanks and Regards,

Saurabh Gupta

Bhavesh Sharma
Tera Contributor

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"
}
}
]