I need to populate a select widget(/libs/granite/ui/components/foundation/form/select) in the AEM 6 Touch UI with objects returned from a call to a java helper class. I believe I need to use a datasource to accomplish this. I need to pass a SlingScriptHelper and some of the inherited properties for the current page to my helper class. Is it possible to get these objects in the datasource jsp?
Solved! Go to Solution.
Views
Replies
Total Likes
Look at this older community thread:
https://forums.adobe.com/thread/1063317
It talks about how to get a SlingScriptHelper using a Request object. You should be able to get this object in the script where a DataSource object is created. We only have the above article that shows how to use a DataSource object when working with Touch Ui components..
Views
Replies
Total Likes
We have a community article for this use case. See:
https://helpx.adobe.com/experience-manager/using/creating-granite-datasource.html
Hope this gets you up and running.
Views
Replies
Total Likes
Thanks for the reply, but I was hoping to get a little more guidance. I had already reviewed that example.
I need to pass a SlingScriptHelper and some of the inherited properties for the current page to my helper class. Is it possible to get these objects in the datasource jsp?
Views
Replies
Total Likes
Look at this older community thread:
https://forums.adobe.com/thread/1063317
It talks about how to get a SlingScriptHelper using a Request object. You should be able to get this object in the script where a DataSource object is created. We only have the above article that shows how to use a DataSource object when working with Touch Ui components..
Views
Replies
Total Likes
Views
Like
Replies
Views
Likes
Replies