Hello Everyone,
I have this button, which is suppose to save data on clicking, on clicking the button is executing Query but it is always using Update Query, I want to execute insert query in case it is new entry.
Can any one guide me on how to do this?
{
"operation": "insert",
"name": "SaveButton",
"values": {
"layoutConfig": { "column": 1, "row": 4 },
"type": "crt.Button",
"caption": "Save",
"color": "primary",
"clicked": {
"request": "crt.SaveDataRequest",
"params": {
"dataSourceName": "UsrConfigDS",
"parameters": [
{ type: "primaryColumnValue", value: Terrasoft.generateGUID() }
],
"config": {
"silent": "true",
"payload": {
"UsrRegion": "$Region",
"UsrKey": "$Key"
}
}
},
},
},
"parentName": "GridContainer_da9zpnz",
"propertyName": "items",
"index": 3
}
Like