pui.downloadJSON()

We recommend placing the resulting file in a folder located under the /www/instanceName/htdocs directory.

The examples below assume that you’ve placed the file within a folder named ‘test’, however the name of the folder does not matter as long as the URL points to the correct folder/file.

Profound UI defines screens and sends data using the JSON or JavaScript Object Notation format. This function allows you to download JSON information of the current Rich Display File or Genie screen for debugging. It is similar to taking a "screenshot".

The screen can later be re-displayed for debugging using the jsonURL query string parameter.

For Rich Display Files (outside of Genie), the URL to ‘run’ the screen may look like this: http://ibmi:8080/profoundui/start?jsonURL=/test/saved_screen.txt.  

For Genie screens or for running an RDF inside of Genie, the URL would look like this: http://ibmi:8080/profoundui/genie?jsonURL=/test/saved_screen.txt (notice the use of ‘genie’ instead of ‘start’). You can also run the screen with a specific Genie skin by using the skin query string parameter: http://ibmi:8080/profoundui/genie?jsonURL=/test/saved_screen.txt&skin=GenieSkin.

Profound UI provides a shortcut key to call this function while you are running a Rich Display File or a Genie application: Press Ctrl-F9 and a JSON screenshot download will be initiated.

Â