I created a combo / richselect that needs to be updated.
I tried in several ways.
Was unable to set the url parameter. Because I use a function that has parameter and the url property does not recognize.
example:
“… / relvisitas / buscaPedidos? id = 5”
Thus, it does not recognize the ID parameter = 5, and gives a 404 page not found.
With ajax …
dhx.ajax (.) post (“… / relvisitas / buscaPedidos” “id =” + id, function (text) {
$ $ (‘cboPedido’). define (“data”, text);
$ $ (‘cboPedido’). refresh ();
console.log (“text”, text);
});
ajax Json returns just right of the object data.
[{id: '110 ', value: '110 - 23/04/2013 "}, {id: ‘112’, value: '112 - 23/04/2013 '}]
But the data does not appear in the combo or richselect.
{view: ‘richselect’
label: ‘Application’,
labelWidth: 150,
Id ‘cboPedido’
datatype: “json”,
/ / Data: applications,
filtering: true
}