Help me adding dynamic column in JSP

Hi!
Can any body please tell me how to add a column DYNAMICALY in JSP?
I am using a drilldown and I want to add the next column after every + is clicked in drilldown.
*If you have something to e-mail then please e-mail me at my below given e-mail address.
Regards
Ashish Bagora
<[email protected]>

I guess you're referring to a column table.
You can simply submit to server and regenerate the page or you can add the column using Javascript DOM manipulation function.

Similar Messages

  • Adding dynamic columns to region

    I have four tables named projects,Sharedservices,Characteristics,Quantitystructures. The Sharedservices and Characteristisc tables are linked together using Sharedservice Id field. The Quantitystructures table is linked with Projects and Characteristics tables using Project Id and Characteristic Id fields respectively. I have a form that contains three select list items one for selecting the Sharedservice. When the Sharedservice is selected the Characteristic item gets populated automatically with the selected Sharedservice Characteristcs. The third item is the timestamp displaying the months from the Month table.
    The region displays Project Name and the amount of utilization for the selected Sharedservice and the corresponding Characterisctic for a particular month.
    Now what I want to do is that when a Sharedservice is selected dynamic columns should be added to the region depending on the number of Characteristics the Sharedservices has and they should be linked to the amount field.
    The reason to do this is that I want the end users to just select the Sharedservice and then enter the amount of utilization for the respective Characteristics instead of first selecting them one by one from the Characteristics item and then entering the utilization amount by the projects.(The amount field is present in the Quantitystructures table)
    I would really appreciate any help on this issue.
    Edited by: user11298661 on Jul 8, 2009 10:57 PM

    Hi,
    I'm not 100% clear on what is on the page. "Column" usually refers to a column in a report or tabular form. Is this what you mean? Or do you want to show individual pages items?
    Is the data for the characteristics being stored as individual records on the table for each characteristic? Or, is there a single record for all characteristics for each Sharedservice and you want to show/hide some of these?
    Andy

  • Adding Dynamic column to datagrid at the begining of datagrid

    Hello friends,
    There is one datagrid which is static. and i m adding one dynamic column. it is get added to the end of the static datagrid
    but I want to add dynamic column at the begning of the datagrid can anybody help me on this.
    Thanking you,
    Regards,
    gajanan

    Thanks to everybody.
    finally i got the things to work using following code.
    private  function SwapGridColumns (DG:DataGrid, Col1:Number, Col2:Number):void
                    var i:Number; // Counter
                    var DP:ArrayCollection =ArrayCollection( DG.dataProvider);     //DataProvider
                    var Widths:Array = new Array ();     // the widths of the columns
                    var Columns:Array = new Array ();    // the column names
                    var Visibility:Array = new Array (); // visibility of columns
                    var HRenderer:Array = new Array ();   // Header Renderer of columns
                    var IRenderer:Array = new Array();
                    var datastore:Array = new Array ();
                    var Editable:Array = new Array();
                    var DFields:Array=new Array();
                    var Sortable:Array = new Array();
                    for (i = 0; i<DG.columns.length; i++)
                        if (i == Col1)
                            Columns.push(DG.columns[Col2].headerText);
                            Widths.push(DG.columns[Col2].width);
                            Visibility.push(DG.columns[Col2].visible);
                            HRenderer.push(DG.columns[Col2].headerRenderer);
                            IRenderer.push(DG.columns[Col2].itemRenderer);
                            Editable.push(DG.columns[Col2].editable);
                            Sortable.push(DG.columns[Col2].sortable);
                            DFields.push(DG.columns[Col2].dataField);
                        else if (i == Col2)
                            Columns.push(DG.columns[Col1].headerText);
                            Widths.push(DG.columns[Col1].width);
                            Visibility.push(DG.columns[Col1].visible);
                            HRenderer.push(DG.columns[Col1].headerRenderer);
                            IRenderer.push(DG.columns[Col1].itemRenderer);
                            Editable.push(DG.columns[Col1].editable);
                            Sortable.push(DG.columns[Col1].sortable);
                            DFields.push(DG.columns[Col1].dataField);
                        else
                            Columns.push(DG.columns[i].headerText);
                            Widths.push(DG.columns[i].width);
                            HRenderer.push(DG.columns[i].headerRenderer);
                            IRenderer.push(DG.columns[i].itemRenderer);
                            Editable.push(DG.columns[i].editable);
                            Sortable.push(DG.columns[i].sortable);
                            DFields.push(DG.columns[i].dataField);
                    // Reset the widths
                    var col:Array
                    for (i = 0; i < Columns.length; i++)
                        var DGC:DataGridColumn = new DataGridColumn(Columns[i]);
                        DGC.width = Widths[i];
                        DGC.visible = Visibility[i];
                        DGC.headerRenderer = HRenderer[i];
                        DGC.itemRenderer = IRenderer[i];
                        DGC.dataField=DFields[i];
                        DGC.sortable=Sortable[i];
                        DGC.editable=Editable[i];
                        datastore.push(DGC);
                    DG.columns=datastore;
                    // Load DP
                    DG.dataProvider = DP;
    Regards,
    gajanan

  • Adding dynamic columns in Table Control

    Hi All,
    Can we add dynamic columns in a table control? The requirement is something like this. When the user clicks a button it should add a column to the table. Also is it possible for the same column to refer to different fields of the Internal Table of the Database table. Example. The first row in the table control must refer to MARA-MATNR and the second row must refer to MAKT-MAKTX.
    Regards,
    Sudhindra

    Hello Sudhindra,
    If you know all the columns that the table control will ever contain, then I suppose it is possible to add and delete the columns dynamically.
    What cannot be dynamic, is the determination of which coulmn would be displayed in the table control.
    To elaborate, In SE51, you have to define the table control with all the possible columns. In the program, during the PBO, you can choose to hide some of these columns. When the user performs certain action (PAI), you can determine which opf the hidden columns would be displayed in the table control after the next PBO.
    Coming to your second requirement, I don't think it is directly possible in case of table conrols. You will have to do some manipulation to achieve it. But even if you can I think you should not. Because, It is not elegant from a good-UI design perspective. ANd during the course of the necessary manipulations, we might have to forgo some of the features like Automatic Field Validation, Automatic Input Help etc. You can use ALV for the same.
    Please be judicious in deciding which approach to consider and if you run into some more problems, please do get back with some more details like how many columns you have, how many different row-types do you want, what are the features for the fields that you wish to provide (eg. F4 help) an so on...
    Regards,
    Anand Mandalika.

  • Adding dynamically columns to array field

    hello..
    I am trying to create a window class with an ArrayField. The number of
    DataField s in the ArrayField s are known at run time.
    I created an nonWindow class (say Row )with an attribute FirstCol of type
    Textdata.
    I created a window class and using the window editor i created a datafield
    with
    name FirstCol which matches with the row class attribute.
    I made datafield into an arrayfield with properties, name = arfield and
    type = array of Row
    I created a datafield and named to TemplateField (used as a template for
    adding
    columns )
    On click of a button,I am able to add any number of DataField at run time
    to the ArrayField by any of the following two ways successfully.
    1) <TemplateField>.Parent = <arfield>;
    2)<arfield>.AddColumn(2,<TemplateField>);
    But i am failing both in adding data pragmatically to the added column and
    retrive data from the newly added field even after the field by the folling
    way
    <arfield>.children[2].Name='Column2';
    U can assume that all fields that are going to be added at run time are used
    to store string data.
    Please inform me if any one knows about this.
    Waiting for responance..
    Ramesh kumar reddy
    [email protected]
    PSI Data Syatems Ltd,
    Bangalore,
    INDIA.

    hello..
    I am trying to create a window class with an ArrayField. The number of
    DataField s in the ArrayField s are known at run time.
    I created an nonWindow class (say Row )with an attribute FirstCol of type
    Textdata.
    I created a window class and using the window editor i created a datafield
    with
    name FirstCol which matches with the row class attribute.
    I made datafield into an arrayfield with properties, name = arfield and
    type = array of Row
    I created a datafield and named to TemplateField (used as a template for
    adding
    columns )
    On click of a button,I am able to add any number of DataField at run time
    to the ArrayField by any of the following two ways successfully.
    1) <TemplateField>.Parent = <arfield>;
    2)<arfield>.AddColumn(2,<TemplateField>);
    But i am failing both in adding data pragmatically to the added column and
    retrive data from the newly added field even after the field by the folling
    way
    <arfield>.children[2].Name='Column2';
    U can assume that all fields that are going to be added at run time are used
    to store string data.
    Please inform me if any one knows about this.
    Waiting for responance..
    Ramesh kumar reddy
    [email protected]
    PSI Data Syatems Ltd,
    Bangalore,
    INDIA.

  • Help in calling dynamic columns in anonymous blocks

    my code:
    DECLARE
    col1 VARCHAR2(20):='city';
    BEGIN
    FOR i IN (select * from xbd.cus_ord where rownum < 10)
    LOOP
    -- I would like to call col1 dynamically here in my dbms output.
    DBMS_OUTPUT.PUT_LINE (i.col1);
    END LOOP;
    END;
    On above code I was trying to call a dynmic column. How can I do that.
    I heve been tried in different way by using EXECUTE IMMEDIATE. Still it doesnt work.
    Thx,
    Vi

    DECLARE
       col1        VARCHAR2(30)   := 'object_name';
       TYPE REF_CURSOR IS REF CURSOR;
       refCursor   REF_CURSOR;
       text        VARCHAR2(4000);
    BEGIN
       OPEN refCursor FOR 'SELECT ' || col1 || ' FROM all_objects WHERE ROWNUM < 10';
       LOOP
          FETCH refCursor
           INTO text;
          EXIT WHEN refCursor%NOTFOUND;
          DBMS_OUTPUT.PUT_LINE(text);
       END LOOP;
    END;
    /

  • Adding dynamic marquee in jsp pages

    ...

    I guess you're referring to a column table.
    You can simply submit to server and regenerate the page or you can add the column using Javascript DOM manipulation function.

  • Help: Creating a Dynamic TreeView Using JSP

    I'm involved in a research project developing a webclient for the subversion VCS. I was able to access the repository and get the content as a string using the JavaSVN Library. It is like follows
    A/
    A/1.txt
    A/B/2.txt
    A/B/3.txt
    C/
    C/4.txt
    The problem i'am having is that displaying this out put in a tree Type Structure. So any one can help me this any matter is greatly appriciated
    Regards,
    Samantha

    Javascript open source for Tree Menu
    http://www.softcomplex.com/products/tigra_tree_menu_pro/

  • Dynamic columns in SBWP

    Hi.
    can any one explain stepby step process of adding dynamic columns in SBWP.
    thanks & regards,
    arul.

    hi
    Inside SBWP u2013 inboxu2014Right click on u201Ctitle u201D Tab   of INBOX  It will list down all the  possibilities  to handle columns or add columns.
    (below Inbox is writen , RIGHT CLICK ON any column name .) you will get options like Show , this will help you to add more columns
    thanks
    kakoli
    Edited by: kakoli debroy on Jul 28, 2009 1:58 PM

  • Adding nuew column to Oracle Projects Workplan Gantt

    Hi all,
    I need help in adding a column to the gantt table in the workplan tab on Oracle Projects module. I need to add a description column near task-number column.
    I've followed the standard personalization procedure: Personalize page, select the table region, add item (MessageStyledText), rendered=true.
    No matter the view instance/view attribute i assign to it, but I can't see the column on the table.
    If I return in the page-personalization I see that the column has been added, but I continue not seeing it on the gantt table......
    Do you know, what can I do?
    Thanks,
    Dario

    Hi,
    "The resource list member is not a member of this resource list XX Planning Resource List", r u trying to export from MSP to Projects? If so, the resource should be the member of the project (Team Member, PM, Accountent...........)
    Please check your Planning Resource List > People.
    Regards
    Raghavender K

  • How to hide columns that are getting added dynamically to UI Element 'Table

    In SRM 7.0 while displaying a RFx, click on "responses and awards" button.
    In the response comparision tab once the user selects response number and clicks on "compare all responses".
    Item details table is displayed with fields item number,internal number,item description,........,Price etc.
    Requirement is  to hide the price column from the table.
    The UI element type is 'Table'.
    But the catch is there is no column price visible at layout design level.
    This field is getting added dynamically at run time.
    When i right click and see the 'more field help' at the front end i get the field id as 'GRP_1_COL_3_TXTV'.
    lo_table ?= view->get_element( id = 'ITEMS_TABLE' ).
    lo_column = lo_table->get_column( id = 'GRP_1_COL_3_TXTV').
    ASSERT lo_column IS NOT INITIAL.
    lo_column->set_visible( EXPORTING value = '01' ).
    I had written the above code in the pre-exit of WDDOMODIFYVIEW.
    But i am getting dump as assertion failed.it says no column by name 'GRP_1_COL_3_TXTV'.
    Please help me inhow to hide fields or buttons getting generated dynmically.
    Regards,
    Venkat Raghavan.

    Hi Anitha,
    What i understood from your question is,you want to control the table from your inputs.I have a one question for you what do you want to show defaultly i.e when you run the application what you want to show,either no table or table with some values.
    Any how i am giving solution in this way.
    If both inputs are given proper table output is displayed
    Write your below logic in the WDDOMODIFYVIEW )
    Here i am assuming that you already have a table element in the view.
    Get the values entered in the input fields and compare those 2 values ,if the condition is satisfied then bind the values which you want to show in the table to the context node.
    but if only 1 input is given a column is empty in the output table so i want to hide this column dynamically at runtime based on my inputs
    You are telling that you know the empty column.If so get the view element reference and use the REMOVE_COLUMN to remove the column.
    data:lr_table type ref to cl_wd_table,
           lr_column type ref to L_WD_TABLE_COLUMN.
    lr_table ?= view->get_element( 'TABLE1' ).
    CALL METHOD LR_TABLE->REMOVE_COLUMN
        EXPORTING
          ID          = 'TABLE1_color'
         INDEX      =
        RECEIVING
          THE_COLUMN = lr_column.
    i want to hide some empty rows also at runtime based on inputs.
    Removing the rows is very simple.if you know the key fields data of internal table from your input fields then do in this way.
    delete itab from wa where key1= "12" and key2="abd".
    Now bind the internal table to context node.
    LO_ND_hcm->BIND_TABLE(
          NEW_ITEMS            = it_final
          SET_INITIAL_ELEMENTS = ABAP_TRUE ).

  • Adding the columns dynamically in crystal report

    Hi,
      I am developing a application using asp.net and crystal report. In a report the column is created dynamically( ie, the report gets input from a sp which returns N no. of columns). Since i dont know the column name and no. of columns at design time i am not able to create the report. If any of you have any idea on adding the columns dynamically please send me the code or the link.
    Thanks
    Sankar

    Hello Sankar,
    please see CS code for VS 2005 below to add a database field to a report using inproc RAS.
    This sampels retrieves the table column name from the database and adds it to the report.
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Text;
    using System.Windows.Forms;
    using CrystalDecisions.CrystalReports.Engine;
    using CrystalDecisions.ReportAppServer.Controllers;
    using CrystalDecisions.ReportAppServer.ClientDoc;
    using CrystalDecisions.ReportAppServer.DataDefModel;
    namespace CS_Add_Field_inproc
        public partial class Form1 : Form
            // CR Declarations
            ReportDocument boReportDocument;
            ISCDReportClientDocument boReportClientDocument;
            CrystalDecisions.ReportAppServer.ReportDefModel.Section boSection;
            CrystalDecisions.ReportAppServer.ReportDefModel.FieldObject boFieldObject;
            public Form1()
                InitializeComponent();
                //Create a new ReportDocument
                boReportDocument = new ReportDocument();
                // load the RPT file
                boReportDocument.Load("..
    AddField.rpt");
                //Access the ReportClientDocument in the ReportDocument (EROM bridge)
                boReportClientDocument = boReportDocument.ReportClientDocument;
                //Get the first section in the details section
                   boSection = boReportClientDocument.ReportDefController.ReportDefinition.DetailArea.Sections[0];
                   //Create the field object that we will add to the report and set all of its properties
                   boFieldObject = new CrystalDecisions.ReportAppServer.ReportDefModel.FieldObject();
                //Set which field to use for the data to be displayed
                   boFieldObject.DataSourceName = "{Customer.City}";
                   boFieldObject.FieldValueType = CrystalDecisions.ReportAppServer.DataDefModel.CrFieldValueTypeEnum.crFieldValueTypeStringField;
                   boFieldObject.Left = 4 * 1440; //1440 twips per inch
                   boFieldObject.Width = 3 * 1440;
                   boFieldObject.FontColor = new CrystalDecisions.ReportAppServer.ReportDefModel.FontColor();
                   boFieldObject.FontColor.Font.Name = "Arial";
                   boFieldObject.FontColor.Font.Size = 10;
                   boFieldObject.Format.HorizontalAlignment = CrystalDecisions.ReportAppServer.ReportDefModel.CrAlignmentEnum.crAlignmentLeft;
                   //Add the object to the report
                   boReportClientDocument.ReportDefController.ReportObjectController.Add(boFieldObject, boSection, -1);
                // show in reportviewer
                crystalReportViewer1.ReportSource = boReportDocument;
            private void button1_Click(object sender, EventArgs e)
                //Get the first section in the details section
                boSection = boReportClientDocument.ReportDefController.ReportDefinition.DetailArea.Sections[0];
                //Create the field object that we will add to the report and set all of its properties
                boFieldObject = new CrystalDecisions.ReportAppServer.ReportDefModel.FieldObject();
                //Set which field to use for the data to be displayed
                boFieldObject.DataSourceName = "{Customer.City}";
                boFieldObject.FieldValueType = CrystalDecisions.ReportAppServer.DataDefModel.CrFieldValueTypeEnum.crFieldValueTypeStringField;
                boFieldObject.Left = 4 * 1440; //1440 twips per inch
                boFieldObject.Width = 3 * 1440;
                boFieldObject.FontColor = new CrystalDecisions.ReportAppServer.ReportDefModel.FontColor();
                boFieldObject.FontColor.Font.Name = "Arial";
                boFieldObject.FontColor.Font.Size = 10;
                boFieldObject.Format.HorizontalAlignment = CrystalDecisions.ReportAppServer.ReportDefModel.CrAlignmentEnum.crAlignmentLeft;
                //Add the object to the report
                boReportClientDocument.ReportDefController.ReportObjectController.Add(boFieldObject, boSection, -1);
                // show in reportviewer
                crystalReportViewer1.ReportSource = boReportDocument;

  • CFChart Dynamic Column HELP

    I looked over the posts on CFChart but did not find anything
    that addresses my specific problem with the cfchart. So if you can
    help, I'd appreciate it very much!
    What I want to do is take the dynamic name of the column
    derived from the first query and use that name in the Legend. E.G.
    A_R1_DIS is the first dataset, A_R1_J is the second dataset, and
    A_R1_PPLI is the third dataset. Then show a line graph with each
    dataset based on the first query. The X Axis displays the Date/Time
    value and the Y Axis displays the number of points for each record
    of time for each dataset individually. I was able yesterday to get
    all three datasets to display individually but when I tried to show
    the legend it either displayed only the first Dataset name
    "A_R1_DIS" or it displayed "NONE". Currently the code will not
    display any line on the chart and the legend repeats the A_R1_DIS
    as many times as there are records in the table (60+).
    I use the following query to get the dynamic column name
    "SelectedDatasetColName" from the MasterDataList table.
    <CFQUERY name="getSelectedDatasetColName"
    datasource="#getcfdbname.EventCFDBName#">
    SELECT MDL_TestName + '_' + MDL_DatasetID + '_' +
    MDL_MeaningfulName as SelectedDatasetColName
    FROM MasterDataList
    </CFQUERY>
    Here is where I'm using the "SelectedDatasetColName" value:
    ******************************************* queries
    <CFQUERY name="DatasetHistogramQry"
    datasource="#getcfdbname.EventCFDBName#">
    SELECT
    <cfset i = 1>
    <cfloop query="getSelectedDatasetColName">
    #SelectedDatasetColName# as col#i#,
    <cfset i = i + 1>
    </cfloop>
    JDay, TheHour, TheMinute,
    convert(varchar(12), JDay, 114) + ' ' + convert(varchar(12),
    TheHour, 114) + ':' + convert(varchar(12), TheMinute, 114) as
    DateTime
    FROM vPositionHistogram
    ORDER BY JDay, TheHour, TheMinute
    </CFQUERY>
    Here is the code for the table; which works correct:
    **************************** Report Code
    <TABLE>
    <TR>
    <TH>Day</TH>
    <TH>Hour</TH>
    <TH>Minute</TH>
    <CFOUTPUT QUERY="getSelectedDatasetColName">
    <TH>#SelectedDatasetColName# Message Count</TH>
    </CFOUTPUT>
    </TR>
    <CFOUTPUT QUERY="DatasetHistogramQry">
    <TR BGCOLOR="###IIF(DatasetHistogramQry.currentrow MOD 2,
    DE('DCDCDC'), DE('FFFFFF'))#">
    <TD ALIGN="center">#JDay#</TD>
    <TD ALIGN="center">#TheHour#</TD>
    <TD ALIGN="center">#TheMinute#</TD>
    <CFSET i = 1>
    <CFLOOP INDEX="X" FROM="1"
    TO="#getSelectedDatasetColName.recordcount#">
    <TD ALIGN="center">#evaluate("col#i#")#</TD>
    <CFSET i = i + 1>
    </CFLOOP>
    </TR>
    </CFOUTPUT>
    </TABLE>
    Here is the output for the table; Dynamic Column Name used to
    repeat counts for each dataset.
    ********************************* output
    Day Hour Minute A_R1_DIS Message Count A_R1_J Message Count
    A_R1_PPLI Message Count
    37 17 36 0 2 35
    37 17 37 19 6 32
    37 17 38 28 30 33
    37 17 39 40 27 27
    37 17 40 66 64 32
    Here is the problem code. I have tried several variations on
    this code but currently all it does is display a blank chart.
    **************************** Chart Code
    <CFCHART FORMAT="flash" CHARTHEIGHT="340" CHARTWIDTH="600"
    SHOWXGRIDLINES="yes" SHOWYGRIDLINES="yes" SHOWBORDER="no"
    FONTBOLD="no" FONTITALIC="no" XAXISTITLE="Timeline (Day
    Hour:Minute)" YAXISTITLE="Message Counts" SHOW3D="no" ROTATED="no"
    SORTXAXIS="no" SHOWLEGEND="yes" TIPSTYLE="MouseOver"
    SHOWMARKERS="no">
    <CFOUTPUT QUERY="DatasetHistogramQry">
    <CFSET i = 1>
    <CFLOOP INDEX="X" FROM="1"
    TO="#getSelectedDatasetColName.recordcount#">
    <CFCHARTSERIES QUERY="DatasetHistogramQry" TYPE="line"
    ITEMCOLUMN="#DateTime#" VALUECOLUMN="#evaluate("col#i#")#"
    SERIESLABEL="#getSelectedDatasetColName.SelectedDatasetColName#">
    <CFSET i = i + 1>
    </CFLOOP>
    </CFOUTPUT>
    </CFCHART>
    Please let me know if you need any additional info on my
    problem and if you can help, it is greatly appreciated!!!!
    - Debra

    DateTime is a column in the vPositionHistogram (View). Col#i#
    is the variable used to loop through the column names derived from
    the getSelectedDatasetColName query. The view is populated
    dynamically and the columns in it vary depending on the dataset
    used to populate the view. The view can have 1 to many columns.
    That is why I pull the column names from the MasterDataList table
    and use a variable to get the values from each column. My column
    names end up being Col1, Col2, Col3, and so on. I use that variable
    in the loop to get the data from vPositionHistogram for each column
    in the report/chart. I made some headway on Friday before I called
    it a day, but I will try the last suggestion and post my findings
    in a little while. Thanks!

  • How to display dynamic column added by vo.addDynamicAttribute in jspx?

    Hi,
    I met problem when programmatically add cloumn and display it on screen. Here are my steps:
    0. define a ViewObject using xml. Define a transient column Addtion2. later will add a dynamic column Addtion3, but not defined here.
    1. Implement Application Module, adding a method init() and expose it to client.
    2. In init() method, get target VO and use vo.addDynamicAttribute("Addition3"). Then iterate it use row.setAttribute("Addition3", Math.random()). Add init() to page binding and invoke it.( it's invoked )
    3. In jspx, use dynamic table. But Addition3 never shows up.
    This is my last question: Re: How to display dynamic column added by vo.addDynamicAttribute in jspx? People say I should use dynamic table.
    please have a look at my code:
    Application Module: when it runs, it will print 6 coulmns. vo.getAttributeCount() is <font color="red">6</font>.
    <pre>
    public void init() {
    ViewObject vo = this.getCountryView1();
    if (vo.getAttributeIndexOf("Addition3") == -1) {
    vo.addDynamicAttribute("Addition3");
    vo.executeQuery();
    for (AttributeDef deft : vo.getAttributeDefs()) {
    System.out.println(deft.getColumnName() + ": " + deft.getName());
    RowSetIterator it = vo.createRowSetIterator("i1");
    while (it.hasNext()) {
    Row r = it.next();
    r.setAttribute("Addition2", Math.random());
    r.setAttribute("Addition3", Math.random());
    it.closeRowSetIterator();
    for (AttributeDef deft : vo.getAttributeDefs()) {
    System.out.println(deft.getColumnName() + ": " + deft.getName());
    System.out.println(vo.getAttributeCount()); //vo.getAttributeCount() is 6
    </pre>
    jspx: when it runs, only 5 columns are shown. Column Addition2's values are set as expected. but Column Addition3 never shows up. And #{bindings.CountryView1.attributeCount} shows <font color="red">5</font>.
    <pre>
    <af:table rows="#{bindings.CountryView1.rangeSize}"
    fetchSize="#{bindings.CountryView1.rangeSize}"
    emptyText="#{bindings.CountryView1.viewable ? 'No data to display.' : 'Access Denied.'}"
    var="row" rowBandingInterval="0"
    value="#{bindings.CountryView1.collectionModel}"
    selectedRowKeys="#{bindings.CountryView1.collectionModel.selectedRow}"
    selectionListener="#{bindings.CountryView1.collectionModel.makeCurrent}"
    rowSelection="single" id="t1">
    <af:forEach items="#{bindings.CountryView1.attributeDefs}" var="def">
    <af:column headerText="#{def.name}"
    sortable="true" sortProperty="#{def.name}" id="c1">
    <af:outputText value="#{row[def.name]}" id="ot1"/>
    </af:column>
    </af:forEach>
    </af:table>
    <af:forEach items="#{bindings.CountryView1.attributeDefs}" var="def">
    <af:outputText value="#{def.name}" id="ot2"/>
    </af:forEach>
    <af:outputText value="#{bindings.CountryView1.attributeCount}" id="ot3"/>
    </pre>
    it's quite weird for me. The vo.getAttributeCount() is 6, but #{bindings.CountryView1.attributeCount} shows 5. And column Addtion3 never shows up.
    what's the matter? How can I show the dynamic added column Addtion3?
    Edited by: simon li on 2012-9-10 下午7:31
    Edited by: simon li on 2012-9-10 下午8:00

    Hi,
    Can you check the tree binding (CountryView1 - in the pagedef) and see it has the 5 attributes hardcoded in it. If yes, try removing everything and then run the page to see if it works fine.
    -Arun

  • Adding dynamic split column width to my report

    I'm trying to add a dynamic split-column-width to my report in BI Publisher. I do not have a need for a column header. I tried to add this line to my existing line of code for the cell.
    *<?split-column-width:COLUMN_DATA?>*
    C *<?split-column-width:COLUMN_DATA?>* <?for-each-group@cell:current-group();COLUMN_ORDER?> COLUMN_DATAEC
    I do not under stand the user's guide. What should be placed where to accomplish the dynamic column width and keep my current cell group?
    thank you for your time.

    In the Discoverer Plus (web version but not vieweer), go to Sheet -> Format. For each column click on Format Data and make sure Word Wrap in unchecked. Then click on Format Heading and check on Word Wrap. This will word wrap the column heading but stretch the column to maximum length of the data in the column.
    I think be default word wrap in unchecked unless otherwise specified when the workbook was created.

Maybe you are looking for

  • How do I get multiple disc music CD's to load properly into my iCloud?

    Here is the scenario:   I have several "Greatest Hits" CD's in my personal library that I am attempting to load into iTunes/iCloud.  These CD's comprise two discs.   I loaded these originally on my old PC.....before I signed up for my "cloud".   Yest

  • Change WBS Element (Investment Measure) after an AR is approved

    Experts, Is there a way to change a WBS Element (Investment Measure) after an AR has been already released/approved. All thoughts/options/views would be duly appreciated. Thanks,

  • Channel Settings and EQ in the Output 1-2 channel

    I like to use some of the canned channel settings on the mixdown channel, especially the soft enhancer and the maximizers. I also like some of the channel EQ settings like final mix pop, etc. When I add the soft enhancer to the channel strip and then

  • Fuzzy text in terminal on rMacBook Pro

    Not sure if this is a bug. Looks like the text in the terminal app lost has lost its crispness on the retina macbook pro. It's no longer retina resolution. Does Apple take bug submissions on this forum?

  • IDVD crashes while rendering menus

    I have 9 menus, 17 movies, using a double layer DVD. Bought this macbook pro less than a year ago. Any suggestions? When I bought the mac from the apple store I was not given an install disc, and the genius at the counter had no idea why it crashes