Page 1 of 1

Screen wrapper Events

Posted: Wed Jan 03, 2024 11:36 pm
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.

Re: Screen wrapper Events

Posted: Mon Jan 08, 2024 8:28 am
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);

   },