Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
How to recall a sub-form from another process?
An example Scenario -
Process1: Capture individual details in a form.
Process2: Select the individual id and display the individual details as sub-form.
How would I go about implementing this scenario? Is this feasible?
The key Subform resources at Joget is only these 2 articles
Alternatives method of
5 Comments
Hugo
There are a few ways to work around this matter.
In the process itself
Firstly, you may have a select box in your first activity/form to select the prior record, say, "individual_id"
In your second activity/form, in your subform's properties, point it to the prior process's form, set "Parent Field to keep Subform ID" to "individual_id". By doing so, Joget will load the subform based on the primary key set in "individual_id".
From the listing
Every menu item in the Userview has a unique URL. Point it to the second process's Run Process element. Take note of the URL.
In your listing, add a Hyperlink Action, point it to the URL, add parameter "fk_individual_id" and with value appended in of course.
By doing so, right in your first activity/form of your second process, the subform would be able to load the correct data set. Remember to add a Hidden Field "individual_id" in the same form.
Try it out. Good luck!
Garrett
Ok Thanks for the assistance. I will try it out
Hugo
Hi Garrett,
I have made a sample application to demonstrate what I suggested. Please download the attachment and try it out. You may need to use the Enterprise edition if you find anything that doesn't work. I can't recall how many elements I have used in total. It's quite comprehensive and basically production ready.
Import it, publish it, go to published app and launch it.
APP_leaveApp-3-20130805233007.zip
Hope this helps.
Thanks.
Garrett
Hugo, your assistance is much appreciated. I will review the app. THANKS!!
Pedro Farinha
Hi Hugo. I have reviwed your app because i've the same question.
It is possible to do the hyperlink process with community version of Joget?
Best Regards,
Pedro