How to insert button(or other control) in row of  Datagrid

Hi Friends,
i create button with in datagrid but the button it can't display of datagrid ..If i any mistake the below coding please any one help to me..
coding Is:
<mx:DataGrid id="grd1"  x="41" y="203" width="159">
<mx:columns>
   <mx:DataGridColumn headerText="Button" >
    <mx:itemRenderer>
     <fx:Component>
      <mx:HBox>
         <s:Button name="OK"  id="btn_ok"/>
      </mx:HBox>
     </fx:Component>
    </mx:itemRenderer>
</mx:DataGridColumn>
<mx:DataGridColumn headerText="Cancel button" >
    <mx:itemRenderer>
     <fx:Component>
      <mx:HBox>
         <s:Button name="Cancel"  id="btn_cancel"/>
      </mx:HBox>
     </fx:Component>
    </mx:itemRenderer>
</mx:DataGridColumn>
<mx:columns>
</mx:DataGrid>
Thanks,
Magesh R.

There are few mistakes in your code. The one with red color are mistakes.
<mx:DataGrid id="grd1"  x="41" y="203" width="159">
<mx:columns>
   <mx:DataGridColumn headerText="Button" >
    <mx:itemRenderer>
     <fx:Component>
      <mx:HBox>
         <s:Button name="OK"  id="btn_ok"/>
      </mx:HBox>
     </fx:Component>
    </mx:itemRenderer>
</mx:DataGridColumn>
<mx:DataGridColumn headerText="Cancel button" >
    <mx:itemRenderer>
     <fx:Component>
      <mx:HBox>
         <s:Button name="Cancel"  id="btn_cancel"/>
      </mx:HBox>
     </fx:Component>
    </mx:itemRenderer>
</mx:DataGridColumn>
<mx:columns>
</mx:DataGrid>
instead of fx type mx. even for s:button use mx:button
you should have a closing tag fro columns </mx:columns>
you sould not use name property for button unless it is your custome property. use label instead of name.
I am sending you sample MXML code as attachment after correcting your code. Just go through it. try to execute.

Similar Messages

  • How to insert data into table control

    hi experts,,
           i have inserted data into data base table through table control .
    now i want to insert data into table control through database table.
      how to delete data from table control for selected row

    Hi
    go through this link.
    http://www.****************/Tutorials/ABAP/TableControl/Demo.htm

  • How to insert values in table control & how to place listbox in table ctrl

    Dear all,
                I have created table control in Module pool program.  My requirement is first
                   1)How to place list box in table control
                   2)Based on listbox selection i have to enter values in table control row..
    With Regards,
    Baskaran

    Hi Baskaran,
    For displaing list box, use FM: VRM_SET_VALUES.
    Code like that:
    TYPE-POOLS: vrm.
    DATA: name TYPE vrm_id,
    list TYPE vrm_values,
    value LIKE LINE OF list.
    PARAMETERS: ps_parm(10) AS LISTBOX VISIBLE LENGTH 15.
    Instead of parameter for module pool , you declare data:
    AT SELECTION-SCREEN OUTPUT.
      name = 'PS_PARM'.
      value-key = '3500000002'.
      value-text = '3500000002'.
      APPEND value TO list.
      value-key = '3500000003'.
      value-text = '3500000003'.
      APPEND value TO list.
      name = 'PS_PARM'.
      value-key = '3500000004'.
      value-text = '3500000004'.
      APPEND value TO list.
      name = 'PS_PARM'.
      value-key = '3000000007'.
      value-text = '3000000007'.
      APPEND value TO list.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id     = name
          values = list.
    make the necesary change for module pool.
    Hope this can solve your problems.
    Regards,
    Tutun

  • How to insert an Active X control in a ABAP form

    Hi All,
        I am learner, want to embed an Active X control in ABAP form, and how can i communicate from Active X control to ABAP form. if you refer screen shots it will be great.
    Thanks & Regards
    Chandra

    check this weblog.
    <a href="https://weblogs.sdn.sap.com/pub/wlg/995">Using Classic ActiveX Controls in the ABAP Control Framework</a>
    In future kindly post ABAP related questions in ABAP forum.
    Raja

  • How to generate event on other control within one event

    Hello
    I am using event structure.
    When program is inside the event case of one control, I want to trigger the �mouse down� event on another control at that time (without operating that another control),
    so that next time, another control�s event is called.
    I have many controls and hence thrir event cases , after which I want to trigger a specific event case corresponding to a button control.
    (I wish to keep the contents of button2 case inside the event only)
    In attached example:
    When user clicks �button 1� or �button 3�, event must be generated so that contents of �button 2� event are executed when program comes there next time
    Thanks
    Attachments:
    Trigger_Other_Event.vi ‏35 KB

    Sorry, I just noticed that you only use LabVIEW 6.1 where signaling properties are missing.
    Here is a simple solution for LabVIEW 6.1:
    - set all buttons to latch.
    - set all button events to "value changed"
    - merge the timeout event with event 2
    In event cases 1 and 3 set timeout to zero, in all other cases to -1 (no timeout).
    See attached example. I placed a 500ms wait.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    Trigger_Other_EventMOD.vi ‏31 KB

  • How to insert column values into database as rows

    Hi,
    I have 8 columns and some not null columns. Based on not null columns I want to insert into table as rows. The 8 columns may contain values or no value. If the first column contains data, then I have to insert into one row. if the second column contains data I have to insert a row and in second column. respectively...So How can I insert column values into rows. Can I write 8 insert statements. (OR) is it possible to insert data from columns using where clause.
    Please help me out....
    Thanks in Advance

    Lines Table:
    line_id, orcl_bank_account_num, product_type, service_type, lease_type,
    funding_type, cpi, billing_frequency_unit_cd , annual_due_date ,
    pricing_start_date, pricing_end_date, install_date, contract_end_date ,
    prdct_replacement_cost_amt, cradle_replacement_amt, supranet_contract,
    issuance_fee, board_inactive_date, header_id, creation_date, last_modified_date,
    created_by_nam, modified_by_nam, activeinactive_flg, prdct_bill_amt_yr1,
    prdct_bill_amt_yr2, prdct_bill_amt_yr3, prdct_bill_amt_yr4, prdct_bill_amt_yr5,
    prdct_bill_amt_yr6, prdct_bill_amt_yr7, prdct_bill_amt_yr8, activation_fee_yr1,
    activation_fee_yr2, activation_fee_yr3, activation_fee_yr4, activation_fee_yr5,
    activation_fee_yr6, activation_fee_yr7, activation_fee_yr8,
    In this table the columns structure is :
    -- PRDCT_BILL_AMT_YR (1 to 8) NUMBER(14,4)
    -- ACTIVATION_FEE_YR (1 to 8) NUMBER(8,2)
    I have one more table:
    PRDCT_INS_AMT               NUMBER(14,4)
    ACTIVATION_FEE_AMT          NUMBER(14,4)
    I want to insert prdct_bill_amt_yr (1 to 8) columns data into PRDCT_INS_AMT column. similarly activation_fee (1 to 8) columns data.
    But the data should be inserted based product_type, service_type, lease_type columns values. (These 3 columns may contain upto 45 combinations).

  • How to insert date column entry for new row from adf bc tester

    Hi,
    JDeveloper version 11.1.1.5.0
    I have a table with a DATE column. I am trying to insert a new row into the table from the ADF BC Tester. While providing value to the DATE column I am hitting the below error:
    (oracle.jbo.domain.DataCreationException) JBO-25009: Cannot create an object of type:oracle.jbo.domain.Date from type:java.lang.String with value:2011/12/06
    Please let me know what should be the format to specify date value while inserting entry using BC Tester.
    Thanks
    Rathnam

    Hi,
    Check
    operation not allowed on java.lang.object

  • Clicking "create insert" button issue

    When we click on the "Create Insert" button, it adds a new row for us to enter but also gives the "you must enter a value" message for the mandatory fields even though we have not clicked "commit" button yet?
    How do we avoid this please?
    Using jdev 11.1.1.3

    My layout looks like this.
    Top it displays the dept attributes in "read only" table format - listing
    Bottom displays the details of the row at the top. Here we can insert/edit data.
    If I set "immidiate=true" in the "Create Insert" button, it copies the current row attribute and populates in the form fields. It needs to be empty though.
    Also my EO/VO is based on an updatable view
    Edited by: 880887 on Aug 25, 2011 6:34 PM

  • How to insert module dynamically

    can any one tell how to insert module dynamically other than "ifconfig <interface> modinsert module_name@pos"

    Hi,
    that's still to little information. However, if you are using ADF BC, take a look at the "Create" and "CreateInsert" operations here:
    http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/toc.htm
    http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/web_tables_forms.htm#CHDEJAGC
    http://andrejusb.blogspot.com/2006/12/creating-new-row-using-createinsert.html
    Regards,
    Patrik

  • How to insert data to the specified row column of the multi column list box

    Hi All
    How do i insert data into the specified column of the multi cplumn list box?
    I have a table that containsall station nos and name.Then another table contains the data the various stations having at  for 24 hrs.That is 12 am to 11 pm.
    And i want to display each stations details as follows using a multi column list box/table
    My stationinfo table
    stnno   stnname......................
    s1           stn1
    s2            stn2
    s3             stn3
    The other table
    stnno      sysdatetime       data
    s1             12am                   1
    s2              12am                   4
    s1               1  am                 2
    So the station s1,s2.... will have data for 24 hrs.
    And i want to display it as follows using a multicolumn listbox
    stnname        12am   1 am ......................................11pm
    s1                   ...................
    s2                 ........................
    What i have in my  mind is to get all station nos
    and in a for loop get the station's data from 12 am to 11 pm
    or
    select every statios data for each hor.But in this case i have to query the database 24 times.So i dont think its a good way.
    Or any other better query available?
    Can anybody suggest me a good idea?
    One more thing...how to insert data into the specified field row or column of a multi column list box?
    Thanks in advance

    hi
    i want to know,,can u say ur need clearly...and i attached two image u see that one
    Indrajit
    | [email protected] | [email protected] .
    Attachments:
    station.JPG ‏35 KB
    station2.JPG ‏79 KB

  • How to insert row in table control and save the data in tables

    Hi,
    I have one table control i am displaying data into table control ,
    my problem is : i want to display data into read mode in table control.
    but when i click on insert button on the same screen i want one blank line should inserted into table control , then i want to insert some data into table control on that row , when i click the save button . the new data inserted into the table control is insert that data into ztable ,
    please give me solution
    main problen is  how can know inserted line in table control and pass that data into ztable.

    Hi,
    Follow the below logic,
    PROCESS BEFORE OUTPUT.
      MODULE STATUS_0001.
      MODULE POPULATE_TABLE_CONTROL. --> Get the data from table store in 
                                                                          ITAB
      LOOP AT GT_CTRL_LP_D516 INTO GS_WA_CTRL_LP_D516
           WITH CONTROL CTRL_LP_D516
           CURSOR CTRL_LP_D516-CURRENT_LINE.
      The following module moves data to control
        MODULE MOVE_TO_CONTROL.--> Move data from ITAB to table control
      ENDLOOP.
    PROCESS AFTER INPUT.
      LOOP AT GT_CTRL_LP_D516.
      ENDLOOP.
      MODULE EXIT AT EXIT-COMMAND.
      MODULE USER_COMMAND_0001.  --> Here you have to take out the values from table control and update database table
    Reward points if helpful.
    Thanks and regards,
    Mallareddy Rayapureddy,
    Munich, Germany.

  • How to send a predefined email after clicking on an Insert button in a Form?

    Hi,
    I created my form ( three fields) where I enter a three values.
    I want an email be sent every time new values are entered and the insert button clicked.
    Do you know a way on how to do it please?
    Thanks
    Khaled.

    Hi,
    I do not know of a way within Portal to automatically send an email, but the database has a utility (utl_smtp) that will allow you to do so very easily. You can use Portal to insert your data and then put a trigger on your table that fires after the data is inserted that calls a procedure that will send the mail.
    Here is an example of a procedure that I have used to send mail (you can get all of the info on utl_smtp in the Oracle docs). I have a Portal form that allows the user to input three values and once they click 'insert' and the data goes into the table, I have a trigger that fires 'after insert' and runs this procedure:
    PROCEDURE send_register_mail (sender in varchar2,
    email varchar2,
    date_of_class date)
    IS
    mailhost VARCHAR2(30) := 'my.mailserver.com';
    mail_conn utl_smtp.connection;
    BEGIN
    mail_conn := utl_smtp.open_connection(mailhost, 25);
    utl_smtp.helo(mail_conn, mailhost);
    utl_smtp.mail(mail_conn, email);
    utl_smtp.rcpt(mail_conn, '[email protected]');
    utl_smtp.open_data(mail_conn);
    utl_smtp.write_data(mail_conn, 'Subject: Platform Training registration request'||utl_tcp.crlf||'Content-Type:text/html;'||utl_tcp.crlf||utl_tcp.crlf);
    utl_smtp.write_data(mail_conn, sender||' would like to attend the POC training scheduled for '|| date_of_class);
    utl_smtp.close_data(mail_conn);
    utl_smtp.quit(mail_conn);
    EXCEPTION
    WHEN OTHERS THEN
    -- Handle the error
    htp.p('There was an error processing your registration. Please contact the site administrator');
    END;
    Hope this helps.
    -melissa

  • In a jsp page one name button that corresponding 5 TextField how to insert

    hi,
    In a jsp page one name button that corresponding 5 TextField how to insert values inthe database that 5 textfield values

    Hi use
    String s=request.getParameter("Text Filed Name");
    do this for all the Text Field..... Then use preparedSatatment for inserting that data inside the database.

  • How to insert a button on the column header of a table in webdynpro java

    Hi
    Can anyone tell me how to insert a button on the column header of a table in webdynpro java?
    regards
    sunit

    Hi sunit,
    Instead of adding button in the column header , in the column
    add a fixed top cell.
        right click on the column
        Insert FixedTopCell
        Right click on the fixedTopCell
        insert Editor.
       select button.
    then button will be only in the top most row.
    Hope it will satisfy ur requirement
    Regards
    Smitha

  • How to Commit before Insert Row when Press Create Insert Button ?

    Hi all;
    I'm Using JDev 11.1.1.2.0
    How to Commit before Insert Row when Press Create Insert Button in ADF11g?
    <af:commandButton actionListener="#{bindings.CreateInsert.execute}"
    text="CreateInsert"
    disabled="#{!bindings.CreateInsert.enabled}"
    id="cb8" />
    best regards;

    You need to do a custom method eather in managed bean or in Application module to do that.
    in managed bean it would be something like:
    public void CommitAndInsert(ActionEvent actionEvent) {
    OperationBinding opCommit = ADFUtils.findOperation("Commit");
    opCommit.execute();
    OperationBinding opCreateInsert = ADFUtils.findOperation("CreateInsert");
    opCreateInsert.execute();
    In page bindings Commit and CreateInsert must exist
    then the button actionListener will be
    <af:commandButton actionListener="#{backing.CommitAndInsert}"

Maybe you are looking for

  • Mini DisplayPort to DVI Adapter - Monitor not recognizing

    I have a new MacBook purchased last month from Apple to replace an older MacBook. I used a Scepter X20 monitor on the previous MacBook with an adapter with no problem. With this new computer, I had to puachase a Mini DisplayPort to DVI Adapter. I plu

  • Unknown error (4251) - ANYONE HAVE AN ANSWER???

    I see plenty of threads on this error message but unfortunately cannot find one that gives an answer to the problem! Everytime I try to burn a disc using itunes I get several songs into the burn and it fails with the following message. . . "the attem

  • Why is Ligthroom CC asking for serial ?

    Wonder why is Ligthroom CC asking for serial number ? I had no issue with Photoshop CC.  I tried different language settings in Desktop Crative Desktop with no success. tried to install and uninstall several times too. thanks Claudio

  • HTML Article with YouTube iframe gets an error

    I am coding the articles in the folio using HTML and CSS. When I upload the article to the folio producer I receive an error that the article is "Missing or unable to load layout." When I try and download the folio using the Adobe Viewer app I receiv

  • Want documents for   Web Dynpro ABAP

    Hi All , Can anyone please send  me the Docs or link for   Web Dynpro ABAP . Thanks in advance Rahul