Forums

Find answers, ask questions, and connect with our
community all around the world.

Home Forum Omnis General Forum How to ‘unload’ a form from a subform?

Tagged: , ,

  • How to ‘unload’ a form from a subform?

    Posted by Uwe Smidt on February 16, 2023 at 11:18 am

    Dear $all,

    I am using a main (remote/js) form with a subform on it into which I load various other remote forms with:

    Do $iremoteforms.rfMainForm.$objs.SubForm.$classname.$assign($remoteforms.rfSomeOtherForm) .

    How do I ‘unload / dis-assign’ the subform’s content to make empty/void??

    Any help is appreciated!

    Andreas Pfeiffer replied 1 year, 1 month ago 2 Members · 1 Reply
  • 1 Reply
  • Andreas Pfeiffer

    Administrator
    February 20, 2023 at 10:33 am

    Hi Uwe,

    Did you try to leave the name empty? i.e something like:

    Do $cinst.$objs.mysubform.$classname.$assign(“”)

    On the other hand I would probably use an empty form to be displayed when no other form is used. The advantage of this is that you could use any kind of picture or logo that shows the user that no form is chosen.

    Note that this only works if $multipleclasses is set to kFalse which I would recommend. Otherwise you would need to close the individual instance.

    Hope this helps.

    Best,

    Andreas

Log in to reply.