Adding columns in query causes renames of fields

Hi All, I'm using Oracle Reports Builder 10g. I have a query which has connections to other queries. When I try to add two columns into that query and recompile the RDF it automatically renames other fields adding "1" at the right side. Any ideas why this is happening? I'm not adding columns with names already existed. Thanks in advance, A. Stoyanov

Hi, The query is :
SELECT 0 CUSTOMER_TRX_ID,
       rpad('a', 20, '-') TRX_NUMBER,
       0 TERM_SEQUENCE_NUMBER,
       rpad('a', 40, '-') TRX_TYPE,
       rpad('a', 80, '-') TRX_TYPE_NAME,
       'a' OPEN_RECEIVABLE_FLAG,
       SYSDATE TRX_DATE,
       0 SHIP_TO_CUSTOMER_ID,
       0 SHIP_TO_CONTACT_ID,
       0 REMIT_TO_ADDRESS_ID,
       0 PRIMARY_SALESREP_ID,
       rpad('a', 30, '-') CUSTOMER_NUMBER,
       rpad('a', 240, '-') INTERNAL_NOTES,
       0 BATCH_SOURCE_ID,
       rpad('a', 240, '-') TRX_COMMENTS,
       0 PREVIOUS_CUSTOMER_TRX_ID,
       0 SHIP_TO_SITE_USE_ID,
       0 PRINTING_COUNT,
       SYSDATE PRINTING_ORIGINAL_DATE,
       SYSDATE PRINTING_LAST_PRINTED,
       'a' PRINTING_PENDING,
       0 LAST_PRINTED_SEQUENCE_NUMBER,
       SYSDATE START_DATE_COMMITMENT,
       SYSDATE END_DATE_COMMITMENT,
       0 INITIAL_CUSTOMER_TRX_ID,
       rpad('a', 15, '-') INVOICE_CURRENCY_CODE,
       0 TERM_ID,
       SYSDATE SHIP_DATE_ACTUAL,
       rpad('a', 30, '-') SHIP_VIA,
       rpad('a', 50, '-') WAYBILL_NUMBER,
       rpad('a', 50, '-') PURCHASE_ORDER_NUMBER,
       rpad('a', 50, '-') PURCHASE_ORDER_REVISION,
       SYSDATE PURCHASE_ORDER_DATE,
       SYSDATE TERM_DUE_DATE_FROM_PS,
       0 TERM_RELATIVE_AMOUNT,
       rpad('a', 15, '-') TERM_NAME,
       0 BILL_TO_CUSTOMER_ID,
       0 BILL_TO_CONTACT_ID,
       0 BILL_TO_SITE_USE_ID,
       rpad('a', 40, '-') BILL_TO_LOCATION,
       rpad('a', 360, '-') BILL_CUST_NAME,
       rpad('a', 40, '-') BILL_ADDRESS1,
       rpad('a', 40, '-') BILL_ADDRESS2,
       rpad('a', 40, '-') BILL_ADDRESS3,
       rpad('a', 40, '-') BILL_ADDRESS4,
       rpad('a', 60, '-') BILL_CITY,
       rpad('a', 60, '-') BILL_STATE,
       rpad('a', 60, '-') BILL_POSTAL_CODE,
       rpad('a', 60, '-') BILL_COUNTRY,
       rpad('a', 50, '-') BILL_SITE_TAX_REFERENCE,
       rpad('a', 50, '-') BILL_CUST_TAX_REFERENCE,
       0 TRX_LINE_AMOUNT,
       0 TRX_TAX_AMOUNT,
       0 TRX_FREIGHT_AMOUNT,
       0 TRX_ALL_AMOUNT,
       rpad('a', 360, '-') ORDER_BY,
       rpad('a', 240, '-') BILL_TO_ADDRESS1,
       rpad('a', 240, '-') BILL_TO_ADDRESS2,
       rpad('a', 240, '-') BILL_TO_ADDRESS3,
       rpad('a', 240, '-') BILL_TO_ADDRESS4,
       rpad('a', 60, '-') BILL_TO_STATE,
       rpad('a', 60, '-') BILL_TO_PROVINCE,
       rpad(‘a’, 150, ‘ - ’) our_ref,,
       rpad(‘a’, 150, ‘ - ’) your_ref
  FROM dual
WHERE 1 = 2
UNION ALL &common_query
The bind variable &common_query is accepting the following sql:
'SELECT
' ||:P_SEL_TRX_ID ||'           
CUSTOMER_TRX_ID
' || :P_SEL_TRX_NUMBER  ||'                 
TRX_NUMBER
NVL(TL.SEQUENCE_NUM,1)               
TERM_SEQUENCE_NUMBER 
' || :P_SEL_TRX_TYPE ||' 
TRX_TYPE
,       ' || :P_SEL_TRX_TYPE_NAME||' 
TRX_TYPE_NAME
,       TYPES.ACCOUNTING_AFFECT_FLAG     
OPEN_RECEIVABLE_FLAG
,       ' || :P_SEL_TRX_DATE  ||'       
TRX_DATE
,       SHIP_TO_CUSTOMER_ID                   
SHIP_TO_CUSTOMER_ID
,       SHIP_TO_CONTACT_ID                   
SHIP_TO_CONTACT_ID
,       REMIT_TO_ADDRESS_ID                   
REMIT_TO_ADDRESS_ID
,       A.PRIMARY_SALESREP_ID                 
PRIMARY_SALESREP_ID
,       B.ACCOUNT_NUMBER                     
CUSTOMER_NUMBER
,       A.INTERNAL_NOTES                     
INTERNAL_NOTES
A.BATCH_SOURCE_ID
BATCH_SOURCE_ID
A.COMMENTS
TRX_COMMENTS
,       PREVIOUS_CUSTOMER_TRX_ID             
PREVIOUS_CUSTOMER_TRX_ID
,       SHIP_TO_SITE_USE_ID                   
SHIP_TO_SITE_USE_ID
,       NVL(PRINTING_COUNT,0)                 
PRINTING_COUNT
,       PRINTING_ORIGINAL_DATE               
PRINTING_ORIGINAL_DATE
,       PRINTING_LAST_PRINTED                 
PRINTING_LAST_PRINTED
,       PRINTING_PENDING                         PRINTING_PENDING
,       LAST_PRINTED_SEQUENCE_NUM             LAST_PRINTED_SEQUENCE_NUMBER
,       START_DATE_COMMITMENT                    START_DATE_COMMITMENT
,       END_DATE_COMMITMENT                      END_DATE_COMMITMENT
,       INITIAL_CUSTOMER_TRX_ID                  INITIAL_CUSTOMER_TRX_ID
,       A.INVOICE_CURRENCY_CODE                  INVOICE_CURRENCY_CODE
,       A.TERM_ID      TERM_ID
,       A.SHIP_DATE_ACTUAL                       SHIP_DATE_ACTUAL
,       A.SHIP_VIA                                 SHIP_VIA
,       A.WAYBILL_NUMBER                        WAYBILL_NUMBER
,       A.PURCHASE_ORDER                         PURCHASE_ORDER_NUMBER
,       A.PURCHASE_ORDER_REVISION              PURCHASE_ORDER_REVISION
,       A.PURCHASE_ORDER_DATE                    PURCHASE_ORDER_DATE
,       P.DUE_DATE                                 TERM_DUE_DATE_FROM_PS
,       NVL(TL.RELATIVE_AMOUNT,100)* (100/NVL(T.BASE_AMOUNT,100))         TERM_RELATIVE_AMOUNT
,       T.NAME                    TERM_NAME
,       A.BILL_TO_CUSTOMER_ID                    BILL_TO_CUSTOMER_ID
,       A.BILL_TO_CONTACT_ID                     BILL_TO_CONTACT_ID
,       A.BILL_TO_SITE_USE_ID                    BILL_TO_SITE_USE_ID
,       U_BILL.LOCATION                              BILL_TO_LOCATION
,       NVL(A_BILL.TRANSLATED_CUSTOMER_NAME,PARTY.PARTY_NAME)     BILL_CUST_NAME
,       RTRIM(RPAD(LOC.ADDRESS1,40))      BILL_ADDRESS1
,       RTRIM(RPAD(LOC.ADDRESS2,40) )      BILL_ADDRESS2
,       RTRIM(RPAD(LOC.ADDRESS3,40) )     BILL_ADDRESS3
,       RTRIM(RPAD(LOC.ADDRESS4,40) )      BILL_ADDRESS4
,       LOC.CITY                                BILL_CITY
,       NVL(LOC.STATE , LOC.PROVINCE)   BILL_STATE
,       LOC.POSTAL_CODE                       BILL_POSTAL_CODE
,       LOC.COUNTRY                           BILL_COUNTRY
,       U_BILL.TAX_REFERENCE                     BILL_SITE_TAX_REFERENCE
,       PARTY.TAX_REFERENCE                          BILL_CUST_TAX_REFERENCE
,       ' ||:P_SEL_TRX_LINE_AMOUNT||'        TRX_LINE_AMOUNT
,       ' ||:P_SEL_TRX_TAX_AMOUNT ||'              TRX_TAX_AMOUNT
,       ' ||:P_SEL_TRX_FREIGHT_AMOUNT||'               TRX_FREIGHT_AMOUNT
,       ' ||:P_SEL_TRX_ALL_AMOUNT  ||'               TRX_ALL_AMOUNT
,       ' || L_ORDER_BY || '     ORDER_BY
,      LOC.ADDRESS1      BILL_TO_ADDRESS1
,     LOC.ADDRESS2      BILL_TO_ADDRESS2
,      LOC.ADDRESS3      BILL_TO_ADDRESS3
,      LOC.ADDRESS4      BILL_TO_ADDRESS4
,      LOC.STATE      BILL_TO_STATE
,      LOC.PROVINCE      BILL_TO_PROVINCE
, a.attribute1 as our_ref
, a.attribute2 as your_ref
FROM    ' || :P_TABLE1 || '
WHERE  ' || :P_WHERE1 || '
  ' || :P_USER_WHERE_CLAUSE1 || '
  ' || :P_USER_WHERE_CLAUSE2 || '
  ' || :P_USER_WHERE_CLAUSE3 || '
  ' || :P_MLS_CONDITION || '
  ' || :P_EC_WHERE_CLAUSE || '
        ' || :P_BR_WHERE_CLAUSE || '
        ' || :lp_trx_num_high || '
        ' || :lp_trx_num_low || '
        ' || :lp_trx_date_clause ||'
        ' || :lp_doc_seq_clause|| '
UNION
SELECT   ' || :P_SEL_TRX_ID || '
,  ' || :P_SEL_TRX_NUMBER || '
,  NVL(P.TERMS_SEQUENCE_NUMBER,1)
,   ' || :P_SEL_TRX_TYPE || '
,  ' || :P_SEL_TRX_TYPE_NAME || '
,  TYPES.ACCOUNTING_AFFECT_FLAG
,  ' || :P_SEL_TRX_DATE || '
,  A.SHIP_TO_CUSTOMER_ID
,  A.SHIP_TO_CONTACT_ID
,  A.REMIT_TO_ADDRESS_ID
,  A.PRIMARY_SALESREP_ID
,  B.ACCOUNT_NUMBER
,  A.INTERNAL_NOTES
,  A.BATCH_SOURCE_ID
,  A.COMMENTS
,  PREVIOUS_CUSTOMER_TRX_ID
,  SHIP_TO_SITE_USE_ID
,   NVL(PRINTING_COUNT,0)
,  PRINTING_ORIGINAL_DATE
,  PRINTING_LAST_PRINTED                
,  PRINTING_PENDING                      
,  LAST_PRINTED_SEQUENCE_NUM
,  START_DATE_COMMITMENT
,  END_DATE_COMMITMENT
,  INITIAL_CUSTOMER_TRX_ID
,  A.INVOICE_CURRENCY_CODE
,   A.TERM_ID
,   A.SHIP_DATE_ACTUAL
,  A.SHIP_VIA
,  A.WAYBILL_NUMBER
,  A.PURCHASE_ORDER
,  A.PURCHASE_ORDER_REVISION
,  A.PURCHASE_ORDER_DATE
,  P.DUE_DATE
,   NVL(TL.RELATIVE_AMOUNT,100)*
                 (100/NVL(T.BASE_AMOUNT,100))
,  T.NAME
,  A.BILL_TO_CUSTOMER_ID
,  A.BILL_TO_CONTACT_ID
,   A.BILL_TO_SITE_USE_ID
,  U_BILL.LOCATION                            BILL_TO_LOCATION
,  NVL(A_BILL.TRANSLATED_CUSTOMER_NAME,PARTY.PARTY_NAME)
                         BILL_CUST_NAME
,  RTRIM(RPAD(LOC.ADDRESS1, 40)) 
,  RTRIM(RPAD(LOC.ADDRESS2, 40) )                      
,   RTRIM(RPAD(LOC.ADDRESS3,  40) )                      
,  RTRIM(RPAD(LOC.ADDRESS4 ,  40) )                     
,   LOC.CITY                           
,  NVL(LOC.STATE , LOC.PROVINCE)                         
,   LOC.POSTAL_CODE                    
,  LOC.COUNTRY
,  U_BILL.TAX_REFERENCE
,  PARTY.TAX_REFERENCE
,   ' || :P_SEL_TRX_LINE_AMOUNT || '             
,  ' || :P_SEL_TRX_TAX_AMOUNT || '                
,  ' || :P_SEL_TRX_FREIGHT_AMOUNT  || '     
,  ' || :P_SEL_TRX_ALL_AMOUNT || '             
,   ' || L_ORDER_BY || '
,   LOC.ADDRESS1
,  LOC.ADDRESS2
,  LOC.ADDRESS3
,  LOC.ADDRESS4
,  LOC.STATE
,  LOC.PROVINCE
, a.attribute1 as our_ref
, a.attribute2 as your_ref
FROM   ' || :P_TABLE2 || '
WHERE  ' || :P_WHERE2 || '
  ' || :P_USER_WHERE_CLAUSE1 || '
  ' || :P_USER_WHERE_CLAUSE2 || '
  ' || :P_USER_WHERE_CLAUSE3 || '
  ' || :P_MLS_CONDITION || '
  ' || :P_EC_WHERE_CLAUSE || '
        ' || :P_BR_WHERE_CLAUSE || '
        ' || :lp_trx_num_low || '
        ' || :lp_trx_num_high ||'
        ' || :lp_trx_date_clause ||'
        ' || :lp_doc_seq_clause;
The columns I added are OUR_REF and YOUR_REF which are at the end of the SELECT clause.
Thanks,
A.Stoyanov

Similar Messages

  • Newly added column not displayed in Interactive report

    Hello,
    I have a tableA with 3 columns.In the application i am displaying as Form with Report region as Interactive report(Oracle 10g Application Express 3.2).
    I added one column to tableA.Now when i am refreshing the report by adding that column in the select query,the new added column is not displayed in the application.
    How can i do this so that the added column can be displayed.I dont want to delete the whole thing and redo it again.
    Thanks
    Siya

    Hi Siya,
    The Interactive Report will not show you the newly added columns by default. You have to select those columns from the actions menu and when all the required fields are displayed then save it as the default report.
    Then you will be able to see all the columns.
    Hope this solves your problem.
    Thanks,
    Satish.

  • Stock Requirement List - MD04 - adding columns in this list

    Dear All,
    I am working on the Stock Requirement list ( transactioncode MD04) and the customer wants to add columns with the fields STPO-DATUV ,date of change of a drawing, and the drawing number with revision level STPO-YY_DZEINR.
    There is a badi MD_ADD_COL_EZPS which provides in adding columns, but according the structures MDPSX , MDEZX and MDSUX there are no fields in thoser structures, which directly match with the required fields; somebody has a clue to help me out and get it working.
    For instance: Vendor- and Customer data  can be added by using the pushbuttons and those fields are available from above mentioned structures.
    Thanks in advance and kindest regards,
    Rene.

    Hi Utpal Mishra
    You guessed correctly. I missed to inform our Strategy. We are using Strategy group  11  Make-to-stock prod./gross reqmts plnning.
    User is not able to do PGI or create delivery. He says I have enough stock in MMBE but why system is not allowing.
    Here there are some pending document like -
    1. Pending sales order
    2. Pending deliveries (picking not done)
    2. Delivery created & Picking Done but PGI not done. These things will have a commitment against the stock. But we are interested in getting these document numbers, so that we can take come action against them.
    MD04 simply shows the mrp element as order / delivery but the document number is not available. How to find these documents.
    Please help. Is there any table or a standard transaction ??
    Thanks

  • Discoverer 4i: GL Query caused no data to be received

    Hi,
    E-Business 11.5.10.2 on Windows Server 2003 SP2
    Discoverer 4i
    I've set up Discoverer 4i and am currently using Discoverer Desktop to query the business areas. I can retrieve data from any business area apart from GL.
    When I attempt to query GL I get an error message stating 'Query caused no data to be received'.
    Has anyone encountered this before? Any help greatly appreciated.
    Thanks,
    Mark

    Hi,
    It could be that these GL folders use row level security and the gl_security_pkg is not initialized.
    Try creating a custom folder containing:
    select gl_security_pkg.login_sob_id from dualLog in with the UK GL User responsibility and create a workbook based on this custom folder. If this returns a null row then the GL package is not properly initialized. Check that the "GL Set of Books ID" system profile is set for the responsibility. You can initilalize the package manually by adding the following text into the the "Initialization SQL Statement - Custom" system profile for the responsibility:
    begin
    gl_security_pkg.init;
    end;Hope that helps,
    Rod West

  • Adding column headings

    I am using RAS server to create dynamic columns in my report. But the column headings are not coming.
    Isnt there any way to set the heading for the newly added columns?   
    Any idea what i am missing?   
    Here is a code i am using
        Private Sub AddTableFromDataSet(ByVal ds As System.Data.DataSet, ByVal crTable As CrystalDecisions.ReportAppServer.DataDefModel.ISCRTable)
            ' Add the dataset as a data source to the report
            m_boReportClientDocument.DatabaseController.AddTable(crTable, DBNull.Value)
            m_boReportClientDocument.DatabaseController.SetDataSource(DataSetConverter.Convert(ds), "TEST")
            Dim ifield As Integer
            ' Add a field to the report canvas
            Dim CrField As CrystalDecisions.ReportAppServer.DataDefModel.ISCRField
            For Each dtfield In m_boReportClientDocument.Database.Tables(0).DataFields
                ifield = m_boReportClientDocument.Database.Tables(0).DataFields.Find(dtfield.Name.ToString, CrFieldDisplayNameTypeEnum.crFieldDisplayNameName, CeLocale.ceLocaleUserDefault)
                CrField = DirectCast(m_boReportClientDocument.Database.Tables(0).DataFields(ifield), Field)
                CrField.HeadingText = CrField.Name
                CrField.Description = "TEST"
                m_boReportClientDocument.DataDefController.ResultFieldController.Add(-1, CrField)
            Next
        End Sub
    Thanks in advance

    You either have to add the heading yourself, or you can use
    reportClientDoc.ReportDefController.ReportObjectController.AddByName("{Orders.OrderID}", "OrderID")
    This doesn't let you set anything about the objects, so it would probably be better to add them separately.

  • Adding columns in the matrix

    Hai ,
    I am adding the columns in an existing matrix at runtime in page load.
    I can able to add but how to give the header text for the columns added?
    I tried with the following code,
    oMatrix.Columns.Item("ItemMake").Title = "Make";
    but it gives  the error as,
    "property or indexer 'SAPbouiCOM.IColumn.Title' cannot be assigned to -- it is read only"
    and also i want the added column to be displayed in the first position.
    Regards,
    Kughan.

    Hi,
    Then i recommend u to create a UDF in the marketing document section. So that in the PO matrix u can get a new col. And for creating the UDF u can do it in SAP UI using.. Tools->Customization Tools->User defined Fields management or u can also do it in code C:\Program Files\SAP\SAP Business One SDK\Samples\COM DI\VB.NET\02.MetaDataOperations Check that sample for code.
    Hope it helps,
    Vasu Natari.

  • Specify the location for any newly added column

    Hi friends,
    Is it possible in Oracle to specify the location for any newly added column. why it always goes to
    the last , I want to add a new column at first.
    If it is possible and anybody knows please tell me.
    Thanks & Regards
    Chandrakishore Bankhede

    Hi Chandrakishore,
    Not exactly a spatial question but the answer is "no" as far as I am aware.
    TOAD for Oracle has a nice feature called "Rebuild Table" that provides a GUI interface for redefining and moving columns around. Basically it generates all the required DDL for you - it saves all the constraints, indexes, triggers, etc. Then it creates a new table with your changes, renames the old table with a suffix and replaces all the constraints, indexes, triggers on the new table. Most helpful.
    However - see this makes the post spatial in nature :) - for as long as I have been around this feature of TOAD has not been able to handle SDO_GEOMETRY columns - failing with "ORA-22917: use VARRAY to define the storage clause". The good news is the new TOAD 10 now is free of this bug.
    This is not meant to be a commercial for TOAD, I just don't know of any other product with this feature. Others may know of similar things perhaps or you can write a function yourself in PL/SQL.
    Cheer,
    Paul

  • Update beans after adding columns to DB tables

    I am trying to use JDeveloper 10G , Studio Edition Version 10.1.3.0.4.3673
    I am having difficulty finding out how to update CMP Entity Beans
    after adding columns to DB tables.
    I have found descriptions of how to do these from four sources.
    None of these methods work.
    They all refer to menu options, buttons or fields that aren't in the JDevb IDE.
    List of options that don't exist :
    "Synchronize with Database"
    "attributes"
    "Add from table"
    "New from Table"
    "Fields Tab"

    What version of EJBs are you using?
    The only option I know of for EJBs will be to generate the bean from the table again, or manually add the field to the EJB.
    The "Synchronize with Database" operation is there for ADF Business Components but not for EJBs.

  • Adobe Acrobat - rename form field

    I'm a newbie to Automator but it seems like this should work. I need to automate the renaming of lots and lots of fields in a form. I started a workflow that opens the PDF. Then I used the "Record" button in Automator to watch me click on the Form menu bar item in Acrobat and select "Edit Form in Acrobat". I ran the workflow up to this point and it works fine. Then I use the "Record" button again and it watches me select a field in the form by clicking it. Again no problems. Finally I attempt to use the "Record" button to rename the field. It breaks every time. I try "Control Clicking" the field and selecting "Properties" from the contextual menu. Then renaming the field and clicking the close button. It breaks. I try selecting the Field and then clicking the Form menu bar item and selecting "Show Field Properties", renaming the field and clicking the close button. It breaks. I try double clicking the Field, which causes the Properties window to open, renaming the Field and clicking the close button. It breaks. What gives? If I can do this manually it seems like the Record functionality in Automator ought to be able to do it???? I'm running Snow Leopard and using Adobe Acrobat Professional 8 on a MacBook.

    OK it appears that selecting the field is what breaks the automation. If I set up the automation to click on the field or drag to select it the automation breaks. If I let the automation run and then move the mouse, the field that I selected in the automation gets dragged around the page. It's like I clicked on the field and held the button down so I could drag it. Same thing happens if I double click the field. Strange....

  • Renaming Form Fields

    How does one rename contact fields within a Muse form widget?
    I am customizing a form according to a client's wishes, which don't follow the default order of the widget. For example, I've renamed the email field to be the address field following the client's preferred order. The problem is Muse still recognizes it as the email field and expects an email address to be input to function properly.
    Also, I have custom text fields to include that aren't found within the default form widget.
    Can forms from the widget library be customized as I wish?
    Thank you.

    Hello,
    You can do this by adding custom fields. Please look at the screenshot below.
    Regards
    Vivek

  • How to make added columns to be visible by default in interactive report?

    Hi,
    I've added two columns to an interactive report.
    When I run the page, the added columns are not visible.
    Then I made them visible through 'Select Columns' option.
    But next time when I log in those two columns are again invisible.
    How can I make the added columns to be visible by default in the interactive report?
    Thanks,
    Guy

    Hi Steve,
    I am ahving a similar issue.After I migrated my classic report to interative report, I have added few columns to the SQL query...I am not anle to see these in the report..I deint understand the solution u gave here..Can you please elaborate..
    Where can I include the "actions" option? and how do I use the Save Action.
    Can you please provide more details.
    Thanks in Advance

  • Urgent : newly added columns copying each other

    I am adding columns to jtable. And then moving it to required postion.
    But whenever I edit those columns all the newly added columns and the first column reflects those changes. ie whatever I enter in the new columns, it appears in all newly added columns and the first column as well. I am using new instance of column each time so whats wrong I am doing here.
    EditableHeaderTableColumn ncol = new EditableHeaderTableColumn();
    TableColumnModel columns = table.getColumnModel();
    int c = table.getSelectedColumn();
    columns.addColumn(ncol);
    columns.moveColumn(i-1, c+1);

    the column header has a combobox and user can enter his own value as well if reqd.
    I will check ur code at work later and see whats happenning.
    But is editable header a problem?
    thanks
    to tjacobs01 : I didn't get your question. could you please elaborate a little.
    What's you EditableHeaderTableColumn class do? Do you
    allow the user to modify the column header value?
    Anyway, here's an example that adds columns as you
    appear to want to, check it oput ans see if there are
    any steps you missed in your code.
    import java.awt.BorderLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JTable;
    import javax.swing.JFrame;
    import javax.swing.JButton;
    import javax.swing.JTextField;
    import javax.swing.JScrollPane;
    import javax.swing.JPanel;
    import javax.swing.table.TableColumn;
    import javax.swing.table.AbstractTableModel;
    public class TableColumnTest
         static int sColumnCount= 4;
         public static void main(String[] argv)
    final JTable table= new JTable(new
    w AbstractTableModel() {
                   public String getColumnName(int column) {
                        return "C" +column;
                   public int getColumnCount() {
                        return sColumnCount;
                   public int getRowCount() {
                        return 10;
                   public Object getValueAt(int row, int column) {
                        return "(" +row +"," +column +")";
              final JTextField field= new JTextField("2", 2);
              JButton btn= new JButton("Add column at position");
              btn.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e) {
                        int position;
                        try {
                             position= Integer.parseInt(field.getText());
                        catch (NumberFormatException nfe) {
                             position= sColumnCount;
                        position= Math.min(position, sColumnCount);
                        field.setText(String.valueOf(position));
    TableColumn column= new
    new TableColumn(sColumnCount);
                        column.setHeaderValue(
                             table.getModel().getColumnName(sColumnCount));
                        table.getColumnModel().addColumn(column);
    table.getColumnModel().moveColumn(sColumnCount,
    nt, position);
                        sColumnCount++;
              JPanel panel= new JPanel(new BorderLayout());
              panel.add(btn, BorderLayout.CENTER);
              panel.add(field, BorderLayout.EAST);
              JPanel container= new JPanel(new BorderLayout());
              container.add(panel, BorderLayout.WEST);
              JFrame frame= new JFrame("TableColumnTest");
    frame.getContentPane().add(container,
    , BorderLayout.NORTH);
    frame.getContentPane().add(new JScrollPane(table),
    , BorderLayout.CENTER);
              frame.pack();
              frame.setDefaultCloseOperation(3);
              frame.setVisible(true);

  • Adding Columns to the matrix in SAP B1 user form using Visual studio 2010

    Hi,
    Using Visual studio 2010, I have created a SAP B1 user form( b1f ) with one matrix.Matrix is having 5 columns. Its working properly. Later, I want to add few more columns. Then I added columns to the matrix as I have created columns initially. But, it does not saves.
    i.e, Whenever I run, In B1 I could see only old columns. Newly created columns are not showing.So, I closed the .net project and opened again. Created columns are not showing in visual studio b1f itself. So, I created again and saved. But, its not saving.I tried it many times.
    What I am missing?
    Any help is appreciated.
    Thanks in advance,
    Parvatha Solai.N

    Hi Parvatha,
    Are you using B1 Studio? Anyway try to clean the solution first then rebuild it. This would re-copy files to the output directory, that contain your changes.
    Best regards,
    Pedro Magueija

  • When adding columns, why do I get overrides on style?

    Hi all,
    When I'm adding columns in a certain document I end up with the new columns having overrides on them. How can I avoid this?
    The columns I added are seen in the middle.
    As you can see the they all get a "shift down" by -22 pt.
    I use this shift down on some other place in the document, but the table columns are clean from that kind of override, and just by selecting a column and adding 4 new columns "to the right" of that column, I would expect the new ones to get the exact same properties as the one selected.
    Can anyone try to explain what might be wrong with my document or way of working?
    Adding info: It seems there's something in the styles - many properties on them... This has noting to do with cells specifically. Just adding a textbox results renders the text this way as well, with the baseline shift (only no override symbol).
    Best regards,
    Andreas

    Ah... now I get it. The default styles of the document were set to a specific paragraph style and another character style.
    Setting the defaults to [Basic Paragraph] and None respectively seems to put everything in order.
    (You set a default by clicking outside the document so that nothing is selected, and then you select the styles [Basic paragraph] and None)
    Case closed.

  • Discoverer 10.1.2 does not refresh new added column

    Hello,
    I need help to add a new item to EUL Business Area folder for a new added column in the database table.
    When I refresh the folder in the BA EUL, the result shows no difference between the folder and the underlying table in the database; however, when I quey the table in the database, a new column is there. The refresh of the folder in the Discoverer Admin tool cannot find the newly added column. Weird!! The first time saw this problem.
    Could someone shine some light on it? Would be really appreciate it!
    Ping

    I have a slightly different problem and can't solve it! When I refresh the EUL, the result shows the differences between the folder and the underlying tables in the database. However, it does not refresh the EUL in Discoverer Administrator 10g. Nothing happens! When I try to refresh again, the same list is shown... Does anyone know what could be happening?
    Thanks

Maybe you are looking for

  • Final Invoice Automatic complete

    Hi All, How to put automatically final invoice flag in PO and close PO automatically by system? Best Regards Lovkesh

  • FFMPEG screencast is not working for WoW under Wine (AMD Catalyst)

    Hi all. I'm trying to record game video using ffmpeg, but each time when I actually switch my focus to the game window, the picture freezes. Here is the example: http://www.youtube.com/watch?v=r4kfKpgcTAE This is World of Warcraft running under wine.

  • Advice and Internet Software Applications for iBook G3?

    Ok, So I did it late last night, or technically early this morning... I went and bought a Refurbished MacBook - Black 2.0GHz Core Duo with 512mb RAM (in 2x265 sticks which I am replacing with 2x1gb sticks purchased from TigerDirect at the same time)

  • SourceFire - Adding a License to the Defense Center

    To add a license:  1. Using Defense center Web portal login with Admin access 2. Select System > Licenses, Click Add New License. The Add License page appears. 3. Copy the license from the email, paste it into the License field, and click Submit Lice

  • Work on .an files on different computers

    I created an animation in Edge on my PC. Later when I went to continue working on the file on my laptop, it would not load, and I got an error message sating that the .an file could not load as the associated html file could not be found, even though