Show Hide Columns

Is there a way in which columns can be hidden from the resulting html report.
I guess to bring them back you would have to click on show all, or something like that ?
It would be like accessing setting a show/hide checkbox in the Report Attributes but in this case allowing the user to make the choice.
Any ideas would be appreciated

Mark,
One way of doing this would be to make the columns conditionally displayed. You could then write a condition that e.g. checks the value of a page item being yes or no. The page item could be set by the user. So you could have a radio group, or button, or select list to turn off or turn on columns within your application.
Regards,
Marc

Similar Messages

  • How to make a layer from the ADF pivot table invisible , show-hide column-row-data

    Hello all ,
    I need to create a pivottable with ADF 12c for reporting purposes.
    I have a table or view with 10 items of type VARCHAR2 , C1,C2,C3,C4,C5,C6,C7,C8,C9,C10  and   10 items of type NUMBER N1,N2,N3,N4,N5,N6,N7,N8,N9,N10
    The items of type VARCHAR2 are for Column and Row areas and the items NUMBER are for Data Areas
    I want to create a jsf page with one empty pivottable and in code Show or Hide the items in the Column area , Row area , Data area
    Con you send me a small sample ?
    I test with this code that i find in oracle OTN but not work.
    <dvt:pivotTable id="pt2" value="#{bindings.WebPivotDataView1.pivotTableModel}" var="cellData"
    varStatus="cellStatus" splitMode="enabled"
    binding="#{backingBeanScope.CmfPivotBean.pivotTable}"
    >
    <dvt:headerCell>
    <af:switcher facetName="#{cellData.layerName}" defaultFacet="Default" id="s1">
    <f:facet name="DataLayer">
    <af:outputText value="#{cellData.label}" id="ot1"/>
    </f:facet>
    <f:facet name="C01">
    <af:outputText value="#{cellData.dataValue}" id="ot2"/>
    </f:facet>
    <f:facet name="Default">
    <af:outputText value="#{cellData.dataValue}" id="ot3"/>
    </f:facet>
    </af:switcher>
    </dvt:headerCell>
    <dvt:dataCell>
    <af:switcher facetName="#{cellStatus.members.DataLayer.value}" defaultFacet="Default" id="s2">
    <f:facet name="N01">
    <af:outputText value="#{cellData.dataValue}" id="ot4">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.WebPivotDataView1.hints.N01.format}"/>
    </af:outputText>
    </f:facet>
    <f:facet name="Default">
    <af:outputText value="#{cellData.dataValue}" id="ot5"/>
    </f:facet>
    </af:switcher>
    </dvt:dataCell>
    </dvt:pivotTable>
    DCBindingContainer bindingContainer = (DCBindingContainer)ADFContext.getCurrent().getRequestScope().get("bindings");
    CubicBinding cubicBinding = (CubicBinding)bindingContainer.findCtrlBinding("WebPivotDataView1");
    CubicEditor cubicEditor = cubicBinding.getCubicEditor();
    cubicEditor.removeLayer(DataDirector.ROW_EDGE, 0); //remove 1st row edge
    cubicEditor.removeLayer(DataDirector.COLUMN_EDGE, 0); // remove 1st column edge
    cubicEditor.removeDataItem(0);
    CubicDefinition def;
    def = cubicBinding.getProjection();
    LayerDefinition layerDefinition = new LayerDefinition("C3");
    cubicEditor.addLayer(DataDirector.ROW_EDGE, 0, layerDefinition);    
    LayerDefinition layerDefinition2 = new LayerDefinition("C4");
    cubicEditor.addLayer(DataDirector.COLUMN_EDGE, 0, layerDefinition2);
    DataItemDefinition def3 = new DataItemDefinition("N1");
    cubicEditor.addDataItem(def3);
    AdfFacesContext.getCurrentInstance().addPartialTarget(pivotTable);
    Can you help me if is possible to create a pivottable binding to a one ViewObject and in code show/hide or compose the layout of the pivottable ??
    I search in google and OTN oracle and not find any code.
    Only find the code of the samples that is very complex for me , the code of the samples create the PivotTableModel from one Array , and i want to binding from one ADB BC ViewObject.
    Thanks in advance

    The solution I presented for your use case an DOAG 2013 was to create a pivot table binding out of user defined attributes from the table. For the defined attributes a VO is dynamically created as well as the pivot binding. The pivot binding is then exchanged at runtime together with the activation of the dynamic VO needed to only get the data needed for the particularly pivot table.
    Your solution using the CubicEditor is hard to implement due to the missing documentation. This was the reason I did not follow this approach, However it's not impossible (done it on a very small scale).
    None of the solution are what I call simple. They are complicated, complex and in part not supported solution (exchanging the pivot table binding at runtime need to use internal classes, which is not supported).
    I can't give you a working sample as it's too complex. I can make the slides available, however they are in German.
    Timo

  • Carl - Show Hide columns and report templates

    Carl,
    I've implemented the show/hide report column techniques from your demo pages. Thanks for that, it's working well.
    I am having a slight issue. I'm using theme12, and when I implement the technique there with the alternating row color template, the functionality works fine. But when I switch to standard report template I have some issues.
    Debugging the code :
    function html_HideCellColumn(pId){
    35 var l_Cell = html_GetElement(pId);
    36 var l_Table = html_CascadeUpTill(l_Cell,'TABLE');
    37 var l_Rows = l_Table.rows;
    38 l_CellI = getCellIndex(l_Cell.parentNode,l_Cell)
    39 for (var i=0;i<l_Rows.length;i++){
    40 html_HideElement(l_Rows.cells[l_CellI]);
    41 }
    42 return;
    the pId is what expect before line 35, but after, it looks like the html_GetElement is returning null.
    Is there something in the template that would cause this change? I am able to reproduce this behavior consistently. Thanks for any input.

    Hello,
    The table headers in the standard report template of that theme are missing the id attribute so changing this.
    &lt;th class="t12header" #ALIGNMENT# >#COLUMN_HEADER#&lt;/th>
    to
    &lt;th class="t12header" #ALIGNMENT# id="#COLUMN_HEADER_NAME#">#COLUMN_HEADER#&lt;/th>
    and your good to go.
    Carl

  • Show/hide column

    How to show or hide column within ADF table based on certain condition ?

    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/84-treetable-column-hide-show-404584.pdf
    https://forums.oracle.com/thread/2275114

  • SP2013 Is it possible to show/hide columns based on column selections?

    SharePoint 2013
    I have a lists with a school district selection choice column (refer to as column A). Then I have three other columns with schools based on district. What I would like to do is only show schools in a certain district based on what district
    is selected in column A. Can anyone tell me if this is possible and if so, how can i acheive it?

    It generally takes a little script to get the cascading right;
    http://sharepoint-works.blogspot.ch/2012/02/cascading-dropdown-or-filtered-values.html
    https://www.youtube.com/watch?v=70-hXWY6ARY
    InfoPath is another possibility. Are you using that?
    w: http://www.the-north.com/sharepoint | t: @JMcAllisterCH | YouTube: http://www.youtube.com/user/JamieMcAllisterMVP

  • Dynamically Show/Hide Columns

    Hello friends
    I am working on Crystal report 12.1
    I have a table in SQL server with 24 fields.
    Every 2nd field is bit field. kind of Visible True/False tag for previous column.
    e.g.  Name, Name_SH, Fund, Fund_SH    -
      Column names
    Name, Fund stores value.
    Name_SH stores, True/False for Name
    Fund_SH stores, True/False for Fund
    So, now, when I display report in Crystal report, user will select some fields from that 12 fields.
    That will be processed throug Stored proc in SQL and feeds data in same table.
    Now, in Report, How can I implement this situation, of display only columns with _SH = True.
    and also, user need proper format, means, there should be equal space between all columns.
    Please help me to solve this.
    thanks in advance.
    Thanks & Regards
    Utkarsh

    UNION to a single column with a secondary column for Type (field name) and remove invisible ones from the UNION process.
    Then, use a CrossTab to show the final result.

  • Dynamically show/hide columns for DelimitedData output

    My users want to see only dynamic sets of data from the same report query.
    For example, if the query returns:
    Date, Widget1Count, Widget2Count, ..., WidgetZCount
    User1 wants to see Date and counts for widgets 1,2, 5, and 10
    User2 wants to see Date and counts for widgets 2, 3, 4, 5, 10-20.
    Uset3 wants to see Date and widget 99 count.
    I don't want to write a custom report for every single user nor do I want to create Z! number of queries to satisfy every possible request combination.
    I wonder, is there a way to change "Exclude from XML Output" property for a particular query field(s) from a report AfterPForm or BeforeReport trigger?

    Hi,
    I had the same problem, but I saw the Metalink document: 340793.1, which gave the solution I needed.
    In my case, I needed to limit the number of columns being outputted in a DELIMITEDDATA format based on a user parameter.
    I ended up with the following code in my After PForm trigger, which did the job.
    BEGIN
    SRW.ADD_DEFINITION('<report DTDVersion="1.0">');
    SRW.ADD_DEFINITION('<customize>');
    -- For those columns I want displayed, Set the XMLSuppress property to False
    FOR tmp IN 1 .. 10 LOOP
    SRW.ADD_DEFINITION('<object name="col_'||LPAD(TO_CHAR(tmp), 3, '0')||'_title" type="REP_COL_MAP">');
    SRW.ADD_DEFINITION('<properties>');
    SRW.ADD_DEFINITION('<property name="XMLSuppress">False</property>');
    SRW.ADD_DEFINITION('</properties>');
    SRW.ADD_DEFINITION('</object>');
    END LOOP;
    -- For those column I don't want displayed, Set the XMLSuppress property to True
    FOR tmp in 11 .. 100 LOOP
    SRW.ADD_DEFINITION('<object name="col_'||LPAD(TO_CHAR(tmp), 3, '0')||'_title" type="REP_COL_MAP">');
    SRW.ADD_DEFINITION('<properties>');
    SRW.ADD_DEFINITION('<property name="XMLSuppress">True</property>');
    SRW.ADD_DEFINITION('</properties>');
    SRW.ADD_DEFINITION('</object>');
    END LOOP;
    SRW.ADD_DEFINITION('</customize>');
    SRW.ADD_DEFINITION('</report>');
    SRW.APPLY_DEFINITION;
    END;
    I hope this helps with your problem.
    Paul

  • Show/hide a column  in JTable

    I want to show/hide columns in JTable
    How is this possible
    Note that columns that are hidden may be showed later
    thanks in advance
    Renjith

    I tried out for this:TableColumn col = jTable.getColumnModel().getColumn( colnum );
    if( col != null )
      col.setPreferredWidth( 0 );
      col.setMaxWidth( 0 );
    }But the column seems to have minimum width which you can't even change with col.setMinWidth( 0 );

  • Is it possible to show/hide dynamically columns in RDLC form?

    We need to show/hide dynamically columns in our Report RDLC form based by the user desire needs.
    We need by the predefined checkboxes to set which columns should be seen and which should be hidden.
    Is it possible in RDLC form to make it "show/hide columns dynamically" with any way?

    Depends on what you mean dynamically, you still need to press the view report button.
    What you can do is right click on the column you want to be able to hide/display in design mode,
    click "Column visibilty", choose "show or hide based on an expression" then in your expression base your true or false on a boolean parameter for each column

  • What is the best way to show/hide n number of columns ?

    Hi,
    I have a dynamic report that I have show/hide columns working using the below code. But when there are 500 or more rows it takes about a minute or more just waiting to see the columns toggle.
    What is the best way to do this?
    // Existing Javascript
    [script language="JavaScript" type="text/javascript"]
    var maxcnt= mymonths.length;
    function hideMaxEarn(){
    for(var j=0;j[maxcnt;j++){
    hideColumn('MON'+mymonths[j],'MAXCOL'+mymonths[j]);
    hideColumn('MON'+mymonths[j],'EARNCOL'+mymonths[j]);
    hideColumn('MON13','MAXCOL13');
    hideColumn('MON13','EARNCOL13');
    function showMaxEarn(){
    for(var j=0;j[maxcnt;j++){
    showColumn('MON'+mymonths[j],'MAXCOL'+mymonths[j]);
    showColumn('MON'+mymonths[j],'EARNCOL'+mymonths[j]);
    showColumn('MON13','MAXCOL13');
    showColumn('MON13','EARNCOL13');
    function getCellIndex(pRow,pCell){ 
    for(var i=0, n=pRow.cells.length;i[n;i++){ 
        if(pRow.cells[i] == pCell) return i;
    function hideColumn(pMon,pCol){
    var l_Cell = $x(pCol);
    var l_Table = html_CascadeUpTill(l_Cell,'TABLE');
    var l_Rows = l_Table.rows;
    l_CellI = getCellIndex(l_Cell.parentNode,l_Cell);
    for (var i=0, n=l_Rows.length;i[n;i++){
        if(i != 0) {
           html_HideElement(l_Rows[i].cells[l_CellI]);
    } else {
    $x(pMon).colSpan = $x(pMon).colSpan - 1;
    function showColumn(pMon,pCol){
    var l_Cell = $x(pCol);
    var l_Table = html_CascadeUpTill(l_Cell,'TABLE');
    var l_Rows = l_Table.rows;
    l_CellI = getCellIndex(l_Cell.parentNode,l_Cell);
    for (var i=0, n=l_Rows.length;i[n;i++){
        if(i != 0) {
           html_ShowElement(l_Rows[i].cells[l_CellI]);
    } else {
    $x(pMon).colSpan = 3;
    return;
    [script]

    Hi Andy,
    Yes, I replaced the code calling the same things in a loop to one loop getting the Table reference once and I build an array of column numbers at the time the report is built so I don't have to get the column number each time....
    it is a couple of seconds faster in about a 30 second response time. It will have to do it for now, no more time unless you see something in this new code...
    Thank you! Bill
    // dynamically built code
    col_nbr_array = new Array();
    col_nbr_array[0] = "1";
    col_nbr_array[1] = "2";
    col_nbr_array[2] = "4";
    col_nbr_array[3] = "5";
    col_nbr_array[4] = "7";
    col_nbr_array[5] = "8";
    col_nbr_array[6] = "10";
    col_nbr_array[7] = "11";
    col_nbr_array[8] = "13";
    col_nbr_array[9] = "14";
    col_nbr_array[10] = "16";
    col_nbr_array[11] = "17";
    col_nbr_array[12] = "19";
    col_nbr_array[13] = "20";
    col_nbr_array[14] = "22";
    col_nbr_array[15] = "23";
    col_nbr_array[16] = "25";
    col_nbr_array[17] = "26";
    col_nbr_array[18] = "28";
    col_nbr_array[19] = "29";
    col_nbr_array[20] = "31";
    col_nbr_array[21] = "32";
    col_nbr_array[22] = "34";
    col_nbr_array[23] = "35";
    col_nbr_array[24] = "37";
    col_nbr_array[25] = "38";
    col_nbr_array[26] = "40";
    col_nbr_array[27] = "41";
    // Static code
    function show_hide_column(do_show) {
    // Set Style, Show/Hide
    var stl;
    var csp;
    if (do_show){
    stl = 'block'
    csp = 3;
    }else{
    stl = 'none';     
    csp = 1;     
    // get rows object
    var l_Rows = document.getElementById('DT_RANGE').rows;
    var totCellNbr1=parseFloat(col_nbr_array[maxcnt-1])+2;
    var totCellNbr2=totCellNbr1 +1;
    var n=l_Rows.length;
    for (var i=0; i[n;i++){
        if(i != 0) { // if not the main header which spans 3 cols when expanded
          // Go through and show/hide each cell
          for(var j=0;j[maxcnt;j++){
              l_Rows[i].cells[col_nbr_array[j]].style.display = stl;
    // Totals
    l_Rows.cells[totCellNbr1].style.display=stl;
    l_Rows[i].cells[totCellNbr2].style.display=stl;
    } else { // row 1 that has Month spelled out - colspan of 3, others has max,earned and score columns for each month.
    var maxhdr = maxcnt/2;
    for(var k=1;k[=maxhdr;k=k+1){
    //alert('Header['+k+']');
    l_Rows[i].cells[k].colSpan=csp;
    // Total column
    //alert('TotHeader['+(maxhdr+1)+']');
    l_Rows[i].cells[maxhdr+1].colSpan=csp;
    [script]

  • Show/Hide a column in a Table region

    I have search page which queries the data and displays the records in a table region. We need to have an option to show or hide a non-database column at the end of the each row in the table. If the checkbox is selected, the last column should appear and if checkbox is deselected it should get disappeared.
    I have used a transient attribute in the VO and using that transient attribute trying to show the text field when the checkbox is selected. For ex, if the search returns 6 rows - if you select the checkbox of the first row , the last column "CTS" gets displayed without any issues but if you select the other rows (without checking the first row), the CTS column is not displayed.
    The column is getting displayed only IF you select the checkbox of the first row and try it other rows. If you try to select the checkbox of other rows without selecting the 1st row, it doesnt show the CTS column.
    AM has the PPR event
    =============
    public void CheckOnClick(String v_chkBox,String SalesContact,Boolean executeQuery)
    System.out.println("Enters Checkbox event()");
    USSContactMainVOImpl pVO= getUSSContactMainVO1();
    Row poRow[]=pVO.getFilteredRows("Chkbox","Y"); // get all the selected rows
    for(int i=0;i<poRow.length;i++ )
    Row rowi=poRow;
    System.out.println("Value:" + rowi.getAttribute("Chkbox") );
    rowi.setAttribute("CTSEngineer_TR",Boolean.TRUE); // transient attr
    //end of CheckOnClick()

    I just referred to the Dev Guide and understand that we can use the identifier of the PPR event source row (Page 262) but still the issue persists.
    String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    I have a rawtext as the first column( its just a dummy column since the PPR event is not getting fired if the checkbox is the 1st control/column) and the 2nd column is the check box which has a PPR event. The PPR event fires whenever the check box is selected or deselected but surprising the text field gets editable only if the 1st row is clicked.
    Changed code is as always - not sure why the table shows/hides the text column only if the 1st column is selected. Will appreciate any help.
    PFR:
    ===
    if ("OnSelect".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    System.out.println("The AM name is "+am);
    Boolean executeQuery = BooleanUtils.getBoolean(false);
    String str1 = pageContext.getParameter("Check_Box");
    String v_SalesContact = pageContext.getParameter("SalesContact_qry");
    //1401
    String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    Serializable[] parameters = {str1,v_SalesContact,rowReference,executeQuery };//1401
    Class[] paramTypes = { String.class,String.class,String.class,Boolean.class };//1401
    am.invokeMethod("CheckOnClick",parameters,paramTypes);
    AM(PPR Event)
    ==========
    public void CheckOnClick(String v_chkBox,String SalesContact,String rowReference,Boolean executeQuery)
    OARow rowx = (OARow)findRowByRef(rowReference);
    if (rowx !=null){
    System.out.println("row ref");
    System.out.println("reo fref"+ rowx.getAttribute("CTSEngineer_TR") );
    rowx.setAttribute("CTSEngineer_TR",Boolean.TRUE);
    Edited by: MyOAF on Jan 14, 2010 6:25 AM
    Edited by: MyOAF on Jan 14, 2010 6:26 AM

  • Hide/show a column in a report

    Hi,
    I'm actually looking for a solution to hide/show a column in a report (matrix form)in function of a parameter..
    Using the conditionnal formating propertie to hide a column (return false) works, but the colmuns in the right side don't move.. It's not very pretty..
    An other way could be to change the elasticity property of a column, and replace the data by "", but apparently, we can't access to this property by the srw command.
    I really need a solution, else I'll have to produce as many reports as I've to hide columns...
    Thanks a lot
    Best regards..
    DAvid
    null

    Hi,
    I use 'decode' in sql statement. If your sql statement is applicable to this,you may use it. So you can choose which columns you want to use and also you can concatanate columns to make them one column.

  • How to Hide/show the columns data while doing Drill down or drill up

    Hi ,
    How to Hide/show the columns data while doing Drill down or drill up in webi report .
    Does it possible BO 3.1 version ?
    Please suggest me on this.
    Thanks & Regards
    Venkat

    While that is not there yet, you can make use of the show when empty yes/no in combination with alerters.
    So I have an alerter applied to every cell of the table.
    When a condition is true (say I drilled down) I just put = "" in every cell, emptying the table,
    because its now empty and doesn't need to show, it wont.
    For the detail table I use the opposite, so when you drilled down it becomes visible...
    Hope this helps all that do not have 40 yet
    Good luck,
    Marianne

  • Show/Hide Multiple Selected Columns

    I am using SpryDOMUtils.js to show/hide a column. However, I
    would like to have multiple buttons to select to show/hide
    individual columns.
    I tried adding two function calls:
    <script language="javascript" type="text/javascript">
    function hideIt(){
    Spry.$$("#first th:nth-child(3),#first
    td:nth-child(3)").toggleClassName("hideIt");
    function hideIt(){
    Spry.$$("#first th:nth-child(7),#first
    td:nth-child(7)").toggleClassName("hideIt");
    </script>
    But clicking either button just toggles the 7th column. I
    think I some how need to ID the functions to the buttons and
    columns.
    Any help would be appreciated.

    you can hide multiple column by simply use :
    function hideIt(){
    Spry.$$("#first th:nth-child(7),#first
    td:nth-child(7)").toggleClassName("hideIt");
    Spry.$$("#first th:nth-child(3),#first
    td:nth-child(3)").toggleClassName("hideIt");
    //more columns here...
    if you use 2 function with same name the first will be
    ignored and the last will executed (thats why it called
    object-oriented :D, new object replace old object)

  • Hide/Show the column content

    Hi Guys,
    Is it possible to show /hide the column contents on particular conditions for a dataTable??
    In other words, there may be a situation where I wanted to hide the object for row1 but not for row2
    I tried with setRendered method. But the problem I am facing is for all row values the last condition is applying
    Please let me know the answer at earliest. Otherwise any alternate solution is also OK
    Thanks
    Sudhakar

    Hi JIM,
    Thanks for reply.
    Yesterday only I got the answer. Thought to post my idea here but got delayed.
    After posting this question, I did some investigation on how dataTable component works.
    Instead of using DefaultDataTableModel i have binded my own bean array which has pre computed values.
    Now it is working fine
    Thanks & Best Regards
    Sudhakar Chavali

Maybe you are looking for

  • Read timed out error while executing a web service

    hi, i have a remote funtion module which takes around 31 seconds in AAD (developing enviroment) server which has around 4 select queries,the same RFC is taking around 25 mins in AAT (testing environment) due to more data. Now when i am releasing the

  • CRM 7.0 in partner determination procedure

    Dear all, In CRM 7.0 in partner determination procedure for an ITEM level am unable to set up procedure so that any partner will always be just mirror of the partner set on HEADER level. This functionality works only when the new order is created, th

  • I have a hp g61 running windows 7 and suse 11.4. Both of my shift keys are not working..help.

    i have tried the following but it didnt help;                  Hard reset 1. Press and Hold power button till the laptop turns off (5-7 sec approx).             2. Then unplug the AC adaptor.             3. Turn the laptop upside down.             4.

  • Fit to Music

    iPhoto has a fit to music option for creating slide shows. Can iMovie do this for a series of still images? If it is not a built in function does anyone know how to do this easily? Thanks Paul

  • Possible fix for X-Fi MIDI effects

    I think I may have found a solution (somewhat) for those of you who haven't been able to get much reverb or chorus on MIDI instruments. I believe part of the problem lies in the default SoundFont settings for "reverbEffectSend" and "chorusEffectSend"