Announcement

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

    ListGridField A to decide ListGridField B's option data source

    Hello,

    I have a form users are filling out. They need to choose their database server, and then database name. But I don't want to show all database names all the time, and I want to show the database names that belong to the database server. I got the data source(xml) working dynamically, but I can't get it right in the Canvas.

    Code:
    ListGridField server = new ListGridField("server");
    server.setOptionDataSource(serverDataSource);
    
    ListGridField name= new ListGridField("name");
    name.setOptionDataSource(nameDataSource(--value of server--);
    Any ideas?

    Thanks!

    #2
    A little more info; I got it to work by adding addChangedHandler to the server list. But I also want it to work when the page first loads.

    Thanks.

    Comment


      #3
      Any ideas?

      Comment


        #4
        I think one of my problems is that I'm trying to set a different data source for the same columns, in different rows.

        I have a column called Database Server, and in each row the drop down list will have different options. Is this possible?

        Thanks.

        Comment

        Working...
        X