You have a problem with your OLAPdataGrid dataProvider, I'll probably look for the cause of the not a number
Thanks but for some parts of the grid there will be no data(no deals with that bank for that customer) so thats why its NaN
1 person found this helpful
You could create a itemRenderer, and in this component verify if the data is NaN then don't show this, else show the data.
I done this, how so I set the text of albumName form the set data method?
<mx:OLAPDataGrid x="10" y="39" width="555" height="342" id="myOLAPDG">
// Variable in the renderer scope.
public var localVar:String="Renderer localVar";
public override function set data(value:Object):void
var test:String= '2';
I'm not sure if I got the problem right, but why don't you simply add albumName.text = "yourText"; into the setter method? Or even better, override the commitProperties protected method and update the albumName with the new text there.
With best regards,
Its not as simple as that, the parameter passed into the set data is a very complex object and I can't figure out how to get the data I want from it.
As I said, override the commitProperties method and extract whatever information you want from the data. You are already updating the data by overriding the data setter, now, you just need to override the commitProperties method and update your objects with the help of the received that. Actually, it is that simple. Good luck.
I believe there is a much simplier solution to your specific problem: set the "defaultCellString" property of your OLAPDataGrid instance to a better value, such as a dash ("-") or even an empty string. You don't need to create a custom item renderer just for that.
<mx:OLAPDataGrid id="myOLAPDG" defaultCellString="-" />