Display field from ArrayCollection in Text field


i want display welcome message logged in user, cannot work. pulling name arraycollection working datagrid on same page (as test).

here datagrid code:
<mx:datagrid dataprovider="{qinfo}">
<mx:columns>
<mx:datagridcolumn headertext="name" datafield="firstname"/>
</mx:columns>
</mx:datagrid>

here text code:

<mx:text text="you logged in {qinfo.firstname}"/>

flex throws standard 1119 error - tried bunch of different ways of doing this, none work.

what missing here?

qinfo collection of objects have firstname. qinfo object not. datagrid extracting firstname property each element.

you {qinfo.getitemat(0).firstname}. if you're not sure have item you'll need put checking around that.

tim


More discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

Qualcuno mi sa dire perchè non va questo protocollo seriale ?

Prezzemolo!

play video