on 05-13-2011 12:57 PM
Hi,
im developing a WDA with Flash Island embedded and i'm having problems passing integer values to the flex component.
Im using Flex 3.2 with Flex 3.6 Data visualization (I also tried compiling with Flex 3.0, Flex 3.5 and Flex 4.0)
The following piece of code does not work for me (it shows an empty table)
<mx:Script>
<![CDATA[
[Bindable] public var dataSource:ArrayCollection;
[Bindable] public var ypos:uint;
public function initApp():void{
FlashIsland.register(this);
}
]]>
but if i only change ypos variable type from uint (or int, its the same) to String, then I have the data displayed correctly
[Bindable] public var ypos:String;
In the WDA component controller the ypos field is defined as (TYPE I)
I know i can pass values as String and convert them to uint, but I'm wondering if I'm doing something wrong
Any suggestions?
Thanks
Manuel
ypos isn't the value of the column of hte dataSource itself. It is just an alias to hold the actual column name. It therefore must be type STRING. The columns in the dataSource will be created automatically with matching types from the WD Context - so they are int already if the context is type I. For instance send an alert or check the value of ypos in the debugger. You will see it contains the context attribute name of the matching column in the dataSource.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.