Screen wrapper Events

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
jtaljaard
Posts: 37
Joined: Thu Sep 21, 2023 9:29 pm

Screen wrapper Events

Post by jtaljaard »

Good day,

Please assist with signaling an event from a screen wrapper to a form. It does not work, but it works from a form to the screen wrapper.

for example, we are trying to set values in a text box on a form, as we get the values from the 5250 screen. We can show the values on a message box but it does not show on the edit box.
Tim McEntee
Posts: 57
Joined: Thu May 26, 2016 8:46 am

Re: Screen wrapper Events

Post by Tim McEntee »

Hi

The way to communicate from a VL form to the RAMP script is via VLF signal event.

In your form you signal event with you custom event name and pass your values in the Ainfo & NInfo fields

In your RAMP script you add some code to listen for events, then act

Code: Select all

vHandle_AVEVENT: function(WithId,Sender,WithAInfo1,WithAInfo2,WithAInfo3,WithAInfo4,WithAInfo5,WithNInfo1,WithNInfo2,WithNInfo3,WithNInfo4,WithNInfo5)

   {

      if (WithId == "CUS_MAINT_ALIGN")

      {

        SETVALUE("ADDRESS",WithAInfo2);

        SETVALUE("CITY",WithAInfo3);

        SETVALUE("POSTALCODE",WithAInfo4);

      }

      return(true);

   },
Post Reply