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 

  • Process2 is done using datalist then it can display the individual record. NOT ideal but cannot do further process. 
  • Process2 is done using LoadBinder and Beanshell. Painful choir but working alternative
  • Merge Process2 into Process1 - if verified that sub-form data only valid in a single process. Painful too
  • No labels

5 Comments

  1. 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!

    1. Ok Thanks for the assistance. I will try it out

      1. 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.

        1. Apply Leave
        2. Go to Inbox, reject the leave.
        3. Go to "List My Rejected Applications", select one to Appeal OR
        4. Go to "Submit Appeal" and select the rejected leave to Appeal.

        APP_leaveApp-3-20130805233007.zip

        Hope this helps.

        Thanks.

        1. Hugo, your assistance is much appreciated. I will review the app. THANKS!! 

        2. 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