It uses the JavaScript function AVREQUESTWRAPPER to send a request identifier and up to 5 optional additional values to the Visual LANSA wrapper. The wrapper receives the request in its vHandle_AVREQUESTWRAPPER method. Here are some copy/paste code examples of this process:
The RAMP script to sends a request to Visual LANSA wrapper:
AVREQUESTWRAPPER("SOMEREQUESTID","More1","More2","More3","More4","More5");
The wrapper receives the request from RAMP script:
* -------------------------------------------------------------------------------------------* Method vHandle_AVREQUESTWRAPPER: Handle an AVREQUESTWRAPPER RAMP script request* -------------------------------------------------------------------------------------------Mthroutine Name(vHandle_AVREQUESTWRAPPER) Options(*REDEFINE)#SYS_WEB.alert Caption("vHandle_AVREQUESTWRAPPER invoked in wrapper " + #COM_OWNER.Name + " to handle request " + #RequestId + ". #SendAInfo1=" + #SendAInfo1 + ", #SendAInfo2=" + #SendAInfo2 + ", #SendAInfo3=" + #SendAInfo3 + ", #SendAInfo4=" + #SendAInfo4 + ", #SendAInfo5=" + #SendAInfo5)Endroutine
Requests are sent asynchronously and the order of receival is not guaranteed.