Touch UI Select Datasource Question | Community
Skip to main content
marissaw9851252
New Participant
October 16, 2015
Solved

Touch UI Select Datasource Question

  • October 16, 2015
  • 3 replies
  • 1192 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

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..

3 replies

smacdonald2008
New Participant
October 16, 2015

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. 

marissaw9851252
New Participant
October 16, 2015

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?

smacdonald2008
smacdonald2008Accepted solution
New Participant
October 16, 2015

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..