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: 65
Joined: Fri Feb 08, 2019 3:06 am

avCloseForm for RAMP/Command Handlers

Post by dhunt »

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: 116
Joined: Wed Dec 02, 2015 10:06 am

Re: avCloseForm for RAMP/Command Handlers

Post by MarkDale »

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: 65
Joined: Fri Feb 08, 2019 3:06 am

Re: avCloseForm for RAMP/Command Handlers

Post by dhunt »

Thanks, that worked
Post Reply