I think all of your data grids have the same dataProvider.  I bet they
all display the last call?

"{proposalsRO.getProductsForRoom.result}" is one object, and each
call/result changes it.

Not sure how you would do this, but it is a cool idea.

Tracy

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of mplacedigital
Sent: Friday, April 29, 2005 1:48 PM
To: [email protected]
Subject: [flexcoders] dynamically generating tabs with nested datagrids

I'm trying to use a tab navigator that dynamically generates tabs, each
tab has a datagrid 
inside of a vbox that is generated with a repeater.  I'm trying to
populate each datagrid 
with the results of a remote object method call.  I'm able to generate
the tabs with the 
correct names but am unable to populate the datagrids.  Each time
through the loop I'm 
calling the remote object method, but the same results are being
displayed in each grid.
Here is my code. (I think,..... I've changed it so many times.)

   <mx:TabNavigator id="roomTabs" width="100%" height="50%">
          <mx:Repeater id="roomRepeater" dataProvider="roomNameList">

          <mx:DataGrid height="100%" width="100%" 
 
load="proposalsRO.getProductsForRoom(proposal.proposalId,   
roomRepeater.currentItem.roomId)"

 
dataProvider="{proposalsRO.getProductsForRoom.result}">
                                                       
                  <mx:columns>
                       <mx:Array>
                         <mx:DataGridColumn columnName="name"
headerText="Item" />
                         <mx:DataGridColumn columnName="quantity"
headerText="Quantity"/>
                          <mx:DataGridColumn columnName="price"
headerText="Price"/>
                       </mx:Array>
                   </mx:columns>
        </mx:DataGrid>
      </mx:Repeater>

    </mx:TabNavigator>



~                                     





 
Yahoo! Groups Links



 







 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to