Hi Nick,
Thanks for the explanation.
I'm using JSGrid to display data and perform CRUD operation. The fields with type "select" (dropdown) are not displaying data. Once I click to add and edit data, I'm unable to make the fields to appear as dropdown with options from the database (e.g. Location_Name from location table). I just would like to make this work.
Here's the link of the topic for more information: Gridview with CRUD Options (MySQL)
I tried the following syntax to access array properties in mustache template, but I'm unable to display the data. Maybe the syntax is incorrect.
var db = {{{payload.0}}}; //payload[0] (Data for main)
var loc = {{{payload.1}}}; //payload[1] (Data for dropdown 1)
var mac = {{{payload.2}}} //payload[2] (Data for dropdown 2)
{
title: "Location",
name: "location",
type: "select",
items: loc,
width: 100
}
{
title: "Type",
name: "type",
type: "select",
items: mac,
width: 100
}
Hope to hear from you soon. Thanks for helping.