Page 1 of 1
Splash Screen
Posted: Mon Mar 06, 2017 11:33 am
by mwalter
Is there a way to create a splash screen? I have a program that runs some pretty intense queries before displaying the results. All I have is the spinner in the upper left hand corner. I tried to create a record format and write that format before the queries run, but the 400 ignores it.
Thanks,
Mark.
Re: Splash Screen
Posted: Mon Mar 06, 2017 12:58 pm
by Scott Klement
Yes.
You have to display the record format with EXFMT (or WRITE followed by READ -- a WRITE only will not work) and then have the JavaScript code in the format submit the screen back to the RPG.
For example, in the onload event of your splash screen, code this:
Code: Select all
setTimeout( function() { pui.click() }, 100 );
This will do the equivalent of pressing ENTER 1/10 of a second after the screen is displayed. The screen will remain on the display until the RPG program writes another screen.
Re: Splash Screen
Posted: Mon Mar 06, 2017 1:37 pm
by mwalter
Thanks, Scott.