Removed column on Answers

Hi experts! Sometimes...I have a problem when I do a reports with "combine with similar requests" and add Auxiliar column to get conditional format colour...
I have this tables normally, adding some dimensions, measures...and sometimes...when I save my report and I come back to edit something...I see that I can't modify data format for example (in a measure) or conditional format is: Removed column is equal to green or red... So my reports works fine on dashboard but I can't modify format...for example if I must to change a name of column I can't because when I save and go to dashboards I see this error:
View Display Error
Invalid Handle Of 'PKN3saw17WebValueFormatterE' Exception
Error Details
Error Codes: Q4NU7XSN
Only if I change something of format report I see this error!!! If I change a formula on criteria, works fine...but in this case I have to change a column label and I don't want to begin my report again to get it.
Anybody can tell me how can avoid this "removed column" ???
Thank you!!

By legacy date i mean target resolution date
***Don't forget to mark helpful or answer***

Similar Messages

  • Add and remove columns from JTable

    Help me please!
    A try to remove column from JTable. It's removed, but when I try to add column in table, then I get all old (removed early) columns + new column....
    I completely confused with it.....
    Here is my code for remove column:
    class DelC implements ActionListener
              public void actionPerformed (ActionEvent e )
                   int [] HowManyColDelete = table.getSelectedColumns();
                   if (HowManyColDelete.length !=0)
                        TableColumnModel tableCModel = table.getColumnModel();
                        for (int i = HowManyColDelete.length-1; i>-1; i--)
                             table.getColumnModel().removeColumn (tableCModel.getColumn (HowManyColDelete [ i ]));
                   else
                          JOptionPane.showMessageDialog(JOptionPane.getRootFrame(), "Column is not selected!");
         }

    It's little ex for me, I just try understand clearly how it's work (table models i mean). Here is code. All action with tables take place through menu items.
    My brain is boiled, I've try a lot of variants of code, but did't get right result :((
    It's code represent problem, which I've describe above. If you'll try remove column and then add it again, it will be ma-a-a-any colunms...
    I understand, that my code just hide columns, not delete from table model....
    But now I have not any decision of my problem...
    Thanks a lot for any help. :)
    import javax.swing.*;
    import java.awt.*;
    import javax.swing.table.*;
    import java.awt.event.*;
    import javax.swing.table.DefaultTableModel;
    class JTableF extends JFrame
         Object [] [] data = new Object [0] [2];
         JTable table;
         DefaultTableModel model;
         String [] columnNames = {"1", "2"};
         TableColumnModel cm;
         JTableF()
              super("Table features");
              setDefaultLookAndFeelDecorated( true );
              setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
              JMenuBar MBar = new JMenuBar();
              JMenu [] menus =  {new JMenu("A"), new JMenu("B")};
              JMenuItem [] menu1 =  {new JMenuItem("Add row"), new JMenuItem("Delete row", 'D'),  new JMenuItem("Add column"), new JMenuItem("Delete column")};
              menu1 [ 0 ].addActionListener(new AddL());
              menu1 [ 1 ].addActionListener(new DelL());
              menu1 [ 2 ].addActionListener(new AddC());
              menu1 [ 3 ].addActionListener(new DelC());
              for (int i=0; i<menu1.length; i++)
                   menus [ 0 ].add( menu1 [ i ]);
              for (int i=0; i<menus.length; i++)
                   MBar.add(menus );
              JPanel panel = new JPanel ();
              model = new DefaultTableModel( data, columnNames );
              table = new JTable (model);
              cm = table.getColumnModel();
              panel.add (new JScrollPane(table));
              JButton b = new JButton ("Add row button");
              b.addActionListener(new AddL());
              panel.add (b);
              setJMenuBar (MBar);
              getContentPane().add(panel);
              pack();
              setLocationRelativeTo (null);
              setVisible (true);
         class DelC implements ActionListener
              public void actionPerformed (ActionEvent e )
                   int [] HowManyColDelete = table.getSelectedColumns();
                   if (HowManyColDelete.length !=0)
                        TableColumnModel tableCModel = table.getColumnModel();
                        for (int i = HowManyColDelete.length-1; i>-1; i--)
                             int vizibleCol = table.convertColumnIndexToView(HowManyColDelete [ i ]);
                             tableCModel.removeColumn (tableCModel.getColumn (vizibleCol));
                        //cm = tableCModel;
                   else
                        JOptionPane.showMessageDialog(JOptionPane.getRootFrame(), "Column is not selected!");
         class AddC implements ActionListener
              public void actionPerformed (ActionEvent e)
                   //table.setColumnModel(cm);
                   Object NewColumnName = new String();
                   NewColumnName = JOptionPane.showInputDialog ("Input new column name", "Here");
                   int i = model.getRowCount();
                   int j = model.getColumnCount();
                   Object [] newData = new Object [ i ];
                   model.addColumn ( NewColumnName, newData);
         class AddL implements ActionListener
              public void actionPerformed (ActionEvent e)
                   int i = model.getColumnCount();
                   Object [] Row = new Object [ i ];
                   model.addRow ( Row );
         class DelL implements ActionListener
              public void actionPerformed (ActionEvent e)
                   int [] HowManyRowsDelete = table.getSelectedRows();
                   if (HowManyRowsDelete.length !=0)
                        for (int k = HowManyRowsDelete.length-1; k>-1; k--)
                             model.removeRow (HowManyRowsDelete[k]);
                   else
                        JOptionPane.showMessageDialog(JOptionPane.getRootFrame(), "Row is not selected!");
         public static void main (String [] args)
              javax.swing.SwingUtilities.invokeLater(new Runnable()
                   public void run()
                        JTableF inst = new JTableF();

  • Adding/removing columns in jtable

    Hello everyone,
    i was looking for a way to add/remove columns from a jtable. The way i envision it working is... Initially have a predefined number of columns, of these only show the user say 5 of those on startup. but then provide a drop down (or list box etc) of the other column headings, so that when the user selects one... it adds it to the jtable. also to remove ..... is there a way to have a pop-up when the user right-clicks the table header and put a option to remove that column there? if not what is the best way to trigger a remove of a column? So i need a way to keep track of all the columns in case the user wants to add it again. anyone know how this can be done or any part of it?

    I need a intutive way for the user to remove a column from the gui (like with adding could be a dropdown box with column headers as labels).Create a custom ComboBoxModel. This model would simply contain TableColumns and display the header value in the combo box. The first combo box would display the currently showing columns. When you click on an item in the combo box:
    a) remove the TableColumn from the TableColumnModel
    b) remove the TableColumn from the model
    c) add the TableColumn to the "hidden" combo box model
    The same basic logic (but in reverse) would then apply when you click on the "hidden" combo box.

  • Removing columns heading for a perticular page in ALV list display

    Dear All,
    For last page of my ALV list display i need to remove columns heading (Strictly for single page only).
    Kindly help me with possible solution.
    I am triggering page break by  using group attribute in the sort catalogue.(  l_v_sortcat-group     = '* '. )
    Best Regards
    Ravishekar Thallapally

    if u can catch the page number,
    while building fieldcat, put the condition
    if sy-page = (page number)
    ls_fielcact-fieldname = fieldname.
    ls_fieldcat-tech = 'X'.
    LS_FIELDCAT-NO_OUT = 'x'.
    modify lt_fielcat from ls_fieldcat.
    but how r u catching page number?? can u pls tell
    endif.
    Message was edited by: Hymavathi Oruganti

  • Hide/remove column  in adf pivot table

    Is it somehow possible to hide or to remove column (I need to hide agregate column, but is it possible for regular data cell) dynamically when some conditions are met? I've tried getDataFormat and getheaderFormat methods to set width of the columns to 0, but it doesn't work. Also I've tried to set rawvalue of data cell to null/"" and width to 0 but without success to hide column. Problem applies to adf pivot table 11g.
    Thank You!

    HI,
    You have the option for the column as to be suppress or repeat
    Go to column properties and go to column format second tab select the option Suppress.
    Regards,
    VG

  • AddColumn() make removed column visible again. Pls help. :)

    I have a JTable which I need to remove and add column.
    // declaration of table and tablemodel
    DefaultTableModel tableMod = new DefaultTableModel (data, col);
    // data is Object[][] type, col is String[] type
    myTable = new JTable(defaultTableModel );
    DefaultTableColumnModel columnMod = (DefaultTableColumnModel)myTable.getColumnModel();
    My remove column code is :
    columnMod.removeColumn(columnMod.getColumn(1));
    My add column code is :
    tableMod.addColumn("three");
    My problem is : say my table has 2 columns initially
    "one" "two"
    after removeColumn(), the column will disappear from the JTable. like this
    "one"
    but when I addColumn() later, the removed column will appear again. like this
    "one" "two" "three"
    I think the problem is DefaultTableColumnModel is used to removeColumn but DefaultTableModel is used to addColumn, resulted in some kind of discrepancy, how to go about this? I know I can do perform addColumn() and removeColumn() on JTable, something like :
    remove -
    myTable.removeColumn(myTable.getColumnModel().getColumn( myTable.getSelectedColumn() ) );
    add -
    addedColumn = new TableColumn()
    myTable.addColumn(addedColumn);
    But when I do this addedColumn has a modelIndex of 0 , and anychanges to addedColumn will be reflected on first column(because modelIndex is 0) as well...which is what I don't want.
    Hope I'm making sense, any help appreciated.

    Ok, so heres my gripe with actually removing a column from a JTable : A JTable rebuilds its entire column model when it gets certain events (e.g. if the table model calls fireTableStructureChanged). This makes it unreliable to remove columns from the table by the method you give (though im not saying it cant be done, feel free to pursue that avenue if you like). Im just saying a more reliable way to do it is to have you own table model that knows exactly what the columns are to be in the JTable at any time. This way if the JTable rebuilds it column model it wont remake a column you removed.
    So heres the basics of removing and adding a column by changing the table model :
    A table model (derived from AbstractTableModel) needs to have three functions:
    public int getRowCount();
    public int getColumnCount();
    public Object getValueAt(int row, int column);So if you're at a time when you only want one column, getColumnCount() should return 1. If you want to say add two columns, then have getColumnCount() return 3. You would then also need to change what gets returned by getValueAt() so that it tells what is in the three columns appropriately. Also, whenever the number of columns is changed, you would need to fireTableStructureChanged(), to let the table know to rebuild it column model, with or without the columns you want added/removed.
    That is exactly what is done in the other post. I don't mean to not directly answer your question, i just don't think that removing and adding columns like that is how JTable is meant to be used, in MVC architechure. I dont really have any information about adding and removing columns because I've never even attempted to change a table that way. All i can say to that is that you have to figure out how JTable works, which I would try putting tons of System.out() calls telling me exactly what the column model looks like after certain changes(it indexes, etc..).
    Well i hope this helps in some small way...
    Josh

  • Remove columns

    Hi
    If i want to remove a column from the call list from all users. Like attempts. I can`t find any direct configuration. But is the only way to configure it in the program?
    Regards
    Mark

    Hi,
    Use the configuration functionality on the Web UI and SAP itself will give the configuration screen to configure the views...( Remove columns)
    Let me know if you need more info
    Regards,
    Piyush

  • Need to Add and Remove Columns of ADF Read Only table from Backing bean

    I have a scenario where I am trying to Populate TransientVO which is shown has a ADF Read Only Table in page.
    I have couple of Check Boxes Based on their selection I am trying to render and hide certain Columns.
    But the Issue which I am facing is only the Column Header seems to change where as the Rows and Values doesnt..
    even If I apply the expression language rendering condition on the outputText inside those columns.. ..
    So I am thinking to add and remove VO Attribute columns to the table from backing bean.
    Need some sample code snippet or a better design to achieve this. Its kind of urgent too...having an aggressive deadline :(
    Please chip in People..
    Thanks in Advance .
    TK

    Table Code..
    <af:table value="#{bindings.InventoryGridTrans.collectionModel}"
                                    var="row"
                                    rows="#{bindings.InventoryGridTrans.rangeSize}"
                                    emptyText="#{bindings.InventoryGridTrans.viewable ? 'No data to display.' : 'Access Denied.'}"
                                    fetchSize="#{bindings.InventoryGridTrans.rangeSize}"
                                    rowBandingInterval="0" id="t4"
                                    partialTriggers="::sbcSales ::sbcUsage ::cb1">
                            <af:column sortProperty="Period" sortable="false"
                                       headerText="#{bindings.InventoryGridTrans.hints.Period.label}"
                                       id="c38">
                              <af:outputText value="#{row.Period}" id="ot33"/>
                            </af:column>
                            <af:column sortProperty="Past12SalesCount"
                                       sortable="false"
                                       headerText="#{bindings.InventoryGridTrans.hints.Past12SalesCount.label}"
                                       id="c29"
                                       rendered="#{backingBeanScope.IndexPageBackingBean.onUsage != true and backingBeanScope.IndexPageBackingBean.onSales == true}">
                              <af:outputText value="#{row.Past12SalesCount}"
                                             id="ot40"
                                             rendered="#{backingBeanScope.IndexPageBackingBean.onUsage != true and backingBeanScope.IndexPageBackingBean.onSales == true}"
                                             visible="#{backingBeanScope.IndexPageBackingBean.onUsage != true and backingBeanScope.IndexPageBackingBean.onSales == true}">
                                <af:convertNumber groupingUsed="false"
                                                  pattern="#{bindings.InventoryGridTrans.hints.Past12SalesCount.format}"/>
                              </af:outputText>
                            </af:column>
                            <af:column sortProperty="Past12UsageCount"
                                       sortable="false"
                                       headerText="#{bindings.InventoryGridTrans.hints.Past12UsageCount.label}"
                                       id="c40"
                                       rendered="#{backingBeanScope.IndexPageBackingBean.onUsage == true and backingBeanScope.IndexPageBackingBean.onSales != true}"
                                       visible="#{backingBeanScope.IndexPageBackingBean.onUsage == true and backingBeanScope.IndexPageBackingBean.onSales != true}">
                              <af:outputText value="#{row.Past12UsageCount}"
                                             id="ot47"
                                             rendered="#{backingBeanScope.IndexPageBackingBean.onUsage == true and backingBeanScope.IndexPageBackingBean.onSales != true}"
                                             visible="#{backingBeanScope.IndexPageBackingBean.onUsage == true and backingBeanScope.IndexPageBackingBean.onSales != true}">
                                <af:convertNumber groupingUsed="false"
                                                  pattern="#{bindings.InventoryGridTrans.hints.Past12UsageCount.format}"/>
                              </af:outputText>
                            </af:column>
                            </af:column>
                    </af:table>

  • Remove column heading in a pivot table without columns

    I have a pivot table which only has rows and measures. But It doesn’t have any column.
    It shows at the top a light grey cell (see attached image https://drive.google.com/file/d/0B1mQC-zTrijUSmtXWEFEaHB1cEU/edit?usp=sharing
    How could I remove that?
    Column properties – labels of column are already disabled.
    OBIEE 11.1.1.7.0
    Regards,
    Víctor

    Hey Victor,
    I'm unable to view that file also...
    Just curious, if you don't have anything in the column section of the pivot, why not just use a table?
    If this is going onto a dashboard the quick and dirty approach is just to make a small CSS change, just throw something like the following into a text object.
        <style>
          .PTCHC0 {border:0px; background-color: #FFFFFF; background-image:none;}
        </style>
    JB

  • Remove Column Headers from a JTable in a JScrollPane

    Hi,
    I'm just wondering how to remove the column headers from a JTable in a JScrollPane.

    Here are two ways to do it, with different visual outcomes...
    import javax.swing.*;
    public class Test {
        public static void main(String[] args) {
            Object[][] rowData = {{"A", "B"}, {"C", "D"}};
            Object[] columnNames = {"col 1", "col 2"};
            JTable table1 = new JTable(rowData, columnNames);
            table1.getTableHeader().setVisible(false);
            JScrollPane sp1 = new JScrollPane(table1);
            JTable table2 = new JTable(rowData, columnNames);
            final JScrollPane sp2 = new JScrollPane(table2);
            JPanel contentPane = new JPanel();
            contentPane.add(sp1);
            contentPane.add(sp2);
            final JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.setContentPane(contentPane);
            f.pack();
            SwingUtilities.invokeLater(new Runnable(){
                public void run() {
                    sp2.setColumnHeader(null);
                    f.setLocationRelativeTo(null);
                    f.setVisible(true);
    }

  • How to remove column name in select clause

    Hello Guys,
    I just want to remove a column name in select clause. Because, I don't want to write all column names. I hope I express myself.
    In other words, I want the following.
    Select   * - unwanted_column  from table;
    instead of this
    Select col1, col2, col3, col4, ........ col 10000 from table;

    Hi,
    Sorry, there's nothing in SQL that means "all columns *except* ...". As the others have said, the only way to get those results in SQL is to list all the columns you do want.
    Your front end may have some feature that allows you to hide a specific column. For example, in SQL*Plus, you can use <tt> COLUMN ... NOPRINT </tt> , like this:
    COLUMN      dname     NOPRINT
    SELECT       *
    FROM       scott.dept
    ORDER BY  dname
    ;Output:
    `   DEPTNO LOC
            10 NEW YORK
            40 BOSTON
            20 DALLAS
            30 CHICAGOThere is a column called dname in the scott.dept table; the query above actually uses it. But, because of the COLUMN command, SQL*Plus won't display that column.
    Edited by: Frank Kulash on Feb 26, 2013 10:10 AM
    Changed scott.dept example.

  • Remove Column in Standard Search Help(SAKO)

    Hi Experts,
    I have a requirement in that i have to hide some column in SAKO search help i tried all the posibilities in search help exits
    but couldn't find any way to remove its just going from header selection in search help pop up (input field n its lable)
    but column not get removed.
    kindly suggest me the way.
    ENHANCEMENT 1  ZFI_NOR_ENH_SAKO.    "active version
    * Execution Criteria : On F4 Help                                      *
    * MODIFICATION HISTORY:                                                *
    * Correction No.  Name          Date       Description                 *
    * Begin of Insertion WIW ID -KPANDE |<Project ID> 10000265851 |<Date>21-02-2011|<Transport request>
    tables : ZNOR_USERS.
      data : wa_shlp_tab like line of shlp_tab.
      data : wa_interface like line of shlp_tab-interface.
      data : wa_fielddescr like line of shlp_tab-fielddescr.
      data : wa_fieldprop like line of shlp_tab-fieldprop.
    * Check whehter the Logon User is a NOR Users
    select single * from ZNOR_USERS where NOR_WIW_ID = sy-uname.
      if sy-subrc is initial.
        if callcontrol-step = 'SELONE'.
          if sy-subrc is initial.
         READ TABLE SHLP_TAB INTO WA_SHLP_TAB WITH KEY SHLPNAME = 'GL_ACCT_CA_TEXT'.
         IF SY-SUBRC IS INITIAL.
             LOOP AT WA_SHLP_TAB-INTERFACE INTO WA_INTERFACE.
              IF WA_INTERFACE-SHLPFIELD = 'MCOD1'.
              DELETE WA_SHLP_TAB-INTERFACE INDEX SY-TABIX.
              ENDIF.
            ENDLOOP.
             LOOP AT WA_SHLP_TAB-FIELDDESCR INTO WA_FIELDDESCR.
              IF WA_FIELDDESCR-FIELDNAME = 'MCOD1'.
                DELETE WA_SHLP_TAB-FIELDDESCR INDEX SY-TABIX.
              ENDIF.
            ENDLOOP.
                LOOP AT WA_SHLP_TAB-FIELDPROP INTO WA_FIELDPROP.
              IF wA_FIELDPROP-FIELDNAME = 'MCOD1'.
                DELETE WA_SHLP_TAB-FIELDPROP INDEX SY-TABIX.
              ENDIF.
            ENDLOOP.
              MODIFY SHLP_TAB FROM WA_SHLP_TAB INDEX SY-TABIX.
         ENDIF.
        READ TABLE SHLP_TAB INTO WA_SHLP_TAB WITH KEY SHLPNAME = 'GL_ACCT_CC_TEXT'.
         IF SY-SUBRC IS INITIAL.
             LOOP AT WA_SHLP_TAB-INTERFACE INTO WA_INTERFACE.
              IF WA_INTERFACE-SHLPFIELD = 'MCODF'.
              DELETE WA_SHLP_TAB-INTERFACE INDEX SY-TABIX.
              ENDIF.
            ENDLOOP.
             LOOP AT WA_SHLP_TAB-FIELDDESCR INTO WA_FIELDDESCR.
              IF WA_FIELDDESCR-FIELDNAME = 'MCODF'.
                DELETE WA_SHLP_TAB-FIELDDESCR INDEX SY-TABIX.
              ENDIF.
            ENDLOOP.
                LOOP AT WA_SHLP_TAB-FIELDPROP INTO WA_FIELDPROP.
              IF WA_FIELDPROP-FIELDNAME = 'MCODF'.
                DELETE WA_SHLP_TAB-FIELDPROP INDEX SY-TABIX.
              ENDIF.
            ENDLOOP.
             MODIFY SHLP_TAB FROM WA_SHLP_TAB INDEX SY-TABIX.
         ENDIF.
    ENDENHANCEMENT.
    *$*$-End:   (1)---------------------------------------------------------------------------------$*$*
    thnx..
    ketan...

    The seach help exit is to adjust input and output parameters and there selction
    @Dhiraj: Not true (again).
    To the OP, I'm not sure why you would want to remove such a useful function from the screen.  However, you can overtake the selection and display process entirely with a search help exit if that's your desire.  For more information, read the documentation on search help exits.

  • Customizing Audit Log Report - Adding/Removing Columns from Display

    Hi All -
    Has anyone tried adding/removing the columns from Out of Box Auditi Log report with minor customizations to the code/configuration files ? Right now , when the Audit Log report is executed, there are numbe of columns that appear on report (Server, Client IP etc) which are too technical for the client and requirement is remove some of these and add some more for the attributes that we are audit logging through Audit workflow service. If you have done something similar in the past, please provide me with some inputs. Any sample code, examples will be highly appreciated.

    Hello Gurus,
    I also have same kind of requirement.WE have to send a monthly report to customer where number of users created and deleted to be given to them.
    Its urgent.Please help
    Thanks in advance

  • Is it possible to see list history (e.g: which user removed column from list)

    Hello there,
    I know it is possible to see version history of items and pages, but what about the lists itself?
    For example:
    Is it possible to see which user added/removed a column from a list?
    Is it possible to see which user changed a certain view from a list?
    Thanks in advance!

    There's an auditing event fired when a user modifies content types or columns in a list. To make use of this you'll need to enable auditing if it's not already enabled.
    I'm not sure about the view and I'm having trouble trying to find information about it because most of the documentation talks about VIEWing the audit reports. :)
    Jason Warren
    @jaspnwarren
    jasonwarren.ca
    habaneroconsulting.com/Insights

  • Remove Column Headers in FlexUi Layout

    HI,
    I am displaying a Km folder using flexui layout....I am using the following components,
    Layout Controller:GridListLayoutController
    and the modifed versions of ConsumerFileListRenderer and ConsumerResourceRenderer.
    The resources are getting displayed as list items, but I want to remove the column headers.
    Please help me!
    Regards,
    Sandip

    Hi Sandip,
    You should try to use 'noTitle' modifier for displayed properties of your resources on the list. Column header will be not shown for properties with this modifier. Here is na example:
    description(noTitle),
    Column with description property will be shown without header.
    Regards,
    Michal

Maybe you are looking for

  • Redeem code won't work for mountain lion

    I purchased mountain lion and apple sent me a link with content code but the content code will not work or allow me to download lion.  I type it in the redeem box but it says to go to app store.  I don't understand.

  • My camera freezes Everytime I open it. What could I do?

    Help me!

  • Recommend books

    Dear all, I am new to java programming. but I know VB.Net. I want to find a book that mentions dbgrid. Similar to .Net, (1) how can I insert check box or linkbutton in dbgrid. (2) learn more about dbgrid and event handling. (3) more about database pr

  • Using DPS analytics

    Are visits/sessions from the Web Content Viewer recorded in the DPS analytics? If so is there a view that shows which visits are through the App vs. the Web Content Viewer?

  • Availability check for multilevel BOM

    Hi friends, is a Availability check for multilevel BOM in SAP-ERP possible regards Markus Streif