Hi Dave,
Thanks for your response.
I have gone through both of them, when I was developing the stated requirement, but both of them were not suitable to my requirement.
The second one shows how to filter based on Roles,(though it dynamically shows/hides based on roles), the static part here is the Group that we configure, so only for the group that we configure in the widget if the user is part of that group(mentioned in the widget), the widget will be shown/hidden based on the logic wrote in that widget.
My requirement was slightly different,
in my case, the configuration filter itself is dynamic, (example, I have a filter condition say last Deployed Date to QA)
Say I have written a web-script, which uses JS Controller, and in that controller I have written a widget using AlfListView and a filter condition using a AlfButton which just publishes "ALF_CREATE_DIALOG_REQUREST" that dialog will have a widget to key in last deployed to QA Date, and the data for that AlfListView comes as a JSON response from the Alfresco Webscript,
now initially when I invoke this web-script(which has AlfListView widget configuration in place), I should not show any data to the user, when the user clicks on the AlfButton and gives the input for the QA Date field, the data should be posted to the Alfresco Webscript that will inturn send me a filtered response, now I want use this as a response iterate and show it in the UI using AlfListView.
I have several filtered condition, my java-backed alfresco webscript will take care of generating the Json Response based on the filter conditions.
My only concern here is how to have the filtered JSON response and show it in UI.
Please let me know if don't make things clear.