patrick.lemos
Member
I have been trying to update a record with this call (See code below) to endpoint /jderest/v2/appstack.
in application P4314 form W4314A.
The records I selected to include in form W4314A are presently there.
The stackId, stateId, and rid are all in sync. I just can't to update the Amount_To_Voucher field (it is an editable field btw).
So. I just believe something is wrong with the actions of my form. Are 'SelectRow' or 'UpdateRow' the right actions?
And, also I would like to add lines to this same grid that I am updating. What actions should I include then?
a, example Post request would be much appreciated.
Thank you.
"action": "execute",
"outputType": "VERSION2",
"actionRequest": {
"maxPageSize": "200",
"formActions": [
{
"command": "SelectRow",
"controlID": "1.0",
"value": "1"
},
{
"command": "UpdateRow",
"controlID": "1",
"value": "1"
},
{
"command": "SetGridCellValue",
"controlID": "320",
"value":element["Amount_To_Voucher"]
},
"formOID": inputMap["formOID"]
},
"stackId": returnMap["stackId"],
"stateId": returnMap["stateId"],
"rid": returnMap["rid"]
})
in application P4314 form W4314A.
The records I selected to include in form W4314A are presently there.
The stackId, stateId, and rid are all in sync. I just can't to update the Amount_To_Voucher field (it is an editable field btw).
So. I just believe something is wrong with the actions of my form. Are 'SelectRow' or 'UpdateRow' the right actions?
And, also I would like to add lines to this same grid that I am updating. What actions should I include then?
a, example Post request would be much appreciated.
Thank you.
"outputType": "VERSION2",
"actionRequest": {
"maxPageSize": "200",
"formActions": [
{
"command": "SelectRow",
"controlID": "1.0",
"value": "1"
},
{
"command": "UpdateRow",
"controlID": "1",
"value": "1"
},
{
"command": "SetGridCellValue",
"controlID": "320",
"value":element["Amount_To_Voucher"]
},
"formOID": inputMap["formOID"]
},
"stackId": returnMap["stackId"],
"stateId": returnMap["stateId"],
"rid": returnMap["rid"]
})