Create dynamic checkBox

Is it possible to create dynamic checkBox inside the loop? I am planning to generate a set of checkBox and then adding them into panels. Is it possible to do it? I have to generate checkBox dynamically.
Thx.

I tried as below. Is it right?
private void createCheckBoxes(List javaFiles) {
        int count = javaFiles.size();
        System.out.println("The number of .tna files are"+count);
        for(int i=0; i<=count-1; i++){
             System.out.println("Creating checkBoxes");
             //Create checkbox
              JCheckBox  box = new JCheckBox("region"+i);
              box.setName("region"+i);
            dynamicPanel.add(box);
            dynamicPanel.validate();
    }I have few doubts.
Initially I tried as below:
JCheckBox  box = new JCheckBox();
box.setName("region"+i);It created the check boxes dynamically but the name was not printed. Why is that so?
Now my first set of code works. But how do I refer to these dynamic components?
Thx.

Similar Messages

  • How to Create dynamic checkbox in line item

    Dear all,
            In selection-screen i have using select-options  If i select select-option range, the output  will display dynamic check box in line item what range i have select above select options.
    Regards,
    Baskaran.

    Hi,
    After fetching data into table, find the number of internal table entries using Describe statement.
    Then, use Do loop till w_count becomes w_lines( no. of entries ) incrementing the count for every item.

  • Dynamic checkboxes with jsp

    Hi,
    I need to create dynamic checkboxes in my jsp page from the values retrived from the database(oracle).help me with the code.My oracle queries are in my Java bean coding.pls its very very urgent.help me out.

    hi,
    This is my bean coding.can u pls tell me how to store the resultset values in a arraylist.help me out.
    package campaign;
    //Imports
    import java.io.*;
    import javax.sql.DataSource;
    import javax.naming.*;
    import com.ibm.ws.sdo.mediator.jdbc.Create;
    import java.sql.*;
    * @author n48edf
    * TODO To change the template for this generated type comment go to
    * Window - Preferences - Java - Code Style - Code Templates
    public class AgentDao extends java.lang.Object implements UnsubscribeConstants
    protected int indivID = 0;
    protected Connection _conn;
    protected DataSource ds = null;
    protected ResultSet rs = null;
    private String driver = null;
    //need to code
    public void agentLoad(IndvId) throws IOException
    String driver = ORACLE_DRIVER;
    String dataSource= ORACLE_DATA_SOURCE;
    try
    //Establish database connection
    if (_conn == null)
    try
    Context context = new InitialContext();
    // JDBC JNDI lookup
    ds = (DataSource)context.lookup(dataSource);
    context.close();
    // Get a connection
    _conn = ds.getConnection();
    catch (Exception exp)
    throw exp;
    // Create a connection statement
    Statement stmt = _conn.createStatement();
    rs = stmt.executeQuery("SELECT DISTINCT busn_org_nm "+
    "FROM BUSN_ORG bo,AGYLOCINDV_RESP_BUSORG ab "+
    "WHERE ab.busn_org_cd=bo.busn_org_cd AND ab.indvid=p_IndvId");
    String array[]=rs;
    stmt.close();
    cleanUp();
    catch ( SQLException sqe )
    System.out.println ("AgentDao.java - SQL Exception: " + sqe.toString());
    sqe.printStackTrace();
    catch ( Exception e )
    System.out.println ("AgentDao.java - Exception: " + e.toString());
    e.printStackTrace();
    finally
    if(_conn != null|| rs != null)
    cleanUp();
    public void cleanUp()
    try
    //close resultset
    if (rs != null)
    rs.close();
    rs = null;
    //close connection
    if(_conn != null)
    _conn.close();
    _conn = null;
    catch (SQLException sqe)
    System.out.println("SQL Exception occurred in cleanUp() of AgentDAO");
    sqe.printStackTrace();
    catch (Exception e)
    System.out.println("Error occurred in cleanUp() of AgentDAO");
    e.printStackTrace();
    }

  • How to create 2 checkboxs in 2 different JTable cells within 1 buttonGroup?

    Hi,
    I have a JTable with dynamic number of rows and 5 columns. What I mean by dynamic is that new rows can be added and existing rows can be deleted so the number of rows may change. As I said before there are 5 columns. The first 3 columns will always contains Strings. The fourth and fifth column will have checkboxs. I'm creating the checkboxes be specifying that the forth and fifth columns will have boolean in them. As you all know JTable converts boolean values to checkboxes.
    Here is my problem:
    I want to add these 2 checkboxes in column 4 and column 5 to a buttonGroup, s� that if I check the checkbox in column 4 the checkbox in column 5 will be unchecked and vice versa. An importent thing is that every row has its own buttonGroup for its checkboxes.
    To use buttonGroup I have to have 2 checkboxes to add them to the group for example
    buttonGroupForRow1.add(checkBox1);
    buttonGroupForRow2.add(checkBox2);
    But in my case there are no specific checkBoxes to add, I only have boolean values in 2 different cells in the JTable.
    How can I solve the problem?
    Here is a part of the code to help you undersand my problem:
    JTableToggle getPrgMemberPopupTable() {
              if (prgMemberPopupTable == null) {
                   DefaultTableModel model = new MyTableModel(10,5);
                   prgMemberPopupTable = new JTableToggle(model) {
                        public boolean isCellEditable(int rowIndex, int vColIndex) {
                             if (vColIndex == 3 || vColIndex == 4)
                             return true;
                             else return false;
                   prgMemberPopupTable.setRowSelectionAllowed(false);
                   prgMemberPopupTable.setColumnSelectionAllowed(false);
                   prgMemberPopupTable.getColumnModel().getColumn(0).setHeaderValue("Name");
                   prgMemberPopupTable.getColumnModel().getColumn(1).setHeaderValue("Subrack");
                   prgMemberPopupTable.getColumnModel().getColumn(2).setHeaderValue("Slot");
                   prgMemberPopupTable.getColumnModel().getColumn(3).setHeaderValue("Active");
                   prgMemberPopupTable.getColumnModel().getColumn(4).setHeaderValue("Passive");
                   prgMemberPopupTable.setName("prgMemberPopupTable");
                   prgMemberPopupTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
                   prgMemberPopupTable.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);
              return prgMemberPopupTable;
        class JTableToggle extends javax.swing.JTable {
            public JTableToggle(DefaultTableModel aDefaultTableModel){
                super(aDefaultTableModel);
            public void changeSelection(int rowIndex, int columnIndex, boolean toggle, boolean extend) {
                // toggle is true in the case where the control key is pressed, i will invert that case.
                toggle = !toggle;
                super.changeSelection(rowIndex,columnIndex,toggle,extend);
         class MyTableModel extends DefaultTableModel{
              public MyTableModel(int a, int b){
                   super(a, b);
              public Class getColumnClass(int index){
                   if (index == 3 || index == 4)
                        return Boolean.class;
                   return super.getColumnClass(index);
         }Grateful for all help
    //Roomi

    Thanks for your help.
    2 requirements has to be fulfiled here:
    Req.1. A member is selected. The memeber is selected either by checking Active or Passive checkbox
    Req.2. Every selected member is either Active or Passive.
    My solution is build on the ide that when you check the active checkbox, then that member is selected and its is an active member. If the passive checkbox is selected then it is a passive member.
    The thing is, not every member in the JTable is selected, only those who are relative to that specfic case are selected.
    Let's say that I have 10 members in my table (which means 10 rows). Then I can select for example the second and fifth members as an active members and the seventh member as a passive one. That means only those members are selected (Req.1.). And (2 and 5) are actives and (7) is passive (Req.2)
    But lets say that I change my mind, and decide that the seventh member should be active and not passive. Then when I modify the selection and check the active checkBox (on column 3) the passive checkBox (on column 4) should become unchecked.
    Camickr, with your suggestion I can not distinguish between if the member is passive or it is not selected at all.
    Even if I use JRadioButtons instead of JCheckBoxes the problems still the same, 2 different JRadioButtons (or JCheckBoxs), both of them are in seperate columns (seperate cells), how can I add them to one ButtonGroup? Or let me refrase the last sentence (question), How can build up the solution so that when one of them is selected the other one is unselected. If I don't use ButtonGroup and have to build my own buttonGroup then I have to start thinking about mouse listner, and where the mouse click to plase, ...etc which is a lot of work for a simble thing to do.
    Unfortuntly I cannot change the layout either, I'm stricted to this layout by the company.
    //Roomi

  • Create Dynamic UI element

    Hi Experts,
            i want to create fileupload,dropdown,inputfield,checkbox,,...etc , my requirement is ,when i click one button that time only i want to create  dynamically one ui element,then when i click the second button that time second ui element is created
    Please tell me how can i do that,its urgent
    Regards,
    Sundaresan

    hi,
       Create the Ui elements Dybamically in the Domodify Method of the view as
    IWDGroup group = (IWDGroup) View.getElement("ID of the Group") ;
    IWDInputField input = view.createElement(IWDInputField.class);
           input.setLength(20);
           input.bindValue("DynamicNode.input");
    group.addElement(input);
    In the Similar way u can create all the Ui elements .
      create a Context Attributr of type WDVisibilty.
    Bind the Visible Property of ythe Ui element to this Context Attribute.
    finally in the doinit ,method set the First ui element to WDVisibilty.Visible.
    and set the visible property of others ui elements to WDVisibilty.none.
    finally in the Action of first ui element set the second Second Ui element to WdVisibility.Visisble. and so on.
    Thanks and regards,
    Fistae

  • How to read whether dynamic checkboxes are checked or not

    Hi experts ,
              I have created number of checkboxes dynamically. I want to read whether they are checked or not. If they are checked I will do some operations and if not checked some different operations are to be done. Please tell me how to read that checkbox is checked or not.
    Please help.
    Thanks & Regards,
    Pratibha

    Hi pratibhas ,
    While creating the checkbox dynamically, you can bind that checkbox with some context attribute of type WDY_BOOLEAN.
    Now when you need to see whether a perticular checkbox is selected or not, check it's attributes value whether it is 'X' or ' ' .
    Regards,
    Vikrant

  • Problems creating dynamic selection screen

    Hi all,
    i'm trying to dynamically generate a selection screen and show it as subscreen using the two function modules FREE_SELECTIONS_INIT and FREE_SELECTIONS_DIALOG. I call the function modules in the PBO of the therefor defined subscreen. The FREE_SELECTIONS_DIALOG fm has the two import parameter "as_subscreen" and "as_window". If i use the "as_window" parameter the selection screen comes up as popup. If i use the "as_subscreen" parameter, i can't see anything in my defined subscreen.
    Any suggestions ?
    Thanks in Advance
    Dirk

    Hi,
    The above requirement is not possible without using logical database.
    The reason is that the compiler identifies the below syntax only inside a LDB program .
    SELECTION-SCREEN DYNAMIC SELECTIONS
                     FOR {NODE|TABLE} node [ID id].
    The above syntax creates a subscreen container on the standard selection screen of the program during generation
    and we are able to view the dynamic selections icon on the selection screen.
    Hence it is not possible to use the FM 'FREE_SELECTIONS_DIALOG' as a subscreen without using a
    logical database of the relevant table.
    However if you dont want to create a new LDB for each table, there is a trick which needs to be performed
    once in your SAP system and all custom programs can use this FM to create a dynamic selection screen
    as a subscreen of the standard selection screen.
    The prerequisite steps are as follows:
    1: Create a dummy  / test database table in SE11 with a single field i.e. for example mandt , matnr
    2: Create a new logical database program for this table in SE36. Save and activate.
    This will create dynamic selections for the fields of the table created in step 1.
    Steps to be followed in the required custom ABAP program to create the dynamic selection screen as a subscreen.
    A: Include the LDB program created in step 2, in the attributes of the custom ABAP program.
    Now when you execute the program, you can see the dynamic selection icon for the dummy table created in step 1.
    B: In your custom program we need to suppress the icon for 'Dynamic Selections' from the standard selection screen.
       We need to perform this action, because the 'Dynamic Selections' icon always triggers a call to the
       dynamic selection screen of the included LDB progam. ( In our case a dummy table created in step 1 ).
       Whereas we want to trigger a call of the dynamic selection screen of our desired table.
       Logic is as follows:
       In 'AT SELECTION-SCREEN OUTPUT' event call the FM RS_SET_SELSCREEN_STATUS to exclude the fcode 'DYNS'.
    C: Add a pushbutton / checkbox on your selection screen to trigger a call to the FM 'FREE_SELECTIONS_INIT' &
       'FREE_SELECTIONS_DIALOG' in the 'AT SELECTION-SCREEN' event.
    D: When the user clicks the pushbutton / checkbox for dynamic selections call the above 2 FM for the desired table
        with the AS_SUBSCREEN flag of FREE_SELECTIONS_DIALOG = 'X'
    Result: Your dynamic selections screen will be created as a subscreen of the standard selection screen and not as a pop-up.
    Advantage: With the creation of the single custom table & LDB, you are now able to create dynamic selections as subscreen
    in any program in the system. All we need to do is follow the steps A, B & C in each program.
    Note: Your other restrictions with dynamic selection screen ie. submit in background , save as variant still remain and
    you need to handle them accordingly.
    let me know if you need sample code.
    Regards,
    Bhawit Kumar

  • Dynamically checkbox creation

    Hello,
    i have to create dynamically check box based upon number of fields from database.
    i found some some solution in sdn which is not workinf for me.
    could anyone help me in this.
    thanks

    hELLO AMAI,
    AS YOU SUGESTED I PUT THIS CODE
          DATA: IV_PATH type string.
         DATA LO_ND_CHECK_BOX_NODE TYPE REF TO IF_WD_CONTEXT_NODE.
         DATA LO_EL_CHECK_BOX_NODE TYPE REF TO IF_WD_CONTEXT_ELEMENT.
         DATA LS_CHECK_BOX_NODE TYPE WD_THIS->ELEMENT_CHECK_BOX_NODE.
       navigate from <CONTEXT> to <CHECK_BOX_NODE> via lead selection
         LO_ND_CHECK_BOX_NODE = WD_CONTEXT->GET_CHILD_NODE( NAME = WD_THIS->WDCTX_CHECK_BOX_NODE ).
       @TODO handle non existant child
       IF lo_nd_check_box_node IS INITIAL.
       ENDIF.
       get element via lead selection
         LO_EL_CHECK_BOX_NODE = LO_ND_CHECK_BOX_NODE->GET_ELEMENT( ).
       alternative access  via index
       lo_el_check_box_node = lo_nd_check_box_node->get_element( index = 1 ).
       @TODO handle not set lead selection
         IF LO_EL_CHECK_BOX_NODE IS INITIAL.
         ENDIF.
       get all declared attributes
         LO_EL_CHECK_BOX_NODE->GET_STATIC_ATTRIBUTES(
           IMPORTING
             STATIC_ATTRIBUTES = LS_CHECK_BOX_NODE ).
    IF  LO_EL_CHECK_BOX_NODE is NOT INITIAL.
    LO_EL_CHECK_BOX_NODE->get_path( EXPORTING WITHOUTCONTROLLER = 'X'
    RECEIVING path = Iv_path ).
    ENDIF.
    CONCATENATE Iv_path '.CHECK_BOX_VALUE' INTO Iv_path.
         RS END
         *      LR_CONTAINER ?= VIEW->GET_ELEMENT( 'ROOTUIELEMENTCONTAINER' ).
          LR_CONTAINER ?= VIEW->GET_ELEMENT( 'TP2' ).
          LR_CHECKBOX = CL_WD_CHECKBOX=>NEW_CHECKBOX(
                  TEXT = IV_TEXT  " 'WD_Processor'
                  BIND_CHECKED =   IV_PATH "'CHECK_BOX_NODE.CHECK_BOX_VALUE' "'CHECK_OPTION.BASIC'
                  VIEW = VIEW ).
         cl_wd_matrix_data=>new_matrix_data( EXPORTING
         element = lr_checkbox
         RECEIVING
         control = lo_matrix_data ).
          CL_WD_MATRIX_HEAD_DATA=>NEW_MATRIX_HEAD_DATA( EXPORTING
          ELEMENT = LR_CHECKBOX
          RECEIVING
          CONTROL = LO_MATRIX_DATA1 ).
         lr_checkbox->set_layout_data( lo_matrix_data ).
          LR_CHECKBOX->SET_LAYOUT_DATA( LO_MATRIX_DATA1 ).
          LR_CONTAINER->ADD_CHILD( LR_CHECKBOX ).
    AND
    BEFORE CONCATENATE
    IV_PATH = 1.CHECK_BOX_NODE.1
    AFTER CONCATENATE
    1.CHECK_BOX_NODE.1.CHECK_BOX_VALUE
    IT IS COMING FOR ALL CHECK BOX
    AND THE VALUE IS COMING, AND AL THE CHECKBOX GETTING SELECTED AGAIN

  • Help with dynamic checkbox from database results

    Hi,
    I am creating some dynamic checkboxes from the results of a database read to sqlite.  I am able to get the data and the correct number of checkboxes is being created but I'm having a problem populating the labels for the checkboxes.  Here is the section of code that gets the results from the database and creates the checkboxes.
                    var result:Array = stmt.getResult().data;
                    for each( var obj:Object in result )
                        var cb:CheckBox = new CheckBox();
                        cb.label = obj.toString();
                        cb.setStyle("color", 0x00593B);
                        cb.setStyle("symbolColor", 0x000000);
                        container.contentGroup.addElement(cb);                   
    Neil

    This was answered on another forum for me.
    The line cb.label = obj.toString();
    needed to be changed to the data.
    cb.label=obj.myDatabaseFieldName;
    myDatabaseFieldName would be whatever column you are pulling the data in from and should be the actual name in the table.
    Neil

  • How to Controll Dynamic Checkbox Groups

    i want to create checkbox groups dynamically. Each group will have at least one child checkbox. if i select parent check box all child checkboxes should be checked.if i uncheck parent checkbox all child checkboxes should be unchecked.
    that check box group name also coming dynamically. i am trying to pass group name dynamically but it's not recognizing that name in javascript.
    pls help me on this how to controll dynamic checkbox groups.

    recognizing that name in javascript.Are you dynamically creating checkboxes with JSP?

  • How to mention numbers in array while creating dynamic sql

    Hi,
    I am creating a dynamic sql and in that I am selecting some rows from the table and storing it into the array.
    I am firing this sql statement within trigger.
    But i got the error:
    ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    I took the same sql statement (the one which was created dynamically) in the procedure and tried to run it but it gave me the same error.
    =========================================================
    Begin
    type NewValueArray is table of varchar2(4000);
    nVal_Array NewValueArray;
    Begin
    Select
    DISCOVERYHOSTNAME,
    DISCOVERYMACPRIMARYPHYSICAL,
    DISCOVERYSERIALNUMBER
    into
    nVal_Array(1),
    nVal_Array(2),
    nVal_Array(3)
    from ALT_42_Consolidated
    where rowid = 'AAEWNEABXAAAAkxAAA';
    EXCEPTION
    WHEN others THEN
    Raise;
    End;
    =========================================================
    I tried using to_number but still the same error.
    Can some body please inform me where I am goofing.
    Thanks!

    I got a different error, but you need to initialise your nval_array and make sure it can hold three values. The following should work:
    declare
      type NewValueArray is table of varchar2(4000);
      nVal_Array NewValueArray := NewValueArray();
    Begin
      nval_array.extend(3);
      Select col1, col2, col3
      into nVal_Array(1), nVal_Array(2), nVal_Array(3)
      from tab1
      where rowid = 'AAAGJZAAGAAAAAWAAV';
    EXCEPTION
      WHEN others THEN
        Raise;
    End;
    /

  • How to create dynamic Invoice report based on Tax calculations

    Hi Ppl,
    I have an invoice report requirement. There are multiple line items in invoice and each line item will have a tax % and discount associated with it. Discount has to be applied at line item level. Tax will be applicable on resultant amount which respect to tax share on total amount. Below is example
    Part# Tax     Qty     UnitPrice Amount     Discount     Net Value
    1     12.5%     40     10          400          100          300
    2     12.5%     50     20          1000          200          800
    3     4%     10     30          300          50          250
                             SubTotal                    1350
                             VAT 12.5% on 1100(300+800)     137.50
                             VAT 4% on 250               10
                             Total Amount               1497.5
    I have created a static rtf which does all calculations correctly. I have hardcoded 12.5 and 4 % tax values for calculations. But issue is that taxes are changeable in future so I want to create dynamic template which takes care for tax calculations. I thought of to create an array to store distinct tax values from XML data and then to perform calculation but don’t know how to do that.
    Can some body help me out as this is very critical and urgent?
    Note: Tax calculation can be done at line item level itself but there are some scenarios where additional discounts are there so tax calculation can not be done at line item level.
    Below is the sample XML data
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ListOfBipActionTest>
    - <Action>
    <AccountId>1</AccountId>
    <PartName>17211KCC900LS</PartName>
    <TAX>12.5</TAX>
    <QTY>40</QTY>
    <UNITPRICE>47.06</UNITPRICE>
    <DIS>15.00</DIS>
    <TaxType>CST</TaxType>
    </Action>
    - <Action>
    <AccountId>2</AccountId>
    <PartName>17213KCC900LS</PartName>
    <TAX>12.5</TAX>
    <QTY>50</QTY>
    <UNITPRICE>19.53</UNITPRICE>
    <DIS>8.00</DIS>
    <TaxType>CST</TaxType>
    </Action>
    - <Action>
    <AccountId>3</AccountId>
    <PartName>28302KAG900S</PartName>
    <TAX>12.5</TAX>
    <QTY>50</QTY>
    <UNITPRICE>59.49</UNITPRICE>
    <DIS>15.00</DIS>
    <TaxType>CST</TaxType>
    </Action>
    - <Action>
    <AccountId>4</AccountId>
    <PartName>2830AKAG900S</PartName>
    <TAX>12.5</TAX>
    <QTY>10</QTY>
    <UNITPRICE>168.7</UNITPRICE>
    <DIS>15.00</DIS>
    <TaxType>CST</TaxType>
    </Action>
    - <Action>
    <AccountId>4</AccountId>
    <PartName>91001GF6000S</PartName>
    <TAX>4.00</TAX>
    <QTY>60</QTY>
    <UNITPRICE>115.34</UNITPRICE>
    <DIS>17.00</DIS>
    <TaxType>CST</TaxType>
    </Action>
    </ListOfBipActionTest>
    Thanks
    Ashish

    Dear Efstratios Kara,
    I installed SAP Integration Kit 3.1. Yes I installed the integration kit after installing CR.
    I have uninstalled the earlier version and i have reinstalled CR with (12.3.0.601) version.
    But still i cant view the SAP connectivity. can u tell me from which version they have included this connectivity option in CR.
    If CR going to support SAP Table connectivity on specific version, what is that version.
    Waiting for your reply.
    Regards,
    Suman

  • How to create Dynamic internal table with columns also created dynamically.

    Hi All,
    Any info on how to create a dynamic internal table along with columns(fields) also to be created dynamically.
    My requirement is ..On the selection screen I enter the number of fields to be in the internal table which gets created dynamically.
    I had gone thru some posts on dynamic table creation,but could'nt find any on the dynamic field creation.
    Any suggestions pls?
    Thanks
    Nara

    I don't understand ...
    something like that ?
    *   Form P_MODIFY_HEADER.                                              *
    form p_modify_header.
      data : is_fieldcatalog type lvc_s_fcat ,
             v_count(2)      type n ,
             v_date          type d ,
             v_buff(30).
    * Update the fieldcatalog.
      loop at it_fieldcatalog into is_fieldcatalog.
        check is_fieldcatalog-fieldname+0(3) eq 'ABS' or
              is_fieldcatalog-fieldname+0(3) eq 'VAL' .
        move : is_fieldcatalog-fieldname+3(2) to v_count ,
               p_perb2+5(2)                   to v_date+4(2) ,
               p_perb2+0(4)                   to v_date+0(4) ,
               '01'                           to v_date+6(2) .
        v_count = v_count - 1.
        call function 'RE_ADD_MONTH_TO_DATE'
            exporting
              months        = v_count
              olddate       = v_date
            importing
              newdate       = v_date.
        if is_fieldcatalog-fieldname+0(3) eq 'ABS'.
          concatenate 'Quantité 0'
                      v_date+4(2)
                      v_date+0(4)
                      into v_buff.
        else.
          concatenate 'Montant 0'
                      v_date+4(2)
                      v_date+0(4)
                      into v_buff.
        endif.
        move : v_buff to is_fieldcatalog-scrtext_s ,
               v_buff to is_fieldcatalog-scrtext_m ,
               v_buff to is_fieldcatalog-scrtext_l ,
               v_buff to is_fieldcatalog-reptext .
        modify it_fieldcatalog from is_fieldcatalog.
      endloop.
    * Modify the fieldcatalog.
      call method obj_grid->set_frontend_fieldcatalog
           exporting it_fieldcatalog = it_fieldcatalog.
    * Refresh the display of the grid.
      call method obj_grid->refresh_table_display.
    endform.                     " P_MODIFY_HEADER

  • How to create dynamic elements in action of a view?

    hi all,
    I created 2 buttons dynamically in WdDoModifyView(). I created  action1, and parameter for that action i.e, id of type string.
    when i click on button1, some ui elements must be displayed.....
    can anyone tell me how to dynamically add UI elements in onAction() of view.....
    i wrote the following code to create & map dynamically in WdDoModifyView()........
    if(firstTime)
        IWDButton b1=(IWDButton)view.createElement(IWDButton.class,"button1");
        b1.setText("Button1");
        IWDButton b2=(IWDButton)view.createElement(IWDButton.class,"button2");
        b2.setText("Button2");
        IWDTransparentContainer tc=(IWDTransparentContainer)view.getElement("RootUIElementContainer");
        tc.addChild(b1);
        tc.addChild(b2);
         IWDButton butt1 = (IWDButton)view.getElement("button1");
         IWDParameterMapping pm1a = butt1.mappingOfOnAction();
         pm1a.addParameter("id1","link1a");
         IWDButton butt2 = (IWDButton)view.getElement("button2");
         IWDParameterMapping pm1b = butt2.mappingOfOnAction();
         pm1b.addParameter("id1","link1b");
    after writing this..... in onAction().........of view... i wrote like this...
    if (id1.equals("link1a"))
    else{
    in the if & else condition, i have to create UI elements dynamically.
    when i am trying to create Ui elements dynamically, but i am unable to create dynamically here.
    pls give me suggestion how to proceed this
    regards,
    vila

    Hi Vila,
    Are you trying to create UI elements dynamically in the action? If yes then you won't be able to do so because you can only create UI elements dynamically in WDDoModifyView().
    Always WDDoModifyView() would be called after your action. So, you can handle it as you want in your WDDoModifyView() itself.
    But if you want that those elements should be created everytime when you fire an event then don't write it within if(firstTime) clause as this would be true only when WDDoModifyView() is called for the first time when the page intially loads.
    Regards,
    Murtuza

  • How to create Dynamic Window in Smartforms

    Hi all,
    Could you please help me out on how to create Dynamic Window in smartforms excluding Main Window.
    Thanks in Advance.
    Vinay.

    hi,
    Hi,
    1.If you are creating the Different windows for the Countries,then In conditions tab of window specify the Condition i.e.
    company -code = '2201'.
    2.Then that window can trigger ofr that condition.
    3.Other wise, if you are using the different layouts ,then write the condition in Print program and call that form .
    reward me if helpful.

Maybe you are looking for

  • Can't import ical dates into iphoto calendar

    Hi all, I'm trying to make an iphoto calendar for a friend and I'm running into a frustrating problelm. My friend emailed me an ical birthday calendar which he would like to have included in the iphoto calendar. I imported the ical calendar into my o

  • Save renames filename to 8+3 characters on NetApp server

    We are using Illustrator version 12.0.0 (WINXP SP2), and it has been working fine until we switched our server to a NetApp Filer server. When opening an existing AI file (or create a new one), and press "Save" the saved files is shortend to 8+2 chara

  • Creating audio for another Captivate project

    I am using Captivate v5.5 I have been asked to create the audio for a project that is being created by another person in our organisation. They will send me a word document with the script  - slide by slide. As I do not have any other means of record

  • Adobe purchase online

    On feb 10 I paid $20 for waht I thought was a program to allow me to convert PDF files to word. Did I buy the wrong program OR does Adobe expect me to pay another $23 ??  Whitrav

  • Install 11gR2 client on Windows 7 in the Program Files (x86) folder

    Hi, We have a requirement to install the 11g R2 client 32bit on Windows 7 into the Program Files (x86) folder. We already have the 10g client installed into this location, and wish to keep the Oracle software in the same ORACLE_BASE location. The ins