Hi all,
I would like to call and then populate the resources from my database using the units view, but not sure how I would go about it.
For example:
How do I loop through my record set to populate the sections array:
This is what I have hard coded:
var sections=[
{key:1, label:"Andy Bravo"},
{key:2, label:"Stu Biggins"},
{key:3, label:"Steve L"},
{key:4, label:"Jay M"}
];
I would like to try and do something like this:
var sections=[
for (var i=0;i<iResourceCountFromDB;i++){
{key:i, label:RecordSet.ResourceName[i]},
}
];
Any help on how to populate the sections array would be very much appreciated.
Jay/