# Questions about Braces Syntax Usage in Mustache Template

**URL:** <https://discourse.nodered.org/t/questions-about-braces-syntax-usage-in-mustache-template/2902>\
**Category:** Dashboard\
**Created:** [6 September 2018 08:20 UTC](https://discourse.nodered.org/t/questions-about-braces-syntax-usage-in-mustache-template/2902 "2018-09-06T08:20:19Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![rishanaziz](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@rishanaziz](https://discourse.nodered.org/u/rishanaziz)\
**Post date:** [11 September 2018 05:31 UTC](https://discourse.nodered.org/t/questions-about-braces-syntax-usage-in-mustache-template/2902/3 "2018-09-11T05:31:56Z")

</div>

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)](https://discourse.nodered.org/t/gridview-with-crud-options-mysql/2244)

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.

```auto
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.

---

_[View the full topic](https://discourse.nodered.org/t/questions-about-braces-syntax-usage-in-mustache-template/2902)._
