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.
Screen wrapper Events
-
Tim McEntee
- Posts: 57
- Joined: Thu May 26, 2016 8:46 am
Re: Screen wrapper Events
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
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);
},