Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Supporting Technologies > Flash Remoting

Reply
 
Thread Tools Rate Thread Display Modes
Old 12-16-2003, 02:23 PM   #1
heyder
creative soloper
 
Join Date: Sep 2002
Posts: 43
Default binding data to DataGrid Flash MX

can someone give me an example of how I would bind data to a DataGrid using different column names than what is returned from the database.


ie...

query database for contactname, email...

column names show as Contact Name, E-Mail


can I do this using DataGlue somehow?
heyder is offline   Reply With Quote
Old 12-16-2003, 03:43 PM   #2
heyder
creative soloper
 
Join Date: Sep 2002
Posts: 43
Default

I got this to work using the following

DataGlue.bindFormatFunction(staff,result,bindGrid) ;


function bindGrid(result){
return {contact:[result.contactname], email:result.email};
}


so that's fine but... I wanted to label the column contact name(two words and a space).

Does the DataGrid not allow this or is it something else?
heyder is offline   Reply With Quote
Old 12-23-2003, 05:44 AM   #3
Eric Echols
Registered User
 
Join Date: Nov 2003
Posts: 22
Default

An alternate method would be to Select mycolumn as ColumnNew from mytable
Eric Echols is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:10 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.