<?xml version="1.0" encoding="utf-8"?>
<mx:DataGrid xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
import mx.controls.Label;
public function willShowResult(result:Label, myVar:String):Boolean {
if (myVar== 'XXX') {
return false;
}
return true;
}
]]>
</mx:Script>
<mx:columns>
<mx:DataGridColumn
dataField="myVar"
headerText="My var"/>
<mx:DataGridColumn
dataField="result"
headerText="My result">
<mx:itemRenderer>
<mx:Component>
<mx:Label text="{outerDocument.willShowResult(this, data.myVar) ? data.result : ' ' }"/>
</mx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>
</mx:columns>
</mx:DataGrid>
Archive for February, 2011
If an autocomplete stopped working go
Window -> Preferences -> Java -> Editor -> Content Assist -> Advanced -> check for “Other Java Proposals”