Page 1 of 1

Mobile Phonegap Offline Grid

Posted: Tue May 02, 2017 8:44 am
by negley
I am trying to use a Grid on a profound screen in a offline state. I generate the screen using the pui.show() methods, how would i go about filling in a grid with data? Can a grid be filled in with JSON, XML or with just javascript?

Re: Mobile Phonegap Offline Grid

Posted: Tue May 02, 2017 9:26 am
by Scott Klement
Bill,

The data for the display is provided in JSON format. (JSON is a subset of JavaScript so you could also say that it is provided as "JavaScript" if you wish.) That is true for all fields on a display whether in the grid or not.

The easiest thing is to generate a display with RPG and use the browser's debugger to see what the data looks like. A certain portion of the data sent from RPG to the display is the variable data (the rest is the widgets, which you would not supply). So you can generate it from RPG and see what the format looks like, then provide the same thing from your JS code to pui.show().