3.2.0

Filling the grid from Javascript Data Object

There appear to be three different ways to fill the grid with data.
What provision is there to fill the grid from a Javascript Data Object of an array of objects, each of which represents a record from a file?
Each of these objects represents one row with several columns of data.

function obj_brwmsg1() {
this.bodsubject = "This is another question." ;
this.bodcategory = "QUESTION" ;
this.regname = "Creces, Gus" ;
this.bodid = "5" ;
this.bodngmemberid = "1" ;
this.bodngthreadid = "5" ;
this.bodadddate = "6/13/2005" ;
this.bodmsgsize = "272" ;
this.boddatelogged = "9/27/2005" ;
this.bodtimelogged = "12:00:08" ;
this.bodupdated = "11" ;
this.ownerrecord = "0" ;
this.fetchfilter = "BOD:ID = 5" ;
this.threadfilter = "BOD:NGThreadID = 5" ;
}
brwmsg[1] = new obj_brwmsg1();

function obj_brwmsg2() {
this.bodsubject = "Insert Message Subject Here" ;
this.bodcategory = "QUESTION" ;
this.regname = "Scripter, The" ;
this.bodid = "22" ;
this.bodngmemberid = "3" ;
this.bodngthreadid = "22" ;
this.bodadddate = "7/28/2005" ;
this.bodmsgsize = "1,227" ;
this.boddatelogged = "8/12/2005" ;
this.bodtimelogged = "14:40:49" ;
this.bodupdated = "3" ;
this.ownerrecord = "1" ;
this.fetchfilter = "BOD:ID = 22" ;
this.threadfilter = "BOD:NGThreadID = 22" ;
}
brwmsg[2] = new obj_brwmsg2();

Gus M. Creces
October 12,

This topic is archived.

See also:


Back to support forum