Expand my Community achievements bar.

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

Avatar

Level 4

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 ?

1 Reply

Avatar

Level 10

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