开发者

Flex Datagrid Column not displaying the value

开发者 https://www.devze.com 2023-01-15 09:23 出处:网络
We have a Datagrid: <nross:ScalableDataGrid id=\"grid\" dataProvider=\"{model.practiceJoinRequestThickList.practiceJoinRequestThicks}\">

We have a Datagrid:

    <nross:ScalableDataGrid id="grid" 
dataProvider="{model.practiceJoinRequestThickList.practiceJoinRequestThicks}">

  开发者_开发百科  <nross:columns>
                <ui:DataGridToolTipColumn headerText="ID" dataField="practiceJoinRequest.userId"/>
                <ui:DataGridToolTipColumn headerText="Name" dataField="userName"/>
                <ui:DataGridToolTipColumn headerText="Email" dataField="userEmailAddress"/>
                <ui:DataGridToolTipColumn headerText="Office"/>
                <ui:DataGridToolTipColumn headerText="City" dataField="practice.practiceContactAddresses.address.city"/>            
            </nross:columns>

    </nross:ScalableDataGrid>

where practiceJoinRequestThicks is an ArrayCollection of PracticeJoinRequestThick object.

The PracticeJoinRequestThick has an Practice Object.

Practice has an arraycollection "PracticeContactAddresses" which is an arraycollection of PracticeContactAddress object

and PracticeContactAddress object has Address object which has the field city:String

Now when I try to display the City, it does not work. I would appreciate if someone can help me in this regard.

Thanks

Harish


If practiceContactAddresses is an ArrayCollection, you need to set which one you are referring to. Something like so: dataField="practice.practiceContactAddresses[0].address.city"

Hope that helps.

0

精彩评论

暂无评论...
验证码 换一张
取 消