You need to sign in to do that
Don't have an account?
jgrenfell
Flex DataGrid Issue Displaying fields from a related object
I have a simple Datagrid in Flex:
And a SoQL query that I use to populate it:
Select Start__c, Shift__c, Name, Id, End__c, Business_Group_Site__c, Available_Slots__c, Site__r.Borough__c From Site_Log__c WHERE Start__c > TODAY AND Shift__c = 'Day'
All of the columns populate correctly except the Site__r.Borough. I've tried changing the dataField to just "Borough__c", but it still ends up blank. The SoQL definitely returns values for that field. Has anyone tried this, any ideas?
Code:
<mx:DataGrid id="dg_sites" width="475" height="300" editable="false"> <mx:columns> <mx:DataGridColumn headerText="Id" dataField="Id" visible="false"/> <mx:DataGridColumn headerText="Borough" dataField="Site__r.Borough__c"/> <mx:DataGridColumn headerText="Name" width="200" dataField="Name"/> <mx:DataGridColumn headerText="Available Slots" width="90" dataField="Available_Slots__c"/> <mx:DataGridColumn headerText="Business Group" dataField="Business_Group_Site__c" visible="false"/> </mx:columns> </mx:DataGrid>
And a SoQL query that I use to populate it:
Select Start__c, Shift__c, Name, Id, End__c, Business_Group_Site__c, Available_Slots__c, Site__r.Borough__c From Site_Log__c WHERE Start__c > TODAY AND Shift__c = 'Day'
All of the columns populate correctly except the Site__r.Borough. I've tried changing the dataField to just "Borough__c", but it still ends up blank. The SoQL definitely returns values for that field. Has anyone tried this, any ideas?
All Answers
Thank you SO MUCH! Your fix solved my day long problem
THANK YOU!!!