How to pass the value from Touch Ui Dialog's Select field to Datasource script of another Select. | Community
Skip to main content
jydps87387977
Level 3
March 3, 2016

How to pass the value from Touch Ui Dialog's Select field to Datasource script of another Select.

  • March 3, 2016
  • 1 reply
  • 2026 views

Hello,

In the Touch UI dialog, I have two 'select' components(say Select 1, and Select 2) that get dynamically populated using the Datasource.

Here is how they are supposed to work:
A. Select 1 gets dynamically populated using it's datasource( JSP script that defines the DataSource)
B. User can select any value from Select 1
C. Based on the user selected value from above, the selected value needs to be passed to datasource( JSP script that defines the DataSource) of Select 2. 
Based on the value from Select 1, the datasource script will call the external service.

Question: How to pass the selected value of  select 1 to a Datasource script of Select 2 ?

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

1 reply

smacdonald2008
Level 10
March 3, 2016

Hi - i talked with one of our Adobe AEM Touch UI experts and he said this to this use case: 

Select with data sources are fed with values on server side – so I am not sure if that would be right or possible (calling datasource jsp directly)…

The closest I have is - http://experience-aem.blogspot.com/2015/04/aem-6-sp2-touchui-adding-dynamic-select-options.html

Where the second select is fed with json response data and not data source

If the second select has to use data source – then I guess dynamically adjusting 2nd select values in js is one way

Hope this helps....