Problem involving dynamic table columns in ECM

Hi,
In my current project I have got a requirement whose solution I am not able to figure out.
My requirement is this:
I will have a table containig budget owners name(since its compensation management in HR).There will be a table popin inside this table on the click of the personal number of the budget owner. Now the table popin will have another table with all employees name under that particular budget owner.
The problem is that the table inside the popin will not be having fixed columns.
Actually the columns will be coming from a function module(HRWPC_RFC_OADP_EVAL_DATAVIEW ) in the form of an internal table .
My requirement is this how can this be handled?
How to create the table with dynamic columns?Mind it,the data inside the table also have to binded and some of the columns will also be editable.
Experts please help!
Thanks and Regards,
Saikat.

Hello Saikat,
I didnt understand why you want to create the table at design and change it runtime. you as well create the table at runtime. Because the table columns defined in the design time will not match number of table columns required at runtime. this depends on the outpur of your function module.
Anyway here is the solution for your requirement
1. create a attribute in the view controller (say MR_VIEW) of TYPE REF TO if_wd_view.
2. in the doModifyview method write the following code
if first_time = abap_true.
   wd_this->mr_view = view.
endif.
3. after calling you function module write the following code to change the biniding of the table and table columns
  data lo_table type ref to cl_wd_table.
  lo_table ?= wd_this->mr_view->get_element( id = 'TABLE'  ). "Pass the ID of the table that is created at design time
  data lo_nd_table2 type ref to if_wd_context_node.
  data lo_ndi_table2 type ref to if_wd_context_node_info.
  data lv_node_path type string.
  data lv_attribute_path type string.
  data lt_attributes type wdr_context_attr_info_map.
  data ls_attribute like line of lt_attributes.
  data lo_column type ref to cl_wd_table_column.
  data lo_text_view type ref to cl_wd_text_view.
  data lo_header type ref to cl_wd_caption.
  lo_nd_table2 = wd_context->get_child_node( 'TABLE2' ). "dynamically create context node name
  lv_node_path = lo_nd_table2->get_meta_path( abap_true ). "Get the path of this node
  lo_table->bind_data_source( path =  lv_node_path ). "change the ata
  lo_table->remove_all_columns( ). "remove all the design time columns
  lo_table->remove_all_grouped_columns( ).
  lo_ndi_table2 = lo_nd_table2->get_node_info( ).
  lt_attributes = lo_ndi_table2->get_attributes( ). "get the attributes in the context node
"if you already have the list of attributes then you can just loop through them
  loop at lt_attributes into ls_attribute.
    concatenate lv_node_path '.' ls_attribute-name into lv_attribute_path.
    "Creating Table column
    lo_column = cl_wd_table_column=>new_table_column( view = wd_this->mr_view   ).
    "Creating table cell editor
    lo_text_view = cl_wd_text_view=>new_text_view(
          bind_text = lv_attribute_path "Path of the context attribute
          view      = wd_this->mr_view ).
    "creating header for the table column
    lo_header = cl_wd_caption=>new_caption(
        text  = ls_attribute-name
        view  = wd_this->mr_view  ).
    "Setting cell editor and header for the column
    lo_column->set_table_cell_editor( lo_text_view ).
    lo_column->set_header( lo_header ).
    "Adding the column to the table
    lo_table->add_column( the_column = lo_column  ).
  endloop.
BR, Saravanan

Similar Messages

  • Dynamic Table Columns in UIX

    I have searched for a bit in the forums and documentation for something like this, and have found nothing.
    I would like to be able to have Dynamic table columns, with dynamic content in the table.
    I would like the ability to add non-dynamic rows to the table, placed where I like them.
    Does anyone know how to do this?

    I am creating a report that counts a number of events per hour, each day.
    the layout will look like this:
    0 1 2 3 4 5 6 7 total
    day1 3 3 4 5 4 3 2 3 230
    day2 4 3 2 3 4 2 3 4 235
    day3 3 2 2 2 2 3 2 1 310
    total 9 9 9 9 9 9 9 9 1393
    The user must be able to select the range of days they can see (might be a week, might be a month, might be a year).
    Also, the user can select the range of hours that they want visibile.
    becaus they can select the number of hours, I need to be able to dynamically create the columns to the table, according to the user's selection.
    The report is a very processor consuming report, as there are thousands of events per hour, so I want to trim the atcual data crunching to a minimum.
    can anyone help with dynamic tables?

  • Dynamic table column editing

    Hi,
    I made a VO with quite complex query (nested subqueries linked with inner join) and when I dragged it from Data Control to the page I didn't get the familiar context menu with implementation options I used to get it earlier.
    Instead of, I got an implemented table with following structure:
    - af:table - t3
    - af:forEach
    - af:column - #{...}
    - af:outputText - #{...}
    Did I get a dynamic table?
    My problem is that I cannot get the list of attributes from VO query and then to edit table columns.
    They are shown in table at runtime but with default properties. I can set up af:column options generally but I need to set up all of the attributes individually.
    Is this a query-level problem or there is another way doing this?
    Regards,
    Aleksandar Čkrebo

    Hi,
    I made a VO with quite complex query (nested subqueries linked with inner join) and when I dragged it from Data Control to the page I didn't get the familiar context menu with implementation options I used to get it earlier.
    Instead of, I got an implemented table with following structure:
    - af:table - t3
    - af:forEach
    - af:column - #{...}
    - af:outputText - #{...}
    Did I get a dynamic table?
    My problem is that I cannot get the list of attributes from VO query and then to edit table columns.
    They are shown in table at runtime but with default properties. I can set up af:column options generally but I need to set up all of the attributes individually.
    Is this a query-level problem or there is another way doing this?
    Regards,
    Aleksandar Čkrebo

  • Dynamic table columns in web dynpro abap

    Hi,
    In my current project I have got a requirement whose solution I am not able to figure out.
    My requirement is this:
    I will have a table containig budget owners name(since its compensation management in HR).There will be a table popin inside this table on the click of the personal number of the budget owner. Now the table popin will have another table with all employees name under that particular budget owner.
    The problem is that the table inside the popin will not be having fixed columns.Actually the columns will be coming from a standard java web dynpro application (say in the form of an internal table).
    My requirement is this how can this be handled?Can we include all the possible columns in the node(which i bind to the child table) and make them visible/invisible during runtime? or create a dynamic node and assign it to the table(but in this case a node needs to be bound to the table during design time,what to bind?)  ?
    Can u please help along with code snippets.
    Thanks and Regards,
    Saikat.

    Thnx for the input.
    I am abke to make the table columns inside the popin visible/invisible.
    I have a tabstrip.Indise one of the tabs is my main table and inside one of the columns is the popin.Inside that a transparent container and finally the table inside that.
    This is the code that worked for me.
    METHOD wddomodifyview .
      DATA lr_root_container TYPE REF TO cl_wd_uielement_container.
      DATA lr_table_popin TYPE REF TO cl_wd_table_popin.
      DATA lr_transparent_container TYPE REF TO cl_wd_transparent_container.
      DATA lr_table TYPE REF TO cl_wd_table.
      DATA lr_table_column TYPE REF TO cl_wd_table_column.
      DATA lr_table_in_table_popin TYPE REF TO cl_wd_table.
      DATA lr_node_header_node TYPE REF TO if_wd_context_node.
      DATA lr_node_item_node TYPE REF TO if_wd_context_node.
      DATA lr_tabstrip TYPE REF TO cl_wd_tabstrip.
      DATA lr_tab TYPE REF TO cl_wd_tab.
      data lr_tc type ref to CL_WD_TRANSPARENT_CONTAINER.
      data lr_table2 type ref to cl_wd_table.
      DATA lr_table2_column TYPE REF TO cl_wd_table_column.
      IF first_time = abap_false.
        lr_root_container ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
        lr_tabstrip ?= lr_root_container->get_child( id = 'TABSTRIP1' ).        "GETTING THE TABSTRIP
        lr_tab      ?= lr_tabstrip->get_tab( id = 'TAB1' ).        "GETTING THE TAB INSIDE TABSTRIP
        lr_table    ?= lr_tab->GET_CONTENT( ).      "GETTING THE CONTENT(TABLE IN THIS CASE) INSIDE TABSTRIP
        lr_table_column ?= lr_table->get_grouped_column( id = 'TABLE_MAIN_PERNR' ).   "GETTING THE COLUMN INSIDE THE TABLE
        "Table popin
        lr_table_popin ?=  lr_table_column->GET_POPIN( ).   "GETTING THE POPIN INSIDE THE TABLE
        lr_tc  ?= lr_table_popin->GET_CONTENT( ).   "GETTING THE CONTENT(TRANSPARENT CONTAINER IN THIS CASE)INSIDE THE TABLE
        lr_table2 ?= lr_tc->get_child( id = 'TABLE_EMPLOYEE' ).        "GETTING THE EMPLOYEE TABLE INSIDE THE TRANSPARENT CONTAINER
        lr_table2_column ?= lr_table2->get_grouped_column( id = 'TABLE_EMPLOYEE_PERNR' ).   "GETTING THE COLUMN INSIDE THE TABLE
        lr_table2_column->SET_VISIBLE( '02' ).  "SETTING VISIBILITY FOR THE COLUMN
      ENDIF.
    ENDMETHOD.
    But I'm still considering the dynamic node concept.Lets see if this works out or not.If not then I'll have to go for the dynamic node thing.
    Thanks,
    Saikat

  • Problem with Dynamic Table Name

    Hello all,
    I am having trouble using a dynamic table name. I have the following code.....
    declare l_cur sys_refcursor;
    l_ID int;
    l_tableName varchar(30);
    BEGIN
    open l_cur for
    select hkc.ColumnID, mapping from &HKAPPDB_Schema_Name..doctablemapping ddm
    inner join &HKDB_Schema_Name..HKColumns hkc on hkc.doctablemappingid = ddm.id
    where ddm.id > 0;
    LOOP
         FETCH l_cur into l_ID, l_tableName;
         EXIT WHEN l_cur%notfound;
         -- update missing VerbID in DocumentDocMapping table
         UPDATE &HKAPPDB_Schema_Name..IndexedDocument
         SET VerbID = (SELECT t.VerbID
                             FROM (SELECT DocRef, VerbID, DateUpdated
                                  FROM &HKAPPDB_Schema_Name..l_tableName dd        - this is where the dynamic table name is used
                                  WHERE dd.VerbID is not NULL))
         WHERE HKColumnID = l_ID AND VerbID is NULL;
    END loop;
    end;
    /When I try to execute this i get an error
    ORA-00942: table or view does not exist
    What am I doing wrong?
    Regards,
    Toby

    redeye wrote:
    I only started about 6 weeks ago, with no tutorials and learning it on the fly; Same here.. only my introduction was to a 12 node Oracle OPS cluster all those years ago.. and required a whole new mind set after using SQL-Server extensively. But it was fun. Still is. :-)
    but thats what you get when a company throws you in at the deep end with a ridiculous time constraint to migrate a whole MSSQL DB.Migrating SQL-Server to Oracle is not a simple thing. A lot of best practices in SQL-Server are absolutely worse practices in Oracle - they are that different. Simple example is lock escalation - an issue in SQL-Server. In Oracle, the concept of a lock being escalated into a page lock simply does not exist.
    In terms of getting the migration done as quickly and painlessly as possible I try to reuse all the logic as it appears in the MSSQL code - in this case it was using dynamic table names. I do not doubt that i am probably shooting myself in the foot in the long run.....As long as you do not splatter too much blood on us here.. not a problem :D
    Seriously though - just keep in mind that what works in SQL-Server may not work as well (or even at all) in Oracle. So do not hesitate to refactor (from design to code to SQL) mercilessly when you think it is warranted.

  • Dynamic table columns...

    hi there,
    i have a table on my webdynpro with several columns displaying values in EUR with 2 decimals.
    now my customer wants to be able to switch between EUR and Thousand-EUR. When Thousand-EUR is displayed ther should be no decimals visible anymore. How can i achieve that? in my context-node the values are defined with 2 decimals. is it possible to change types of context-attributes dynamically? or is there another way to achieve that.
    david

    Hi,
    Suppose ur text view element ID contained in a particular table column is 'TXT_VIEW_AMOUNT'.
    then you get its reference like this in domodifvview
    data: lo_text_view type ref to cl_Wd_text_view.
    lo_text_view ?= view->get_element( 'TXT_VIEW_AMOUNT' ).
    then call the corresponding bind_text method
    lo_text_view->bind_text( path = 'DATA.AMOUNT ). "here DATA.PATH is attribute path
    Hope this helps
    Regards
    Manas Dua

  • Dynamic table column creation

    Hi All,
    I am trying to create a table where the number of columns is equal to the number of entries in an output table in my context. How do I go about creating columns dynamically dependant on the number of entries in a table?
    Kind regards
    Seb

    If you really need to create table columns programmatically, you can do this in the wdDoModifyView() method of the view controller.
    Store the configuration data for the columns in the view controller context and write some code like the following:
    private static void addColumn(IWDTable table, String id, String attributeName)
      IWDTableColumn column = (IWDTableColumn)
        table.getView().createElement(IWDTableColumn.class, id);
      IWDInputField editor = (IWDInputField)
        table.getView().createElement(IWDInputField.class, null);
      column.setTableCellEditor(editor);
      editor.bindValue(attributeName);
      table.addColumn(column);
    public static void wdDoModifyView(
      IPrivateXYZView wdThis,
      IPrivateXYZView.IContextNode wdContext,
      com.sap.tc.webdynpro.progmodel.api.IWDView view,
      boolean firstTime)
      //@@begin wdDoModifyView
      if (<table needs to be recreated>)
        IWDTable table = (IWDTable)      
          view.getElement(<tableID>);
        table.destroyAllColumns();
        addColumn(table, "columnA", "attributeA");
        // etc.
      //@@end
    This assumes you have created the table itself during design time and bound its data source already. If needed, this can also be done programmatically.
    Armin

  • Summing values in dynamic table columns

    I'm having some difficulty figuring out how to sum column
    values in dynamic tables. In other words, I have created a dynamic
    table (php/mysql). One column has a list of prices, and I need to
    sum the list of prices. I know this is pretty simple stuff. Can
    someone direct me to an example of the appropriate code?

    "firalivet" <[email protected]> wrote in
    message
    news:go1j76$d4l$[email protected]..
    > One column
    > has a list of prices, and I need to sum the list of
    prices. I know
    > this is
    > pretty simple stuff.
    There are several ways to do this, but a simple way is to
    create a
    variable to hold a running total and add the current price to
    it when
    you display each row. The following is a simplified example
    of the
    code:
    <?php $total = 0; ?>
    <?>php do { // this is the start of the repeat region
    ?>
    <tr><td><?php echo
    $row_recordsetName['price']; $total +=
    $row_recordsetName['price']; ?></td></tr>
    <?php } while ($row_recordsetName =
    mysql_fetch_array($recordsetName)); // end of repeat region
    ?>
    <tr><td><?php echo $total;
    ?></td></tr>
    David Powers
    Adobe Community Expert, Dreamweaver
    http://foundationphp.com

  • Reading dynamic table column based on user selection

    Hi there,
    I am having a problem of reading and manipulating the data stored in a standard SAP table. The following example simulates the table and what i am trying to do:
    Table: Storing sales data for sales person
    SALES_PERSON    REGION   YEAR   MTH_S1  MTH_S2  MTH_S3 MTH_S4...
    Richard  S               NORTH    2007     100          200         300        400
    John K                    SOUTH    2007      50           100         100        20
    Brad P                    NORTH    2007     300          100         100        50
    User have have the following selection option:
    1. Month.
    The program will calculate the sales based on the individual month selected
    Example, if user select Month = 3, then program take only MTH_S3 column value
    So total sales = 300100100=500
    2. Month range
    The program will calculate the sales based on the month range selected
    Example, if user select Month 2 to 4, then program take MTH 2 to MTH_S4 columns value
    So total sales = 400 (for MTH_S2) + 500 (for MTH_S3) + 470 (for MTH_S4) = 1370
    How should i write the logic or code for this requirement?
    Hope someone can help.
    Thanks,
    Pang HK

    Try something like this
    TABLES:
    t247.
    SELECT-OPTIONS:
      s_month FOR t247-mnr NO-EXTENSION.
    DATA:
      BEGIN OF fs_data,
        person(30),
        area(10),
        year(4),
        mon1 TYPE kbetr,
        mon2 TYPE kbetr,
        mon3 TYPE kbetr,
        mon4 TYPE kbetr,
        mon5 TYPE kbetr,
      END OF fs_data,
      t_data LIKE STANDARD TABLE OF fs_data,
      w_no_months TYPE i,
      w_kbetr TYPE kbetr,
      w_total TYPE kbetr.
      LOOP AT t_data INTO fs_data.
        CLEAR w_kbetr.
        DO 5 TIMES VARYING w_kbetr FROM fs_data-mon1
                                                          NEXT fs_data-mon2.
        IF sy-index IN s_month.
          w_total = w_total + w_kbetr.
        ENDIF.
        ENDDO.
      ENDLOOP.
    change the value 5, according to the no.of months in ur internal table

  • Structure or tabletype out of dynamic table column

    Hey Experts,
    I have an internal table with dynamic content. In this internal table is a column with the names of tablefields in every line. Now I need to create another internal table or structure with these tablefields in the column as table structure. How can I do that?
    I create the first internal table with:
    data lt_ded_gc_alv type table of /sme/ded_gc_alv.
    select * from /sme/ded_gc_alv into table lt_ded_gc_alv
      where id = WD_THIS->GF_SALV_ID
      AND   xid = WD_COMP_CONTROLLER->cockpit.
    This is part of a Web Dynpro for Abap method, but this is not important.
    In the table lt_ded_gc_alv I have the column with the dynamic names of tablefields.
    Thanks for your help.
    Best regards,
    Ingmar

    Hello,
    Look at class CL_ABAP_TYPEDESCR and their subclasses. You need to use RTTS to define dynamic structures, please read this [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b332e090-0201-0010-bdbd-b735e96fe0ae].
    Regards,

  • Problem with dynamic table

    As users write a lot in text fields of, the table jumps to another page (it doesn't look nice) and overflows. Users can't see the rest of the table.
    The problem seems to be the subform below. Do you have any ideas to avoid this without changing much the interface?
    Cheers,
    Edigo
    PS: I couldn't find the attachment button to upload the form..it used to be at the bottom!!
    Please check here for the form
    http://www.megaupload.com/?d=OKGA03VE

    Edigo,
        Here is the updated file for the issue with the Overall Field.
    https://acrobat.com/#d=gDwYFDJIa6zSQ9JAtAaXUQ
        See if the suggessitions column is working as per your requirement..
    One thing is if you enter more text in any of the field, the Table/Row will do a page break if it extends beyond the height of the page.
    Then if you enter a smaller length text in another field, then it will be displayed on the first page but since the row has been "Page Broken", if you click on the same field in second row it will also display the same text. (Once you remove your mouse from that field second page, the text will disappear. But it will be displayed in the first page all the time. The text in this field was not "Page Broken", that's the reason for this kind of behaviour).
    Hope I explained it better for you..
    Let me know if you need more help..
    Thanks
    Srini

  • Problem with Dynamic table having row map.

    Hi,
    I need to create a table dynamically based on following inputs:
    a.)Name and number of columns will be decided dynamically at run-time.
    b.) Each row will contain a map of column values ,which will be dynamically generated by some other class.
    In the same way multiple tables need to be created dynamically.
    I tried created table for the same as following:
    RichTable tb=new RichTable();
    tb.setId("trs");
    tb.setValue(UICredRowList.getMapListforRows());
    for(Iterator itr=header.iterator();itr.hasNext();)
    String headerKey = (String) itr.next();
    RichColumn myCol = new RichColumn();
    ExpressionFactory efact = FacesContext.getCurrentInstance(). getApplication().getExpressionFactory();
    ValueExpression valExpr1 = efact.createValueExpression( elContext1,"#{row["+headerKey+"]}",Object.class);
    resolveExpression("#{row["+headerKey+"]}") ;
    myCol.setId("tc1");
    myCol.setSortable(false);
    myCol.setWidth("250");
    myCol.setHeaderText(headerKey);
    RichOutputText rot1 = new RichOutputText();
    rot1.setValueExpression("value", valExpr1);
    myCol.getChildren().add(rot1);
    tb.getChildren().add(myCol);
    Here when I checked the column value from Expression I am getting value as null.
                        Can someone help me how can I handle this type of table.Example will be highly appreciated.
    Thanks in Advance
    Sunil

    Which JDeveloper version do you use, if you use 12c or 11R2 you should find this option when you drag and drop the table to auto generate columns dynamically.

  • Problems with dynamic table

    When i run the following code I get these exceptions. the exceptions appear when i enter something in the table. And i can't find out wat i'm doing wrong!!Could you please help me out with this problem.
    code:
    MyTableModel myModel = new MyTableModel();
    JTable table = new JTable(myModel);
    JScrollPane scrollPane = new JScrollPane(table);
    this.getContentPane().add(scrollPane, new XYConstraints(22, 130, 580, 198));
    //opmaak van de kolommen optie en commentaar
    setUpOptieColumn(table.getColumnModel().getColumn(0));
    setUpCommentaarColumn(table.getColumnModel().getColumn(1));
    publiic void setUpOptieColumn(TableColumn optieColumn) {...}
    public void setUpCommentaarColumn(TableColumn commentaarColumn) {...}
    public void setValueAt(String value, int row, int column)
    System.out.println("value: " + value);
    System.out.println("Row: "+ row);
    System.out.println("column: "+ column);
    if (column == 0)
    System.out.println("value: " + value);
    System.out.println("Row: "+ row);
    System.out.println("column: "+ column);
    code = value;
    myModel.data.add(row,new tabelgegevens (code,"",false));
    if (column == 1)
    System.out.println("value: " + value);
    System.out.println("Row: "+ row);
    System.out.println("column: "+ column);
    myModel.data.add(row,new tabelgegevens (code,value,false) );
    table.tableChanged(new javax.swing.event.TableModelEvent(myModel));
    - MyTableModel -
    class MyTableModel extends DefaultTableModel
    protected static int NUM_COLUMNS = 3;
    protected static int START_NUM_ROWS = 1;
    protected int nextEmptyRow = 0;
    public int numRows = 1;
    static final public String code = "Code";
    static final public String omschrijving = "Omschrijving";
    static final public String wissen = "Wissen";
    public Vector data = null;
    /*final String[] columnNames = {"Code",
    "Omschrijving","Wissen","test"};*/
    /*Object[][] data = {{" "," ",new Boolean(false)," "}};*/
    public MyTableModel()
    data = new Vector(0,1);
    data.addElement(new tabelgegevens ("","",false));
    public int getColumnCount() {
    return NUM_COLUMNS;
    public int getRowCount() {
    return numRows;
    public String getColumnName(int column) {
    switch (column)
    case 0:
    return code;
    case 1:
    return omschrijving;
    case 2:
    return wissen;
    return "";
    public Object getValueAt(int row, int column)
    try{
    tabelgegevens tg = (tabelgegevens) data.elementAt(row);
    switch (column)
    case 0:
    return (Object)tg.code;
    case 1:
    return (Object)tg.omschrijving;
    case 2:
    if (tg.wissen)
    return (Object)"true";
    else
    return (Object)"false";
    }catch (Exception e)
    return "";
    public Class getColumnClass(int c) {
    return getValueAt(0, c).getClass();
    public boolean isCellEditable(int row, int col)
    //Note that the data/cell address is constant,
    //no matter where the cell appears onscreen.
    if (col > 2) {
    return false;
    } else {
    return true;
    exceptions:
    Exception occurred during event dispatching:
    java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
         at java.util.Vector.elementAt(Vector.java:417)
         at javax.swing.table.DefaultTableModel.setValueAt(DefaultTableModel.java:674)
         at javax.swing.JTable.setValueAt(JTable.java:1737)
         at javax.swing.JTable.editingStopped(JTable.java:2992)
         at javax.swing.AbstractCellEditor.fireEditingStopped(AbstractCellEditor.java:112)
         at javax.swing.DefaultCellEditor$EditorDelegate.stopCellEditing(DefaultCellEditor.java:242)
         at javax.swing.DefaultCellEditor.stopCellEditing(DefaultCellEditor.java:176)
         at javax.swing.DefaultCellEditor$EditorDelegate.actionPerformed(DefaultCellEditor.java:251)
         at javax.swing.JComboBox.fireActionEvent(JComboBox.java:870)
         at javax.swing.JComboBox.selectedItemChanged(JComboBox.java:894)
         at javax.swing.JComboBox.contentsChanged(JComboBox.java:950)
         at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:79)
         at javax.swing.DefaultComboBoxModel.setSelectedItem(DefaultComboBoxModel.java:86)
         at javax.swing.JComboBox.setSelectedItem(JComboBox.java:415)
         at javax.swing.JComboBox.setSelectedIndex(JComboBox.java:455)
         at javax.swing.plaf.basic.BasicComboPopup$ListMouseHandler.mouseReleased(BasicComboPopup.java:582)
         at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
         at java.awt.Component.processMouseEvent(Component.java:3715)
         at java.awt.Component.processEvent(Component.java:3544)
         at java.awt.Container.processEvent(Container.java:1164)
         at java.awt.Component.dispatchEventImpl(Component.java:2593)
         at java.awt.Container.dispatchEventImpl(Container.java:1213)
         at java.awt.Component.dispatchEvent(Component.java:2497)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
         at java.awt.Container.dispatchEventImpl(Container.java:1200)
         at java.awt.Window.dispatchEventImpl(Window.java:914)
         at java.awt.Component.dispatchEvent(Component.java:2497)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
    thx
    lanfeust79

    I agree that creating a vector with size 0 isn't very useful. I've changed it, but i'm still getting the same exception.
    I think the problem is in the 'getValueAt' method, although i can't figure out where it is.
    I'm sorry i'm such a pain in the ass but i appriciate a lot your help.

  • Problem with Number of Columns in XML Report

    Hi,
    I am trying to make a XML report with more than 64 columns. When i am trying to load the data into MS Word , it is giving me error saying a table cannot have more than 63 columns. If i reduce the no.of columns , then i am able to create the report.Can any one advise me how to overcome the error.
    Thanks and Regards
    Raj

    >
    Balaram naidu Bankuru wrote:
    > Hello Bhaskaran,
    >
    > I tried that approach as well,but still issue exists.I am using Generic user id for executing Web Dynpro ABAP application in portal via iView.Does it anything do with generic user id.We also observed one more issue where table columns are getting disappeared..
    >
    > Thanks,
    > Balaram
    Hallo Balaram,
    Appearance of the column order we have had this problem and i thought that we have solved by position method. Looks like that we have tried that method and didnt work seems now.
    As far as i know it is nothing to do with Generic user id except that there are no personalization involved.
    Table column disappearing might be a personalization issue.

  • To change the width of a Table Column

    Hai Developers..................
    I have problem with the Table Column Width.
    When am on search state.
    The search results are showing in a table.
    At that time i want to change the width of the each column with respect to the column content.
    Like the jsp table.......
    Pls replay with example......
    Thanks.

    And that is why Swing related questions should be posted in the Swing forum so we don't spend time guessing what you are talking about.
    Darn, the [Table Column Adjuster|http://www.camick.com/java/blog.html?name=table-column-adjuster] didn't show up in that Google search.

Maybe you are looking for