Mobile Phonegap Offline Grid
-
- Profound User
- Posts: 45
- Joined: Tue Mar 11, 2014 2:50 pm
- First Name: William
- Last Name: Negley
- Company Name: Utz Quality Foods
- Contact:
Mobile Phonegap Offline Grid
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?
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: Mobile Phonegap Offline Grid
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().
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().
Who is online
Users browsing this forum: Bing [Bot] and 0 guests