Handling of grouplist with datatype jsarray

Hi,

thank you for your great and fast support. I like working with this framework!

  1. Currently I want to set up a grouplist in a view and fill it with data from an array (datatype: ‘jsarray’). But there is no example how to do this :frowning: (only json, xml) Normaly I would use the ‘data:’ parameter, but in this case it´s not working. Also I can´t call the $$(‘id’).add() method…

  2. Is there some kind of data binding with the grouplist or do I have to rebuild (refresh) every time when the data source changes?

Thank you :wink:

(1)
Group list can’t be loaded from js-array ( at least for now ), because js array can’t store hierarchical data.

(2)
Not quite sure about your use-case. But normally you can call at any time

$$(‘mylist’).parse(data, “json”);

it will update existing data from incoming data ( update existing data, add the new one )