Hi,
I have 2 simple datasources.
Really similar to "order" and "orderitems". With a foreighKey assigned in orderitems to the id (primary key) or "order"
A 1 to many relationship.
I have a listgrid that use the "order" datasource. But in one of the fields on this grid I want to display the number of orderitems related to this order.
How can I do that?
I tried setting a cellFormater and do a fetch with the correct criteria, but the problem of course is that the response is asynchronous, so the result of query is fine (in the callback) but the value in the cell is not updated.....
Any simple solution? On client side of course...
I have 2 simple datasources.
Really similar to "order" and "orderitems". With a foreighKey assigned in orderitems to the id (primary key) or "order"
A 1 to many relationship.
I have a listgrid that use the "order" datasource. But in one of the fields on this grid I want to display the number of orderitems related to this order.
How can I do that?
I tried setting a cellFormater and do a fetch with the correct criteria, but the problem of course is that the response is asynchronous, so the result of query is fine (in the callback) but the value in the cell is not updated.....
Any simple solution? On client side of course...