Hi,
I have a dataset from which I have to select a subset.
How do I select subtasks from the list using a query please. i.e. query: { subId: '4' and taskId: '1'} ?
/* code snip */
var newModel = new dojox.grid.data.DojoData(null,null,
{rowsPerPage: 20, store: attJsonStore,
query: {subId: '4' }, clientSort: true});
...
Data set is as follows:
{"timestamp":1193692111,"items":
[
{
"taskId":"1",
"type": "update",
"systemId":"crm-400",
"name": "muddy waters",
"address": "1 Lancelot house",
"dob": "12-10-08",
"date": "01-01-61",
"status":"Accepted",
"selected": false,
"subTasks" : [
{"subId":"4", "attrName": "Name", "attrValue": "Line1", "oldValue": "233 High Street", newValue: "333 High Road", "currentValue": "244 High Street", "status":"Accepted","date": "12-01-08", "selected": false },
{"subId":"5", "attrName": "Name", "attrValue": "Line2","oldValue": "451 Brent house", newValue: "4 Martin Road", "currentValue": "Taylor Avenue", "status": "New", "date": "12-01-08", "selected": false},
{"subId":"6", "attrName": "Name", "attrValue": "Postcode","oldValue": "Liz house", newValue: "11 Duke's Garden", "currentValue": "11 Duke's Garden", "status": "New", "date": "12-01-08", "selected": false}
]
},
{
"taskId":"2",
"type": "update",
"systemId":"test-2",
"name": "mark knopfler",
"address": "451 Brent house",
"dob": "01-01-09",
"date": "13-08-65",
"status": "New",
"selected": false
},
{
"taskId":"3",
"type": "update",
"systemId":"test-6",
"name": "Robert Johnson",
"address": "Liz house",
"dob": "01-01-09",
"date": "13-08-65",
"status": "New",
"selected": false
}
]
}
