I am trying to execute a process model on click of button which one of the component in editable grid. Unfortunately. the PM is not getting initiated.
Can anyone help what could be the reason.
a!buttonLayout( primaryButtons: { a!buttonWidget( label: "Save", saveInto: a!startProcess( processModel:cons!TRA_WriteRecordsPM, processParameters: {recordTRA:fv!item}, onSuccess: a!save(local!success,fv!processInfo), /*onError: a!save(local!data)*/
), submit: true() ) } ),
Discussion posts and replies are publicly visible
Basically, i have used a foreach loop in editable grid. And for each row this button is populating , so when i am clicking on button a particular row to save updated entry in DB (via process model). Its not working i.e. PM is not getting initiated.
what, if anything, gets stored in the local!success variable?
and could you add the onError property here as well and check?
Both are coming as null.
Instead of calling a!startProcess in the button's saveInto, can you update any variable and check whether it's getting updated or not? This is to make sure that validation, etc. not blocking the button's event.
is the parameter in the process model a record type?
If so, try fv!item[recordType!recordName]
instances not getting created, right?
yes