Using Virtual Clipboard between VLF-One and RAMP-TS
Posted: Fri Jan 06, 2017 10:25 am
I am working on a project to rewrite a small VLF-Web RAMP-TS2 engine application in VLF-One with RAMP-TS2. One of the requirements is to pass values to RAMP via the virtual clipboard. I have reviewed the VLF-One differences as documented http://bit.ly/2jghXMO
However, I cannot get the script example in the documentation to work, so the clipboard value is restored.
In a method invoked from avMainWindowReady in my VLF One IIP I have this line :
#AvFrameworkManager.avSaveValue Withid1('TSTM92337') Withid2('A') WithID3('B') Instance(3)InLanguage(ENG) FromAvalue('CLIPDATA')
In the MainLogin junction screen in RAMP, I have copied and pasted the AVRESTOREAVALUE and the vHandle_AVCLIPBOARDEVENT function per the documentation just like this :
AVRESTOREAVALUE("Not found", "TSTM92337", "A","B",3, "ENG") ;, and added some trace statements for a RAMP Trace. However, the virtual clipboard values are not restored. The RAMP trace extract is shown below :
I have 2 questions :
1) What causes the AVCLIPBOARDEVENT event to fire ? Is it the Page Arrival or the AVRESTORE statement ? If I wanted to restore multiple different values from the clipboard, would the event fire for each AVRESTOREAVALUE RAMP statement ?
2) How can I see what is in the virtual clipboard for VLF-One ? The documentation tells me that the virtual clipboard is in the browser's local storage. In VLF-Win, the virtual clipboard is in a text file on the PC so easy to locate and debug. Has anyone got some shareable code that dumps the virtual clipboard to a screen or file ?
However, I cannot get the script example in the documentation to work, so the clipboard value is restored.
In a method invoked from avMainWindowReady in my VLF One IIP I have this line :
#AvFrameworkManager.avSaveValue Withid1('TSTM92337') Withid2('A') WithID3('B') Instance(3)InLanguage(ENG) FromAvalue('CLIPDATA')
In the MainLogin junction screen in RAMP, I have copied and pasted the AVRESTOREAVALUE and the vHandle_AVCLIPBOARDEVENT function per the documentation just like this :
AVRESTOREAVALUE("Not found", "TSTM92337", "A","B",3, "ENG") ;, and added some trace statements for a RAMP Trace. However, the virtual clipboard values are not restored. The RAMP trace extract is shown below :
I have 2 questions :
1) What causes the AVCLIPBOARDEVENT event to fire ? Is it the Page Arrival or the AVRESTORE statement ? If I wanted to restore multiple different values from the clipboard, would the event fire for each AVRESTOREAVALUE RAMP statement ?
2) How can I see what is in the virtual clipboard for VLF-One ? The documentation tells me that the virtual clipboard is in the browser's local storage. In VLF-Win, the virtual clipboard is in a text file on the PC so easy to locate and debug. Has anyone got some shareable code that dumps the virtual clipboard to a screen or file ?