primaryButtons: { a!buttonWidget( label: "Approve", icon: "check", value: true(), saveInto: { a!save(ri!GFIM_User_Access_User_Information,ri!GFIM_User_Access_User_Information), a!save(ri!GFIM_User_Access_User_Information.supervisorsDecisionDate,now()), a!save(ri!GFIM_User_Access_User_Information.supervisorDecision,true) }, submit: true, style: "PRIMARY" ) },
Discussion posts and replies are publicly visible
In this case your Interface Output save for pv!User_Data is overwriting your interface updates. Only the Save Into from the Input tab is correct, you will want to delete the Output Save Into, as this is overwriting with the pv! value (what the variable was set at prior to the form save). If you had used ac!User_Data in the output this would function correctly but be redundant.
Oh yeah, good catch - I didn't even notice the interface output node was referencing the PV in saving the PV back into itself. That said I'm not clear (without testing) whether the save-out to the PV from the Input tab would happen before or after the Output save executes... but in any case there's no need for such confusion since there's a potential overwrite and/or race condition.
Yep! From overwriting my own data on a few occasions, I can confirm the Output expressions fire last and will essentially reset any of the Inputs if there is a conflict. Been there, done that! :)
thanks I removed it and the other redundant things but it still does not save anything.
like there is no difference to the variables before and after
here is my process now
Can you confirm what your interface a!save()'s are now, and a screen shot of the node's Output tab?
In the first screen shot, the input variable is ri!User_Data, however the a!save()'s are using ri!GFIM_User_Access_User_Information.
In the second screen shot the variable name has changed to "userInformation".
Is this input being saved into within any other interface fields, or only on the Approval button save?
here is the output tab
here are my a!saves
I hope my screen shots answered your questions,
yes I am saving into that pv either if I approved or rejected
Thanks guys!
it is late Friday... Have a great weekend ,
This all looks basically right unless I'm missing a subtle detail again. When on the form designer, can you confirm that clicking "approve" and "reject" sets the value of ri!userInformation as you're expecting? What does the value end up being when you view the PVs in the running instance after submitting?
my whole problem is that clicking the submit/ reject does not affect the PV's . I cannot understand why
I'm specifically asking you to confirm the values you see in the rule inputs panel when in the interface designer, though.
That should be the first place you test/troubleshoot.