On 4/13/05, loveewind <[EMAIL PROTECTED]> wrote:

> I have got the hashmap on flex age from remoteobject certainly

You want to display hashmap data into a datagrid.  If you set the
hashmap as the dataProvider, the DataGrid will _probably_ (not sure)
make all the names as columns, and all the values as data.

 <mx:DataGrid dataProvider="{hashmap}" />

You probably don't want that.  In that case, you'll have to massage
the object into an array of objects each containing two properties --
the name and the value.

 var array:Array = new Array();
 for (var p in hashmap)
   array.push({name: p, value: hashmap[p]);

Then you'll explicitly specify two DataGridColumn's for the name and value.

-- 
[EMAIL PROTECTED]
http://manish.revise.org/


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to