Forums

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

Home Forum Ideas $cinst.$clientcommand("subformset_formchange",wRow)

  • $cinst.$clientcommand("subformset_formchange",wRow)

    Posted by Gav on October 26, 2023 at 7:35 am
    Vote up
    Up
    1
    ::

    During my presentation on subformsets at Euromnis, a use case that is not currently attainable was discussed: if your jsClient application wants to close a subform, then open another in a single action, it cannot be done within the same method stack.
    i.e. We have

    Do $cinst.$clientcommand(“subformset_formremove”,row)
    Do $cinst.$clientcommand(“subformset_formadd”,row)

    However, if we execute these sequentially, only one $clientcommand is ultimately performed. If this will be an ongoing restriction, then a new clientcommand is required:
    Do $cinst.$clientcommand(“subformset_formchange”,row)

    rowVariable = row(setname, uniqueID, classname, params, title, left, top, width, height, modal)
    where uniqueID is the ID of the subform that is to be closed and replaced by a new subform specified in the remainder of the params.

    Gav replied 8 months, 3 weeks ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

Log in to reply.