Page 1 of 1

pui.savedJSON / pui.downloadJSON / screenshot

Posted: Fri Jan 10, 2020 5:01 am
by ccoutellec
Hello,

I would like to save my screen after validation by the user in a transparent way and so can re-display it later.

Are there parameters to the function pui.downloadJSON () which would allow to save the data on the IFS?
Is it possible to transmit the pui.savedJSON data to the RPG program?
Do you have another solution?

Thank you.

Re: pui.savedJSON / pui.downloadJSON / screenshot

Posted: Fri Jan 10, 2020 11:52 am
by Scott Klement
No, there isn't an option to save to the IFS.

You would need to write your own code to save it to the IFS. If it were me, I'd write a little JavaScript routine that uses our ajaxJSON() function to call an RPG-CGI program on the server and pass the savedJSON to that program. The program could then write it to the IFS.