I have the following prevalues on my propertyeditor,
1.list of document types setup as multi select.
list of document properties as multi select.
I am filling 1 and on save saving the data. What i want to do is when i select an item or more than one 1 item from 1 i want to populate items in 2 with the properties for selected doc types. So how do i on trigger of select in 1 populate data of 2. Each property editor is separate html file so not sure how you would propagate event in 1 to 2?
Cascading select prevalue editor
I have the following prevalues on my propertyeditor,
1.list of document types setup as multi select.
I am filling 1 and on save saving the data. What i want to do is when i select an item or more than one 1 item from 1 i want to populate items in 2 with the properties for selected doc types. So how do i on trigger of select in 1 populate data of 2. Each property editor is separate html file so not sure how you would propagate event in 1 to 2?
Any ideas?
Regards
Ismail
In answer to my own question see source code for similarity for v7 so I have a shared service
https://bitbucket.org/ismailmayat/similarity/src/cbe965b9ce19886cf549361174ed8e9b44cd75af/App_Plugins/Similarity/service/sharedService.js?at=master
that has broadcast of event on the rootscope. In my controller i watch that see
https://bitbucket.org/ismailmayat/similarity/src/cbe965b9ce19886cf549361174ed8e9b44cd75af/App_Plugins/Similarity/controllers/similarity.docTypes.controller.js?at=master
and
https://bitbucket.org/ismailmayat/similarity/src/cbe965b9ce19886cf549361174ed8e9b44cd75af/App_Plugins/Similarity/controllers/similarity.docTypeProperties.controller.js?at=master
this works nicely however I am not certain if its the best way of doing it.
is working on a reply...