Mobile Phonegap Offline Grid

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
negley
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

Post 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?
Scott Klement
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

Post 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().
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests