Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Dependent Dropdown

    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,

    #2
    I found an example in the demo. I will give it a try.

    Comment


      #3
      Hi,

      Did you find a way to handle this? please let me know the solution if you have figured out.

      Thanks,
      Sunil

      Comment

      Working...
      X