The REST service must provide an array of data. This is what it expects xe:djxDataGrid, as it is a data grid control that displays data in multiple rows in a table.
REST viewJsonService. , . REST "viewName", defaultColumns="true" , .
REST :
<xe:restService
id="restService1"
pathInfo="docAccReq1">
<xe:this.service>
<xe:viewJsonService
viewName="AccessRequests"
defaultColumns="true" />
</xe:this.service>
</xe:restService>
REST JSON :
[
{
"@entryid":"1-80EFAE936EA978A480257CE4002DBC67",
"@unid":"80EFAE936EA978A480257CE4002DBC67",
"@noteid":"12C7A",
"@position":"1",
"@read":true,
"@siblings":200,
"@form":"access",
"Name":"Arun",
"ACCESSREQUESTER":"Arun Agnihotri",
"ACCESSREQUESTEDDATE":"2014-05-26T08:19:31Z"
},
{
...
},
...
]
"@position" "@siblings" Dojo Data Grid. , , . .
Rest documentJsonService, , JSON ( ) .