Hello, I’m new to Webix and I’m trying to sync a richselect to a datacollection. The datacollection has four fields ( pk, group_id, group_title, active ). I want to use ( group_id, group_title ) for the ( id, value ) options in the richselect, but can’t figure out how to filter out those columns only and assign them to the ( id, value ) fields in the richselect. Any hints would be greatly appreciated.
Best Regards,
jharris
Hello,
For Richselect, the id
and value
keys are necessary. In case of data syncing, all changes should be done on the master DataCollection.
value
and any other attribute except the id
can be created through the data scheme ($init key):
http://webix.com/snippet/aaa01262
But if you need to change the id
, the only way is to specify a custom datatype:
http://webix.com/snippet/dafee83c
Hi Listopad,
That was what I needed. Thank you very much.