Have a look at the attached files. This is a sample
implementation of a labelField in datagrid. This picks
up data from an xml, concatenates the first name and
last name into a single datagrid column and displays.
Have a look at the getName() functio  implementation.

Hope this helps,

Harish
Flex-QA
Adobe India.

--- Doug Lowder <[EMAIL PROTECTED]> wrote:


---------------------------------
Have a look at DataGridColumn.labelFunction in the
docs.  You can 
specify a function for the column that returns a
concatenation of 
your two fields.

Doug

--- In [email protected], "Jeremy Rottman"
<[EMAIL PROTECTED]> 
wrote:
>
> I have a cfc function that I am using to search my
db and it 
returns
> results as a query. This works fine with my testing.
> 
> The issue that I have run into is. How I can use two
returned db
> fields in one dg column. 
> 
> Right now I am testing this.
> 
> <mx:DataGrid x="10" y="67" id="ASDG" click=""
width="85%" 
height="65%">
>      <mx:columns>
>       <mx:DataGridColumn headerText="Name"
columnName="FLD_FULLNAME
> FLD_OAFULLNAME"/>
>     </mx:columns>
> </mx:DataGrid>
> 
> The fields I am returning are FLD_FULLNAME AND
FLD_OAFULLNAME.
>







--
Flexcoders Mailing List
FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com

      

      SPONSORED LINKS  
                                                Web
site design development                               
    Computer software development                     
              Software design and development         
                                                     
Macromedia flex                                   
Software development best practice                    
                  
    
---------------------------------
  YAHOO! GROUPS LINKS

  
    Visit your group "flexcoders" on the web.
   
    To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
   
    Your use of Yahoo! Groups is subject to the Yahoo!
Terms of Service.

  
---------------------------------

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
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/
 
<?xml version="1.0" encoding="utf-8"?>

<list>

    <salesrep>
        <name>
            <first>Christina</first>
            <last>Coenraets</last>
        </name>
        <q1>1289</q1>
        <q2>1456</q2>
        <q3>987</q3>
        <q4>1675</q4>
    </salesrep>

    <salesrep>
        <name>
            <first>Louis</first>
            <last>Freligh</last>
        </name>
        <q1>1143</q1>
        <q2>1543</q2>
        <q3>1054</q3>
        <q4>1276</q4>
    </salesrep>

    <salesrep>
        <name>
            <first>Joanne</first>
            <last>Wall</last>
        </name>
        <q1>1098</q1>
        <q2>1345</q2>
        <q3>876</q3>
        <q4>1423</q4>
    </salesrep>

    <salesrep>
        <name>
            <first>Mary</first>
            <last>Jones</last>
        </name>
        <q1>1145</q1>
        <q2>1176</q2>
        <q3>1456</q3>
        <q4>1522</q4>
    </salesrep>

</list>

Attachment: sample_new.mxml
Description: 3088593788-sample_new.mxml

Reply via email to