I am trying to figure out how to refresh a granite data source for a select field from a pathfield that I will like to also pass into the data source.
Set a path (pathToOptions) that will look at a content fragment model
Datasource is called, each time the path value has changed in the dialog, to Sling Servlet to retrieve all fields of content fragment
Author dialog generates options, for granite select drop down (cfOptions), with the fields from the data source.
(Variable names and paths are just generic)
Without so much knowledge of AEM Granite data sources and Apache Sling API; is there a viable method with the data source?
In the below example I am choosing articles from pathbrowser field and updating dropdown with child pages.
example - https://github.com/arunpatidar02/aem63app-repo/blob/master/js/dynamic-dropdown.js