How to change the name of column in ActionScript?

I possibly know how to change the name of the column in DataGrid using mxml but dont know how  to change the name of column in  DataGrid using  ActionScript.
var newDataGrid:DataGrid=new DataGrid();
     newDataGrid.dataProvider=arrayCollection():
It takes the default names from arraycollection but I wanted to give any column names which I want through ActionScript.
Please HELP!

Give your datacolumn and id.  Then set the property for that column through the datacolumn id.
DataGridColumn id="nameDC"
Script:
nameDC.headerText = "Name";

Similar Messages

  • How to change the "name of column" property of an text item in runtime?

    How to change the "name of column" property of an text item in runtime?
    I look the properties of items in help and found nothing about this!
    It's possible?

    Hi,
    an other solution is change the block property QUERY_DATA_SOURCE_TYPE from "Table" to "Sub-query" , than change at run time the property QUERY_DATA_SOURCE_NAME.
    First create block and add items
    The QUERY_DATA_SOURCE_NAME will be for ex. "Select 'A' as col1, 'B' AS col2, 'C' as col3 from dual"
    Set into items the column name property to col1 , col2 ...
    At run time change the query to "Select 'Z' as col1, 'X' as col2 , 'Y' as col3 from dual"
    in this way you can change the source of column value.
    Caution because if you change value type from varchar2 to date you must cast date into varchar2.
    May be that this way is valid only for view data not for insert-update, i don't remember.
    bye
    Message was edited by:
    Killernero

  • How to change the name of a BADI Implementation?

    Hello experts,
    Does anyone knows how to change the name of the BADI Implementation? I just create a new Implementation but we need to rename it.
    Thanks in advance,
    AK

    Hi,
    Please go to transaction SE19, enter your implementation name.
    Then go to menu: Implementation -> Rename -> ...
    Regards,
    Ferry Lianto

  • Will someone please tell me how to change the name of a folder I created in Pages and saved to the cloud?

    Will someone please tell me how to change the name of a folder I created in "Pages" and saved to the "Cloud"? Thanks.

    Go to the open dialog in Pages and select iCloud.
    Click on the folder that you created on iCloud to open the folder.
    On the lower half of the window (the open folder) click on the name of the folder.
    Once you click and select the folder's name it should be editable.

  • HT204053 Our Apple ID is ok and functioning.  However, I just came on as the IT for the group and cannot find how to change the name.

    Our Apple ID is ok and functioning.  However, I just came on as the IT for the group and cannot find how to change the name.

    Assuming you mean the personal name associated with the account, as opposed to the login (which you can change if it's not an @icloud.com. @me.com or @mac.com address) you can change this at http://appleid.appla.com . Click on 'Manage your account' and then on 'Edit' next to 'Your name' and the name currently associated with the ID.

  • Can anyone tell me how to change the names of the networks I have set up on Airport Express

    Can anyone tell me how to change the names of the networks I have set up on Airport Express please? I now work in a UN compound and my network is my own name, would prefer some anonymity so seeking to change the wifi network name that others might see.

    Hi mkl1961,
    Happy Holidays!  The article below will explain how to reset your Airport Express and change the network and base station names back to their defaults.  
    Resetting an AirPort base station FAQ - Apple Support
    http://support.apple.com/en-us/HT3728
    What default settings will my AirPort base station have after a hard or factory default reset?
    AirPort base stations are set to request an IP address by DHCP.
    AirPort base station passwords are "public."
    AirPort base station names revert to "base station xxxxxx," where xxxxxx is the last six digits of the wireless MAC address*.
    AirPort base station network names are "Apple Network xxxxxx," where xxxxxx is the last six digits of the wireless MAC address*.
    *A MAC (Media Access Control) address, also known as a "network ID," is a unique hardware identification number for a network port.  You can find the wireless and Ethernet network IDs on the printed label on the bottom or side of the device.
    Airport Express Setup Guide
    manuals.info.apple.com/MANUALS/1000/MA1613/en_US/airport_express_80211n_2nd_gen _setup_guide.pdf
    I hope this information helps ....
    - Judy

  • How to change the name of the column for dynamic query

    I would like to change the name of the column name to bidderone, biddertwo and bidderthree. the only problem is the vendors name unknown when I run the query and sometimes the query returns two vendors. the maximum vendor is three. here is the query and please let me know how this can be done. thank you so much. I am using oracle 10i
    FOR lv_rec IN   ( SELECT vendor, calcbtot
      FROM (SELECT t.*, ROW_NUMBER () OVER (ORDER BY t.calcbtot Asc) rn
              FROM (  SELECT DISTINCT
                             s.vendor,
                             TO_CHAR (s.calcbtot, '999,999,999.00') calcbtot
                        FROM bidtabs b, bidders s
                       WHERE     b.CALL = s.CALL
                             AND b.letting = s.letting
                             AND b.vendor = s.vendor
                             AND b.letting = v_letting
                             AND b.CALL = v_call
                    ORDER BY 2) t)
    WHERE rn <= 3 )                 
       LOOP
          lv_sql :=
                lv_sql  || ', TO_CHAR(MAX(DECODE(TRIM(S.VENDOR),'''|| TRIM (lv_rec.vendor) || ''', S.BIDPRICE)),  ''$999,999,999.00'') AS "'|| TRIM (lv_rec.vendor) ||'" ';
       END LOOP;

    thank you so so much for your help on this. I am sorry i did not post the entire code. my intention is to use bidderone, biddertwo,bidderthree as a column name insead of the name of the vendors and also calcuate the average of the three vendors. the maximum vendor will be three but the minumum could be one or two. hope this is enought information to help me out further . thank you
    CREATE OR REPLACE PROCEDURE biddersquoteforbridge (
       p_spnumber   IN       VARCHAR2,
       p_result     OUT      sys_refcursor
    IS
       v_letting   VARCHAR2 (40);
       v_call      VARCHAR2 (40);
       lv_sql      VARCHAR2 (32767) := NULL;
    BEGIN
       SELECT DISTINCT L.LETTING, CALL
                  INTO v_letting, v_call
                  FROM LETPROP L, PROPOSAL P
                 WHERE L.LCONTID = P.CONTID AND CPROJNUM= p_spnumber;
       lv_sql :=
          'SELECT   O.PRPITEM "Item Number",
                    INITCAP(FUNC_GET_ITEM_DESCRIPTION(O.PRPITEM)) "Description",
                    O.CONTID "Contract Id",O.SECTION "Section" , P.CPROJNUM "SP Number", P.CFACSSUP "District",
                    FUNCT_GET_SECTION_IDENTIFIER(O.SECTION, O.CONTID) "Section Title",  ''Q''||(TO_CHAR(D.DATELET, ''Q-YYYY'')) "Quarter",
                    O.IPLINENO "Line Number", O.QTY "Quantity" ';
      FOR lv_rec IN   ( SELECT vendor, calcbtot
      FROM (SELECT t.*, ROW_NUMBER () OVER (ORDER BY t.calcbtot Asc) rn
              FROM (  SELECT DISTINCT
                             s.vendor,
                             TO_CHAR (s.calcbtot, '999,999,999.00') calcbtot
                        FROM bidtabs b, bidders s
                       WHERE     b.CALL = s.CALL
                             AND b.letting = s.letting
                             AND b.vendor = s.vendor
                             AND b.letting = v_letting
                             AND b.CALL = v_call
                    ORDER BY 2) t)
    WHERE rn <= 3 )                 
       LOOP
          lv_sql :=
                lv_sql  || ', TO_CHAR(MAX(DECODE(TRIM(S.VENDOR),'''|| TRIM (lv_rec.vendor) || ''', S.BIDPRICE)),  ''$999,999,999.00'') AS "'|| TRIM (lv_rec.vendor) ||'" ';
       END LOOP;
       lv_sql :=
             lv_sql
          || '
            FROM   PROPITEM O  ,                   
                   PROPOSAL P  ,
                   LETPROP  L  ,
                   BIDDERS  B  ,
                   BIDTABS  S  ,
                   BIDLET   D
             WHERE O.CONTID = P.CONTID
                    AND P.CONTID = L.LCONTID
                    AND L.CALL = B.CALL
                    AND L.LETTING = B.LETTING
                    AND B.CALL = S.CALL             
                    AND B.LETTING = S.LETTING
                    AND B.VENDOR = S.VENDOR 
                    AND S.IPLINENO = O.IPLINENO
                    AND L.LETTING = D.LETTING             
                    AND O.LINEFLAG =''L''    
                    AND L.LETTING = :B1
                    AND L.CALL = :B2
             GROUP BY
                   O.CONTID,
                   O.SECTION,
                   O.IPLINENO,
                   O.PRPITEM,
                   O.QTY,
                   P.CPROJNUM,
                   P.CFACSSUP,
                   O.PRICE ,
                   D.DATELET             
             ORDER BY O.IPLINENO ';
      -- DBMS_OUTPUT.put_line (lv_sql);
       OPEN p_result FOR lv_sql USING v_letting, v_call;
    END;

  • How to Change the position of Column in ALV report

    Hi Follks,
        Is is possible to change the position of column in ALV report?.If yes then how?
        Basically my requirement is, that user want afacility where , he should be able to change the position
        of column aftre he runs the report.
        Eg: After running the report , user felt that column 5 should be at position 2 , in that case he should   
               be able to drag column 5 at position 2 and vice versa.
        Please help me, how to solve this issue.
        Note : I am using NW 7.0 SP 9
        Regards
        PG
    Edited by: PG on Apr 13, 2009 11:10 AM

    HI PG,
    do below whie filling the filed catlog
    wa_fieldcat-fieldname        = 'Field1".
    wa_fieldcat-COL_POS = '1',
    append wa_fieldcat to it_fieldcat.
    wa_fieldcat-fieldname         = 'Field2".
    wa_fieldcat-COL_POS = '2',
    wa_fieldcat-fieldname         = 'Field3".
    wa_fieldcat-COL_POS = '3',
    Thanks!

  • Existing cross Reference: how to change the name of the file it refers to?

    Hi everybody,
    I am a professional translator.
    One client of mine sent me a complete FrameMaker 9 book file for translation.
    I translated the content via a CAT-Tool and now am in the process of checking if cross references and markers are ok directly into the file.
    I noticed that many cross references are linked to another file of the book. But in the process of translating each file separately, I gave them a slightly different name (I added the language at the end) so as to be able to recognise them eventually.
    Now I have this problem: I cannot find in the cross reference interface where to change the name of the file into the new one the cross reference is supposed to refer to.
    Am I right in wanting to change the file reference? If so, how do I do that?
    Or is it better to avoid this task and rename the translated file into their original names ? Would it work then?
    Thanks for your help.

    ... book file ...
    ...  each file separately, I gave  them a slightly different name (I added the language at the end) ...
    I'm guessing that you renamed the component files by means other than using the Edit > Rename File from the Book menu.
    If so, do over. Rename from the Book menu. It automatically revises all the cross-references in all the component files.
    In a Book, the only thing that's safe to rename with the file manager is the .book file itself.

  • How to change the name associated with iCloud email alias??

    I had MobileMe on the iPhone with alias email addresses and I liked how it didn’t attach any “name” to an alias. For example, I had MainUserName, then for aliases I would have [email protected], [email protected], etc. When I sent an email from my iPhone using one of the aliases as the "from" no name would be associated with the alias email address. If it was the MainUserName then it would associate it, e.g. Main User <[email protected]> will show up on the "From" field when I sent an email. But with iCloud on the iPhone (and iPad), it’s Main User <[email protected]>, Main User <[email protected], etc., which I don’t want.  If anything it should be Alias 1 <[email protected]> or Alias 2 <[email protected]>.  Anyway, I don't want any name associated with the aliases, so when I send an email it will simply say [email protected] or just [email protected] with no name association. 
    It works differently if I access iCloud through a web browser.  If I send an email via iCloud on the web, I can customize and have a different name with each alias, e.g., Tom <[email protected]> or Harry <[email protected]>  And the customization carries over to the Mail app on my Mac.  That would be ideal if the customization carried over to the iPhone and iPad, but I'd be happy if there was no name association with alias email addresses.  Hopefully, there's a solution to the iPhone/iPad situation with iCloud as I don't want the name linked with the main iCloud email address linked with all the different email aliases I have.

    Can I change the name associated with an ipod on my Mac?
    Select the iPod in the iTunes source list, click on its name, and type a new name.
    And can there be more than one iPod on one computer?
    Yes.
    (39352)

  • How to change the name of my Home Folder

    I'm just wondering how I could change the name of my personal home folder which is associated with my username. I heard that there's a script I can download or something.

    First, before you go messing around with your home folder, make SURE you have a backup. If you have to ask how to make one, this process is not for you-it's advanced, and can mess up your data if done wrong.
    1. Open Accounts preferences (>System Preferences...>Accounts)
    2. Unlock the lock at the bottom, if necessary.
    3. Control (or right) click your account's name, and click "Advanced Options..."
    4. (IMPORTANT) Change "Short Name" to what you want the new short name to be.
    5. (IMPORTANT) Change "Home Directory" so that the path is right (I.E. if your new short name is "test1", change the path to "/Users/test1"-basically, DON'T CHANGE "/Users/"-just what comes after it-DON'T TYPE THE QUOTES)
    6. (IMPORTANT) Click "OK", and restart.
    Good luck! AND BE CAREFUL!!!!!!!

  • How to change the name of the Mac I connect to in the drop-down window.

    Using my brand new MacBook, in the drop down menu when I connect to my iMac, it shows up as my name ( which is Derek Walton's Computer) ...... How can I change the name that shows up here? I have tried all areas that iI can think of and altered my name on the iMac but to no avail - e.g. - Network Sharing, Account Name, and so on.... anything anywhere I have changed... but it always shows up with my full name. I have however managed to get the name in the sidebar of the Leopard window to read as I want ( Derek's iMac) but that is all.
    Also, when I am using Airport on my MacBook, in the drop-down menu I see also other neighbours connections.... I am wondering therefore does it follow that they can see my wireless connection ( as Derel Waltons Computer)?
    This has been vexing me all night and I am geting very frustrated, but I bet there is a simple answer..... for those that know!
    Thanks in advance for any help you care to put my way.
    Derek

    It is not a simple issue. Not the same as changing a user account in Preferences. Ttry this link:
    http://docs.info.apple.com/article.html?artnum=106824

  • How to change the name of a moments in photos app in iOS 7?

    Please tell me can i change the name of a moment in photos app in iOS 7. If yes then please tell me how?

    I think you can't change the name I the moments. It's grouped by the iOS. You can choose photos and create albums though.

  • Does anyone know how to change the name of iphone 4 in itunes and no my itunes does not have alist on the left hand side to change it.

    i have been trying to change the name of my iphone 4 but every post I see says that there should be a left hand column and my itunes player does not have that is there a different way to change the way of it?

    Turn on the side bar by typing Cntrl + S.

  • How to change the name of (Guided procedure) GP Runtime View?

    Hello all!
    At Design time in GP (Guided Procedure), I have added a runtime view at the tab "Runtime Views" named Additional Resources to a GP process.  At runtime, when the process is started,  at the left bar appears the button "Additional Resources". Is there a way to change this name? Any idea can be helpfull :).
    Kindly Regards,
    Luiza

    Hi,
    an other solution is change the block property QUERY_DATA_SOURCE_TYPE from "Table" to "Sub-query" , than change at run time the property QUERY_DATA_SOURCE_NAME.
    First create block and add items
    The QUERY_DATA_SOURCE_NAME will be for ex. "Select 'A' as col1, 'B' AS col2, 'C' as col3 from dual"
    Set into items the column name property to col1 , col2 ...
    At run time change the query to "Select 'Z' as col1, 'X' as col2 , 'Y' as col3 from dual"
    in this way you can change the source of column value.
    Caution because if you change value type from varchar2 to date you must cast date into varchar2.
    May be that this way is valid only for view data not for insert-update, i don't remember.
    bye
    Message was edited by:
    Killernero

Maybe you are looking for

  • IPhoto not working with iMovie or Garageband

    Ever since I upgraded to iMovie 09 (from 08), my iPhotos will NOT load to iMovie. Or Garageband or even upload to email for that matter. What happens is that my iphotos say "loading photos" or something like that, and it just has a little spinner the

  • Why can't I just find by file name

    Can you just find something the 'old' way instead of all this 'metadata' stuff.? Mac's alleged help file is no help.

  • Photoshop 3.2 to elements 10

    How do I import pictures from Photoshop Album starter edition 3.2 into elements 10 without an unlock key as 3.2 no longer exists. My pc automatically gets photos into 3.2.

  • IMac DualCore with Ethernet problem

    Hi, today I received my new iMac Dualcore 17". But after installing I suddenly realized that the ethernet port is not working. I plugged in my DSL-cable and nothing happend. The modem is working fine with my older Mac. Apple Support Chat advised me t

  • Plant in payment document.

    Dear All, We would like to track the plantwise payments so we are Planing to fill the feild plant in payment document while posting payment. Anyone please suggest me will their be any impact of doing so. Will their be any negative impact on manuall f