avCloseForm for RAMP/Command Handlers

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
dhunt
Posts: 29
Joined: Fri Feb 08, 2019 3:06 am

avCloseForm for RAMP/Command Handlers

Post by dhunt » Tue Apr 16, 2019 4:28 am

Is there a way to close a ramp screen/command handler from a button? I see there is a avCloseForm for filters and instance lists but I don't see a similar function for command handers.

Code: Select all

Evtroutine Handling(#CloseSession.Click)
#COM_ANCESTOR.avCloseForm
Endroutine

MarkDale
Posts: 102
Joined: Wed Dec 02, 2015 10:06 am

Re: avCloseForm for RAMP/Command Handlers

Post by MarkDale » Wed Apr 17, 2019 8:37 am

Ordinary command handlers can use avCloseForm:

#Com_Owner.avCloseForm

RAMP command handlers don't have any RDMLX source, but in the RAMP button script, you can add a line like:

/* Close this command handler, since the task is now done */
AVCLOSEFORM();

dhunt
Posts: 29
Joined: Fri Feb 08, 2019 3:06 am

Re: avCloseForm for RAMP/Command Handlers

Post by dhunt » Thu Apr 18, 2019 4:06 am

Thanks, that worked

Post Reply