I designed a form with many dynamic subforms (show/hide). When the user first opens the form, all subforms are collapsed and it shows/expands as he makes the selection.
At a later stage, I get this same form within LC workbench and put it in a process to merge with XML data. This is a server side process, short-lived.
I am using the importData operation, from Form Data Integration service (within Common).
The question is: how can I automatically expand the sections in the form after it's merged with XML? I mean, let's say that Section_A is hidden by default, and the XML file contains information for Section_A. After this merging process, how can I automatically set this section as expanded so the user can actually see the data when he opens the form again?
The code that you put in to display/ hide the sections dynamically when you change the selection in Radiobutton, needs to be placed in Initialize event as well.
Copy the same code from the event you put in (Click/ Change) and place it the Initialize event of the radio button.
But in this case I'll need to use the sendToPrinter operation in my process, so after the merging I send directly to printer. I don't think that by putting the code into Initialize event will solve this, since the form won't be oppened by the user, will directly send to the printer instead.
Do you think that there's any workaround for that?