-
SubForms
I have a remote form with two subforms (along with other objects such as a results list displaying the results of the search) : –
a. subform1 displaying a list of consultants (used for searches), and
b. subform2 displaying the details for the line that the user has selected in the results list (not a subform).
Both subforms are embedded in a tabbed pane.
Tab 1 has the consultant subform and tab 3 has subform 2. Tab 2 displays the result of the search.
When the remote form opens I can get a reference to the consultants subform via: –
set reference to iIRConsultantssw to $cinst.$objs.swUserSearch.$subinst()
However, try as I might, I cannot get a valid reference to the subform on the 3rd tabpane
I asked ChatGPT and I was advised that Omnis Studio does not cater for more than one current subform.
ChatGPT recommended using the following code to reference the 2nd subwindow:
Calculate $cinst.$form.$currentsubform as $cinst.$form.$subform2
However, this does not seem to work.
My goal is to have the subforms visible/instantiated once but when the user clicks on a line (in the results list on the 2nd pane) I want to pass that row to the subform and have the subform refresh with the target details. I want to repeat this process each time the user clicks on a different line.
Is this possible?
What am I doing wrong?
I have the multipleclasses turned OFF for the subforms
I set the class name for both subforms at design stage.
Log in to reply.