VMware {code} Community
VaibhavJain
Contributor
Contributor

Filter, find and export to csv not working for my ColumnSetContainer class

Hello there,

My ColumnSetContainer class looks this:

<?xml version="1.0" encoding="utf-8"?>
<lists:ColumnSetContainer xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:lists="com.vmware.ui.lists.*">
<fx:Script>
<![CDATA[
import mx.resources.ResourceManager;
private function getString(key:String) : String {
return ResourceManager.getInstance().getString('my_ui', key);
}
]]>
</fx:Script>
<lists:items>
<lists:ColumnContainer uid="my.handle.column.name">
<lists:dataInfo>
<lists:ColumnDataSourceInfo requestedProperties="{['name']}"/>
</lists:dataInfo>
<lists:component>
<mx:AdvancedDataGridColumn
headerText="{getString('my.column.property.name')}"
dataField="name"/>
</lists:component>
</lists:ColumnContainer>
</lists:items>
</lists:ColumnSetContainer>

Somehow I dont see any of the view features (Filter, Find, Export) working for me. Am i missing something here.

Regards,

Vaibhav

Reply
0 Kudos
1 Reply
laurentsd
VMware Employee
VMware Employee

Hi Vaibhav,

<lists:ColumnDataSourceInfo requestedProperties="{['name']}"/>  specifies the property name to use in that column, but you need to add additional parameters to specify the property to export and the property to sort by for the column (in most case the property is the same).  Something like:

<lists:ColumnDataSourceInfo requestedProperties="{['name']}"
      exportProperty="name" sortProperty="name"/>

Regarding the Find and Filter functions, your data adapter must be able to handle the query being sent when those are used (this is not the case of the current chassis-app sample for instance).  The best is to set a break-point in your adapter's getData() method when you try Find or Filter to see what the framework sends.  You can also see the details of the querySpec in the Virgo logs when the debug trace is on.

Reply
0 Kudos