Hi,
We have two Data Select CCE Widget for Country and City. For Country I have used below DB Query in miscellaneous tab and its working as expected.
<properties>
<sql>
<datasource>vignette.jdbc.VgnNonTxDataSource</datasource>
<select>SELECT ID,CON_NAME FROM EVNT_CONT ORDER BY CON_NAME</select>
</sql>
</properties>
We need to load the city Based on Country ID which is selected in Country Data Select CCE widget. How to pass the Country ID which is selected in Country Widget to City Widget?
Please help to update below data to achieve.
<properties>
<sql>
<datasource>vignette.jdbc.VgnNonTxDataSource</datasource>
<select>
SELECT EVNT_CITY.ID, EVNT_CITY.NAME FROM EVNT_CITY
join EVNT_CONT on EVNT_CITY.ID= EVNT_CONT.CITYID
where EVNT_CONT.ID = <Country Data Select CCE Widget Value>
</select>
</sql>
</properties>
Thanks,
Jay