Hi,I have a process model where I have a value in a pv! variable.
Now, I would like to send pv! variable value to the SAIL form from where I triggered the Process Model.
Can someone give me a clue to do this.
Thanks in advance.
Discussion posts and replies are publicly visible
Rao2022 said:I would like to send pv! variable value to the SAIL form from where I triggered the Process Model.
I think I as well as some other folks here are mistaking your question for something else.
Do you mean you're calling a process model from an existing form, like using a!startProcess()?
In that case, you'll want to utilize the "onSuccess" parameter where you can grab PV data and save it back into local variables in your interface.
I am using "startProcessLink". I don't see any "onSuccess" parameter.Are you suggesting me to use startProcess instead of startProcessLink?
Rao2022 said:Are you suggesting me to use startProcess instead of startProcessLink?
If you want to generate a document in the background and get its ID back into your current interface without interruption, then yes, you have to use a!startProcess(). Note this only works if the generation process is 100% unattended and you activity-chain all the way up to where the new DocId is generated.
Thanks for the info. Let me give a try and update back soon.
Hey you can use StartProcess function. Make sure the process model will be activity chained to get the value back into the interface. In the given code, designation in my process variable which i am getting back into the interface from StartProcess function.
a!startProcess( processModel: cons!Test1, onSuccess: { a!save( local!a, fv!processInfo.pv.designation ) } )
a!startProcess() is not showing under a!linkField().
Can't I use a!startProcess() using a link in the form?
Rao2022 said:Can't I use a!startProcess() using a link in the form?
a!startProcess() goes in the saveInto parameter of a Dynamic Link - which is nice since the link can also do other on-form saves as well as starting the process instance.
You can create a button or card layout or use dynamic link. In dynamic link you can use start process.
Hi,
I have a pv!DocID inside the process model. Now when the process completed when I assign my local!localDocID into a text filed for test, it was not showing anything. When I open process model and verify everything is looking fine.
Anything wrong in fv!processInfo.pv.DocID
a!startProcess( processModel: cons!LCM_Test_PM, onSuccess: { a!save( local!localDocID, fv!processInfo.pv.DocID ) },
Please post a screenshot of your completed process instance.
Once after setting up the activity-chaining, now I got the value into my SAIL form local variable.
Ok, sounds like that means you have it working now, thanks for confirming.
Thanks for your help.