How to edit the header text of colums in DataGrid

Hi
Iam not able to edit the headertext or column header names of the datagrid ..can somebody help me asap..how to do it...I want to edit the  column header names (headertext) in the runtime ..similar to  edit the data in the rows of datagrid by setting the editable property to true..

Even the DataGridColunm has property headerRenderer.I tried the following ..But its not working ..plzz help me out
<mx:DataGridColumn id="timeCol"    dataField="Time"    headerText="Time (ms):"  headerRenderer="Display" />
The code for Display.mxml is as follows
<?xml version="1.0" encoding="utf-8"?>
<mx:Label xmlns:mx="http://www.adobe.com/2006/mxml" initialize="inti()">
    <mx:Script>
        <![CDATA[
            public function inti():void{
                this.addEventListener(MouseEvent.DOUBLE_CLICK,edit);
            public function edit():void{
                trace("In Naga");
                this.text="naga";
        ]]>
    </mx:Script>
</mx:Label>

Similar Messages

  • How to change the header text fontFamily of spark DataGrid?

    I use an embed font (Nunito-Light.ttf),  and i can set the font of GridColumn to Nunito-Light in DataGrid , but it seems that it has no effect to the header of DataGrid.
    and then I create a  headerRenderer for spark DataGrid, and try to set the fontFamily of "labelDisplay" to Nunito-Light  , but It seems still no effect .
    If I set the fontFamily of "labelDisplay" to "Verdana" or "Arial" , it has effect , so strange! Is that a bug?
    Anybody  has the same problem? Please tell me how to solve it ,thank you very much!

    Hi,
    Please go through following link :
    http://forums.adobe.com/thread/870081#870081
    Thanks and Regards,
    Vibhuti Gosavi | [email protected] | www.infocepts.com

  • How to wrap the heading text in alv.

    HI all,
          I need help, how to wrap the heading text in alv.
    can any help ... plz..
    Advanced Thanks
    Regards
    GUhapriyan

    Hello GuhaPriyan,
    I assume that you're referring to the ALV Grid's title. The maximum length for this title is 70 characters and this would generally fit in the one line.
    Are you intending to wrap it because you purposefully want the text to come in two lines? In that case, I'm not sure that it's possible.
    But otherwise, there's an option in the Layout called SMALLTITLE. You can set this attribute so that the title would be displayed in a amaller font and hopefully, all of your text shows up on the screen.
    Regards,
    Anand Mandalika.

  • How to retrieve the header texts for a contract

    HI,
      i think we need to use the FM read_text to get the header texts for a contract but dont know how to use the FM like what all the parameters are passed to that to get the header texts of a contract(va43).
    any help is appreciated with points.
    thanks
    prasad

    Hi,
      Pls refer this code,    
        CALL FUNCTION 'READ_TEXT'
                  EXPORTING
                    client                  = sy-mandt
                    id                      = '0001'
                    language                = sy-langu
                    name                    = v_textid
                    object                  = 'KNMT'
                  IMPORTING
                    header                  = t_header
                  TABLES
                    lines                   = t_lines
                  EXCEPTIONS
                    id                      = 1
                    language                = 2
                    name                    = 3
                    not_found               = 4
                    object                  = 5
                    reference_check         = 6
                    wrong_access_to_archive = 7
                    OTHERS                  = 8.
                IF sy-subrc EQ 0.
                  LOOP AT t_lines.
                    CONCATENATE w_arktx t_lines-tdline INTO w_arktx
                                       SEPARATED BY space.
                  ENDLOOP.
                ENDIF.
                IF w_arktx NE space.
                  MOVE w_arktx+1(1583) TO t_lips-arktx.
                ELSEIF w_arktx EQ space.
                  CLEAR w_text_name.
                  CLEAR v_textid.
                  wa_lips-matnr = t_lips-matnr.
                  wa_lips-vkorg = t_likp-vkorg.
                  wa_lips-vtweg = t_lips-vtweg.
                  w_text_name = wa_lips.
                  CLEAR w_arktx.
    Retrieval of Sales Text
                  CALL FUNCTION 'READ_TEXT'
                    EXPORTING
                      client                  = sy-mandt
                      id                      = '0001'
                      language                = sy-langu
                      name                    = w_text_name
                      object                  = 'MVKE'
                    IMPORTING
                      header                  = t_header
                    TABLES
                      lines                   = t_lines
                    EXCEPTIONS
                      id                      = 1
                      language                = 2
                      name                    = 3
                      not_found               = 4
                      object                  = 5
                      reference_check         = 6
                      wrong_access_to_archive = 7
                      OTHERS                  = 8.
                  IF sy-subrc EQ 0.
                    LOOP AT t_lines.
                      CONCATENATE w_arktx t_lines-tdline INTO w_arktx
                                         SEPARATED BY space.
                    ENDLOOP.
                  ENDIF.
                  IF w_arktx NE space.
                    MOVE w_arktx+1(1583) TO t_lips-arktx.
                  ELSE.
    REgards
    srinivas

  • How to change the header text on output type in sapscript

    Dear All,
    In the sapscript, I would like to changes the header text from invoice number to sales number on the output type z001.
    Could someone can guide me?
    Thanks.

    Hi,
    Please go through following link :
    http://forums.adobe.com/thread/870081#870081
    Thanks and Regards,
    Vibhuti Gosavi | [email protected] | www.infocepts.com

  • How to get the header text of a PO

    Hi,
    Do you guys know which table stores the header text of a PO? i'm only getting RM06E which is a structure.
    Thanks!

    Hi,
    You need to use the Function Module 'READ_TEXT' for retrieving any text in the header texts.
    For this FM, the mandatory export parameters will be
    a) client b) ID c) language d) name e) object
    here the parameter name will be your P.O.No and the object will be your P.O. table - 'EKKO'.
    So on executing this FM, all the required texts are retrieved in the tables parameters. From this tables paramater, you can read the table and pass on the values to your required internal table for display purpose.
    lakshminarayanan
    Please mark all helpful answers for points.

  • HOW to EDIT the Transtalated TEXT

    Hi All
    1. I have created the one Texmodule in English.
    2. its has got translated to GERMAN(DE) language  using SE63.
    3. But my client want to EDIT the converted language(DE) , when he is login to SAP langusge(DE) .
       HOW to DO THIS..?????
    thanks in advance,
    Gangadhar.

    No, its customer wanted to change via PORTAL for SAP E-RECRUITMENT MODULE.  I am geeing the changeble text only for ORIGINAL LANGUAGE EN, but Am getting Display for language DE.

  • How to edit the head in a webpage created in a template

    I have created some webpages from a Dreamweaver template that I made and thought I'd add in all the content, then go back and add in the titles, metadata etc. However, the head section of all my webpages is greyed out, so that I cannot edit the content. I've added editable regions to the body and tried to create editable regions in the head section of the page, so that I could amend this section but it didn't seem to work. Does anyone know how I can edit this section? My concern is that I'm going to have to detach all pages from the template, which I didn't want to have to do. By the way, I'm using Dreamweaver CS5.
    Any help would be much appreciated!

    You need to open your Template.dwt tile and ensure that you have Editable Regions for doc title and <head> tags.  Otherwise those elements are not editable from Child pages spawned from that Template.
    So your Template must contain these important bits of code.
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>Untitled Document</title>
    <!-- InstanceEndEditable -->
    <!-- InstanceBeginEditable name="head" -->
    <!-- InstanceEndEditable -->
    </head>
    Nancy O.

  • How to change the header text of documents posted to FI from accrual engine

    Dear experts,
    could anybody explain us step by step how we can get a different header or position text into transaction ACACTREE01, which can can be shown in FI or CO-Reporting.
    Kind Regards
    Sladinky

    Hi Sladinky,
    Can you please suggest this in case you have already implemented it ?
    Thanks,
    Sourav

  • Edit the header and other static content of a wiki?

    Hello.
    Does anyone know how to edit the header of a wiki?
    I'm no talking about the banner image, but the area above the banner (which contains the group name, and links for Wiki/Blog/Calendar as well as the search icon)?
    I've customized a number of wiki themes (via the original wireframe), but I've been asked to add a logo to the header area. I've also been asked to change "Blog" to another name.
    So, wondering — where are the files that I would edit for this?
    Any advice would be appreciated!
    Thanks,
    Kristin.

    You need to copy the XSL files from
    /usr/share/wikid/lib/apple_templates
    to
    /Library/Application Support /Apple/WikiServer/Themes/custom theme
    and then modify default.xsl in your theme folder.
    Message was edited by: onisama

  • How to add texts to the Header Text in the PO header

    Hi
    In our system, some already added remarks are appearing in the PO header text field when i open a PO. I wanted to edit the remarks appearing in the PO header as a default. I wanted to know where these predefined texts are filled in. Appriciate if you can help me findout the same.
    Thanks
    Venkat.

    Hi
    In the above said configuraiton path, they have mentioned "Purchase order"  in the source object and the "Header Text" in the source text.
    But i wanted to konw  where the below mentioned genereic Notes/Remarks will be entered. For all the purchase orders, this text is autmatically get copied into the header text. i wanted to know from where it is originating and where we are maintaining.
    "Notes / Remarks :
    Vendor's signature on the attached PO terms and conditions is an integral part of this PO
    All documents should have a PO number
    Invoices should be submitted to the attention of the Finance department
    Please attach a PO copy with all claims to avoid delay in receiving payment.?"

  • How can I list the head texts or texts of position of the invoices created

    hello experts
    I have a consultation.
    how can I list the head texts or texts of position of the invoices created in module sap SD?
    Up to now I can see them visualizing the document SD for transaction VF03, but I need to see a listing of invoices and don't unite in one.
    he/she would thank their collaboration.
    greetings,
    Jorge Silva

    Dear Jorge,
    You can use T-Code VF05 or VF05N to generate list of Invoices with range of selection criterias...
    The concerned tables for the same are VBRK & VBRP.
    Let us know should you require any further help..
    Hope this helps...
    Give points if useful..
    Thanks,
    Jignesh Mehta

  • Hi! How can I change the header text direction to vertical?

    I have many columns with big names, but I need small space for body cells, and I want to check all the table at a view ...  So I want to change the direction of the header texts to "left vertical" or "right vertical".

    There are a couple discussion threads on this already.  Fundamentally it is not a feature that Numbers supports.  There are several work arounds but non of theeem are great:
    Please see this thread:
    https://discussions.apple.com/message/15240103#15240103

  • How to Edit the CheckBox in Classic ALV GRID Display

    Hi,
    I want to Edit the checkbox in Grid Display.
    I have one checkbox field in my internal Table,
    Code Of the Program,
    Data :
    Begin of itab occurs 0,
    CHK type C,
    MATNR like MARA-MATNR,
    end of itab.
    Iam building the fieldcatelog using Merge Funcion module.
    After that I am chaning the properties of the field
    catelog like below,
    loop at I_FCAT assigning <FCAT>.
    Case <FCAT>-Fieldname
    When 'CHK'.
    <FCAT>-Checkbox = 'X'.
    <FCAT>-INPUT = 'X'.
    I dont have edit option in fieldcatelog.
    modify I_FCAT from <FCAT>.
    endcase.
    endloop.
    In the Layout,
    I_LAYOUT-box_fieldname = 'CHK'.
    I_LAYOUT-box_tabname = 'ITAB'.
    It is displaying the Checkbox field.but I couldnt edit the checkBox.
    I can able to edit in REUSE_ALV_LIST_DISPLAY.
    But I  have to use REUSE_ALV_GRID_DISPLAY.How to edit the checkbox.
    Thanks in Advance,
    Sumithra

    Hi vasu,
    The below procedure explains you to create a checkbox cloumn in the grid and allows you to edit i hope this will helps u.
    The ALV Grid Control displays the cells of a column as checkboxes if the column is marked as a checkbox column in the field catalog.
    •     Add another field to the output table in which you want to display checkboxes
    OR
    •     Define an existing field as a checkbox.
    Procedure
    1.     Add a field to your output table:
    Data: gt_fieldcat type lvc_t_fcat.
    Types: begin of gs_outtab.
    Types: checkbox type c. "field for checkbox
    Include structure <ABAP Dictionary structure> .
    Types: end of gs_outtab.
    Data: gt_outtab type gs_outtab occurs 0 with header line.
    2 * Add an entry for the checkbox to the field catalog
    clear ls_fcat.
    ls_fcat-fieldname = 'CHECKBOX'.
    * Essential: declare field as checkbox and
    * mark it as editable field:
    ls_fcat-checkbox = 'X'.
    ls_fcat-edit = 'X'.
    * do not forget to provide texts for this extra field
    ls_fcat-coltext = text-f01.
    ls_fcat-tooltip = text-f02.
    ls_fcat-seltext = text-f03.
    append ls_fcat to gt_fieldcat.
    regards,
    venu.

  • How to copy MIRO header text to account document line item automatically

    HI Experts,
    I really need your help or advices , my question is as follows, thanks.
    After goods receipt , I do invoice verification at t-code MIRO , and it'll produce an account document by system.
    at MIRO, I key in the purchasement description on the header text column (INVFO-SGTXT) ,
    and after posting , the header text only appear in account document's account payable item ,
    it's blank in GR/IR and tax item. 
    How to do could let the GR/IR and tax item have the header text too at column BSEG-SGTXT which produced by system?
    p.s.
    I  have try to use BADI:  AC_DOCUMENT , Method: CHANGE_AFTER_CHECK
    and declare  a couple of parameters to check the value,  as follows
    DATA: WA_HEADER TYPE ACCHD,
               WA_ITEM TYPE ACC_DOCUMENT-ITEM,
               WA_ITEM_AMOUNTS TYPE ACC_DOCUMENT-ITEM_AMOUNTS.
    WA_HEADER = IM_DOCUMENT-HEADER.
    WA_ITEM = IM_DOCUMENT-ITEM.
    WA_ITEM_AMOUNTS = IM_DOCUMENT-ITEM_AMOUNTS.
    but, in the parameters , I don't see any column to access INVFO-SGTXT value.....
    Thanks a lot in advanced.
    Best Regards,
    Yacoa

    HI  SAPFICO,
    Thanks for your advice,
    I  have follow the link , and create an function model named ZSAMPLE_INTERFACE_00001025(copy from SAMPLE_INTERFACE_00001025),
    and also run  the  setting  in FIBF....
    I write some code in my function , as follows,  but it doesn't work after  I do MIRO
    and it's still blank of the account document's line item.
    p.s. even make a breakpoint at the function , it doesn't stop and stay at the breakpoint when I execute MIRO, so werid....
    FUNCTION ZSAMPLE_INTERFACE_00001025.
    ""區域介面:
    *"  IMPORTING
    *"     VALUE(I_BKDF) LIKE  BKDF STRUCTURE  BKDF OPTIONAL
    *"  TABLES
    *"      T_AUSZ1 STRUCTURE  AUSZ1 OPTIONAL
    *"      T_AUSZ2 STRUCTURE  AUSZ2 OPTIONAL
    *"      T_AUSZ3 STRUCTURE  AUSZ_CLR OPTIONAL
    *"      T_BKP1 STRUCTURE  BKP1
    *"      T_BKPF STRUCTURE  BKPF
    *"      T_BSEC STRUCTURE  BSEC
    *"      T_BSED STRUCTURE  BSED
    *"      T_BSEG STRUCTURE  BSEG
    *"      T_BSET STRUCTURE  BSET
    *"      T_BSEU STRUCTURE  BSEU OPTIONAL
    DATA: C_SGTXT TYPE BSEG-SGTXT.
    IF SY-TCODE = 'MIRO'.
      READ TABLE T_BSEG INDEX 1.
      C_SGTXT = T_BSEG-SGTXT.
      LOOP AT T_BSEG.
        IF T_BSEG-SGTXT IS INITIAL.
          T_BSEG-SGTXT = C_SGTXT.
          MODIFY T_BSEG.
        ENDIF.
      ENDLOOP.
    ENDIF.
    ENDFUNCTION.
    Edited by: Yacoa Chen on Mar 30, 2011 9:54 AM

Maybe you are looking for

  • Error while running Java application using Crystal Reports 2011

    Hello, I would like to ask for your help. Environment details: Java based standalone application in Development environment. Crystal Reports 2011 (no SP applied) Oracle 11g ( 32 bit client installed) Win7 64 bit OS. Workflow: While running the java a

  • How do you save an image from the internet to your firefox os phone

    Save images to your phone

  • FCP Crashes when I Try to Log and Transfer

    I just got a new iMac and installed a new copy of Final Cut Studio on it. I'm trying to transfer footage from my camera (Cannon Vixia HFM300) to Final Cut Pro via Log and Transfer. When I first tried, the thumbnails came up fine. I realized however t

  • Symantec Endpoint Protection on Mavericks Reviews??

    It seems like everyone has a review or has reviewed Symantec Norton Internet Security and Norton Antivirus yet not too much has been tested or written on Symantec Endpoint Protection. Unfortunately we are moving in a direction where we will be instal

  • Dependent SelectionList - problem

    Hi, a I'm trying to achieve functionallity with master-detail selection lists. Category Selection List dislplays main Categories while Subcat SelectionList displays children for currently selected Category. My code looks like: <af:selectOneChoice val