Unable to update the local varibale on second time onwards.

Hello All,

I am passing data to gridField using local variable local!taskData.

This local variable local!taskData is updating from the startProcess which is configured on button.Now first time I select the few records and reassign button then the data is updating into local!taskData and able to see the updated data on grid now immediately selecting another records and clicking on reassign then the values where not updating untill unless I refresh the data manually.

Is the onsuccess is considering only once ? Is there any way to consider and run the a!save() everytime on clicking on the button.

a!startProcess(
                                processModel: cons!PM,
                                processParameters: { reassignData: local!UpdatedData },
                                onSuccess: {
                                  a!save(
                                    local!success,
                                    fv!processInfo.pv.success
                                  ),
                                  a!save(
                                    local!tasksData,
                                    rule!L_getBulkTasksToReassign(
                                      currentAssign: local!asssignedTo,
                                      
                                    )
                                  )
                                }
                              )

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data