Hi,
Can someone point me to a example of how to do a dependent dropdown with datasource. I am using smartGWT Pro. I have tried mulptiple ways to try to get the second dropdown to filter base on the first but no luck.
Currently I have 2 DS.
1st is for Business Line
2nd is for Product Line
On the Product Line I tried adding a a whereClause in the DS like:
<whereClause><![CDATA[
status = 'A' and tbl = $criteria.tbl
]]>
</whereClause>
I set the autofech of the 2nd dropdown to false.
onchange of the first dropdown I got the key for tbl and passed it in as criteria and did a fetch. However, I am either getting a Oracle character error or I am getting a Umbrella exception from smartGWT.
I am sure there is a easier way to do this. If you have examle like State and City or something like that that would help.
Thanks,
Can someone point me to a example of how to do a dependent dropdown with datasource. I am using smartGWT Pro. I have tried mulptiple ways to try to get the second dropdown to filter base on the first but no luck.
Currently I have 2 DS.
1st is for Business Line
2nd is for Product Line
On the Product Line I tried adding a a whereClause in the DS like:
<whereClause><![CDATA[
status = 'A' and tbl = $criteria.tbl
]]>
</whereClause>
I set the autofech of the 2nd dropdown to false.
onchange of the first dropdown I got the key for tbl and passed it in as criteria and did a fetch. However, I am either getting a Oracle character error or I am getting a Umbrella exception from smartGWT.
I am sure there is a easier way to do this. If you have examle like State and City or something like that that would help.
Thanks,
Comment