Show hide some rows of columns in a report

Hi all

I needed to develop an application with a report and under certain conditions, that we need to hide or show rows by clicking. Please see this report [here: http://apex.oracle.com/pls/otn/f?p=33897:1]

For example if I give CUSTOMER_ID as hiper link when I click on '1' only 5 rows must be visible. That's I need to switch between hidden and shown the condition.

I tried using Java Script


< script type = "text/javascript" >
<!--
function toggle_visiblity (id) {}
var e = document.getElementById (id);
If (e.style.display is 'none')
e.style.Display = 'block ';
on the other
e.style.display = 'none ';
}
->
< /script >


And then using this script in the query by selecting the table and giving him in & lt; div & gt; tag.

It works with a single column, but some lines that he does not. Can someone please help me out here. Thanks in advance.

Thank you and best regards,
Vikas Krishna

No problem Vikas!

Tags: Database

Similar Questions

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

    Hello

    I have a dynamic report that I have show/hide columns works using the code below. But when there is 500 or more lines, that it takes about a minute or more just waiting to see the columns that toggle.

    What is the best way to do it?

    Existing JavaScript
    [script language = "JavaScript" type = "text/javascript"]
    var mymonths.length = maxcnt;
    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 Bill,

    Can you just check to see if the report actually adds the ID attribute for each TD. In a normal report, if you include the ENAME field, for example, all TD in this column have an ID = "ENAME". If this is the case, you can use document.getElementByID ("ENAME") to retrieve a collection of these - this would be faster browse this collection through the rows/cells.

    In addition, if possible, you should only perform research and calculations once. You have mymonths [j] several times in loops - create a variable to hold this for each iteration of the loop and refer to the variable. You also n = l_Rows.length in loop definition - put this above the loop that you only need to calculate this time.

    You can also find more efficient to perform ObjectName. style.display = 'none' * instead of the html_HideElement() method as it is easier.

    If FF3 was a bug in which does not hide the NECK tag columns, I suggest using those rather--it would mean the creation of a new report template, but it would have been the quickest method as you can style an entire column to style her NECK tag (drawback, it's that the NECK tag cannot be created dynamically so it should appear in the report model).

    Andy

    Published by: ATD 26 Sep, 2008 15:03

  • Show or hide the rows of the datagrid

    Gidday

    I have color of the lines of code in a DataGrid as a status property in the dataprovider for each line.

    I would also like to have the option to tick a checkbox to show or hide State 3 lines.

    This would be possible with a dataprovider, or I have to keep two dataproviders - the one with the 3 State and the other without the swap the dataproviders depending on the State of the checkbox?

    Thank you guys

    It is possible, but you would probably have a custom cellrenderer class.

    It would be easier to use dataproviders filtered to show/hide some rows.

  • Show/hide menu based on the logged in user

    Hello

    12.1.3 Jdev

    I want to show/hide some menu items based on the logged in user.

    I will explain the current design:

    In my application, I created a menu as below. (It is created using 'Create or Update ADF Menu' file adfc_config).

    ibis_menu. XML

    <?xml version="1.0" encoding="windows-1252" ?>
    <menu xmlns="http://myfaces.apache.org/trinidad/menu">
      <itemNode id="itemNode_home" label="Home" action="goHome" focusViewId="/home"/>
      <itemNode id="itemNode_transaction" label="Transaction" action="goTransaction" focusViewId="/transaction"/>
      <itemNode id="itemNode_customer" label="Customer" action="goCustomer" focusViewId="/customer"/>
      <itemNode id="itemNode_upload" label="Upload" action="goUpload" focusViewId="/upload"/>
      <itemNode id="itemNode_profile" label="Profile" action="goProfile" focusViewId="/profile"/>
      <itemNode id="itemNode_serviceRequest" label="Service Request" action="goServiceRequest"
                focusViewId="/serviceRequest"/>
      <itemNode id="itemNode_report" label="Report" action="goReport" focusViewId="/report"/>
    </menu>
    

    I have a navigation pane in my Pages that use this menu as below:

    <af:navigationPane hint="bar" id="np1" value="#{ibis_menu}" var="menuInfo">
                            <f:facet name="nodeStamp">
                                <af:commandNavigationItem id="ni1" text="#{menuInfo.label}"
                                                          destination="#{menuInfo.destination}"
                                                          action="#{menuInfo.doAction}"/>
                            </f:facet>
                        </af:navigationPane>
    

    Now, I want to hide some items on the menu, depending on the Type of user loggedIn. I have the userType stored in the managed bean.

    How can I get this feature.

    An approach which I think is as below:

    Define a variable for each itemNode in a managedbean(session scope) and who associate with the property ' visible ' / ' rendering ' of the itemNode in the Menu xml.

    Please let me know is a good way to do it or is there another solution better?

    See you soon

    AJ

    So, maybe this can help:

    http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/48-sitemenu-protection-169190.PDF

  • [SOLVED] Show/hide options in af:navigationPane

    Hello.

    I use JDeveloper 11.1.1.7.0

    I followed this tutorial http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_43/jdtut_11r2_43.html to create a menu of left of base and clear in my request.

    This tutorial shows moving to other topics, but I have created a simple menu on the left, with a list.

    I haved created one unlimited workflow, drag and drop a wildcard character, then the views, then the control flow... It works perfectly

    In the JSF model, in the left side, I have this code:

    <af:navigationPane id="pt_np1" hint="list" value="#{supervision_menu}" var="supervisionInfo">
                        <f:facet name="nodeStamp">
                          <af:commandNavigationItem text="#{supervisionInfo.label}" id="pt_cni1"
                                                    destination="#{supervisionInfo.destination}"
                                                    action="#{supervisionInfo.doAction}"/>
                        </f:facet>
                      </af:navigationPane>
    
    

    I need an advanced feature, and I want to show/hide some options, based on a parameter.

    I need to run a display with this parameter object, process the results, in order to get to know the options that could be shown or hidden.

    So, my questions are:

    • How can I force to run this control as the first step of this flow?
    • In menu.xml and af:commandNavigationItem, we're visible attribute. Where should I put the condition?

    Any help would be much appreciated. Thank you





    Hi user,

    I was about to give you this http://www.oracle.com/technetwork/developer-tools/adf/learnmore/48-sitemenu-protection-169190.pdf talk here about what you need to do. However, since you are not allowed to change the approach, you need access somehow to the UserID and ExecuteWithParams your 2 viewObjects with the previously created and applied ViewCriterias based on the user ID. After that, I don't know how you can use the visible property of the menu.xml, but if you can get your hands on your ViewObject attributes then you will need to make the comparison to show/hide according to the role.

  • Show / hide the DropDownList selection Pages

    I'm trying to show / hide the last page of an audit report according to which city is selected in the drop-down list.

    The code I use is:

    If

    ('4' == xfa.event.newText)

    {

    Page7.presence

    = 'visible ';

    }

    Page 7 has the value "hidden" as I will only show / selected print if some cities are (Bundaberg being one of them)

    The drop-down list has been fixed values then '4' = Bundaberg.   The script is on a change event.

    Can anyone help please this code does not work.

    Thank you.

    Jenny

    Ensure that the form is saved as "dynamic".

    N.

  • Column on OBIEE report-level security.

    Hello
    I have a requirement in my project where some users must be restricted to show only some of the columns and others need to display all available columns.
    I know that users can be restricted by data (IE lines of the report), but I have never tried on columns.
    Please suggest if we succeed in OBIEE and how?
    Thank you
    Swami

    Read this:

    http://www.biconsultinggroup.com/knowledgebase.asp?CategoryID=198&SubCategoryID=369

  • Dynamically show/hide columns in the reports of the IR

    Env

    RDBMS: Oracle XE 11.2

    Request Express 4.2.4.00.08


    Hi all

    I am bulding an open source oracle apex app to track aircraft using ADS - B technology.

    I have somes types of units.  for example (kilometers, miles, knots, feet and metres).

    So, in the report of the IR, I want pick capable of showing a unit in time.

    For example

    Radio Group.

    Ground speed: (*) km/h () Mhp (Knt)

    Vertical speed: (*) ft/s (m/s)

    Can anyone help to build a code or point a direction to get above result?

    I tried already a thread, but did not work.

    Apex: Display/hide report column with Radio button. 2 cents to Oracle by Christoph

    Display / hide column IR dynamically


    I have a limited knowledge of Oracle APEX.


    Levi Pereira says:

    I am bulding an open source oracle apex app to track aircraft using ADS - B technology.

    I have somes types of units.  for example (kilometers, miles, knots, feet and metres).

    So, in the report of the IR, I want pick capable of showing a unit in time.

    For example

    Group of radio buttons.

    Ground speed: (*) km/h () Mhp (Knt)

    Vertical speed: (*) ft/s (m/s)

    There are different ways to do this. Probably the easiest would be:

    1. Create lists of values (LOVs) for units.
    2. Add the elements of the Group of radio -based unity LOVs report interactive region (IR), by specifying one of the units as a default value.
    3. Present the radio group via the Items property of the Page to send IR region.
    4. Create multi-column report for each metric combination / unit.
    5. Control the display of the report columns (applies to IR, but also classic report columns) conditionally using value of element in the Expression 1 = Expression 2 conditions Expression 1 is the group element of relevant radio and Expression 2 unit LOV value corresponding to that used in the column of the report.
    6. Add a dynamic action on the evolution of the components of the radio to refresh the IR region.

    A less obvious approach would also use LOVs, group radio elements and dynamic action of change/update as above, but only have one column for each measure in the report. The column value is calculated using an expression based on the value of the radio group, for example:

    .
    .
    .
    /* Assuming base speed unit is km/h */
      ground_speed
    * case :p1_ground_speed_unit
        when 'mph' then 0.621371
        when 'kn' then 0.539957
        else 1
      end ground_speed
    .
    .
    .
    

    The unit could be indicated in the column heading in the report referring to the element of the device by using a substitution of static text string:Ground Speed (&P1_GROUND_SPEED_UNIT.)

  • Show hide columns generates error on the page if not found data

    Hello

    Has anyone ever encountered a situation where a page error when using the feature show hide column and no data is returned.

    My region to report is based on SQL and when calling at the start page or when restrictions are no match all all the data that appears is the message "No data found" by default. The method used, I pulled Carl Backstrom (RIP) application.

    < script type = "text/javascript" >
    function html_HideBasedOnCheckBox (pThis, pThat) {}
    if(pThis.Checked == true) {}
    html_ShowCellColumn (pThat);
    } else {}
    html_HideCellColumn (pThat);
    }
    }

    function getCellIndex (pRow, pCell) {}
    If (document.all) {}
    for (var i = 0; i < pRow.cells.length; i ++) {}
    If (pRow.cells [i] == pCell) {l_Count = i}
    }
    } else {}
    l_Count = pCell.cellIndex;
    }
    Return l_Count;
    }

    function html_HideCellColumn (pId) {}
    var l_Cell = $x (pId);
    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; i < l_Rows.length - 1; i ++) {}
    html_HideElement (l_Rows.cells [l_CellI]);
    }
    return;
    }

    function html_ShowCellColumn (pId) {}
    var l_Cell = $x (pId);
    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; i < l_Rows.length - 1; i ++) {}
    html_ShowElement (l_Rows [i]. Cells [l_CellI]);
    }
    return;
    }

    < /script >

    The attributes of HTML form elements is: onclick = "html_HideBasedOnCheckBox (this, this.value)" "

    The LoV for this box is static for a column.

    This set works very well if the data is returned. It must have something to do with the topics defined in the SQL code and therefore are not displayed when no data is returned. The code is then try to hide or something that does not exist.

    The part where he falls is during the setting of the variables:

    function html_HideCellColumn (pId) {}
    var l_Cell = $x (pId);
    var l_Table = html_CascadeUpTill (l_Cell, 'TABLE');
    var l_Rows = l_Table.rows;
    l_CellI = getCellIndex (l_Cell.parentNode, l_Cell);

    ... and more specifically the last variable setting: l_CellI = getCellIndex (l_Cell.parentNode, l_Cell);

    Does anyone know how I can get around this by using the method of SQL report i.e. Select col1 col2 "Column 1", "column 2" From myTable etc. or if it is possible to make up for it at the beginning that is

    If NO_DATA
    then
    dont_hide/display_any_columns that_dont_exist
    on the other
    var l_Cell = $x (pId);
    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; i < l_Rows.length - 1; i ++) {}
    html_ShowElement (l_Rows [i]. Cells [l_CellI]);
    }
    return; ........

    ???

    See you soon,.

    Mike

    Hi Mike,.

    In fact, you can check the existence of the cell:

    var l_Cell = $x(pId);
    if (l_Cell)
    {
     rest of the code to hide the column
    }
    

    As long as l_Cell makes reference to a valid page element, then the if test passes and the rest of your code can work.

    Andy

  • How show only last row value in a column of OBIEE

    Hi Experts

    How show only last row value in a column of OBIEE


    Thank you
    V

    Hello
    Pull column criteria, which you want to display only last row. Filter Advanced sql apply now to this column as a.
    RCOMPTE ("customer D1". "C1 Cust Name") = MAX (RCOMPTE ("customer D1". " Cust C1 Cust Name name')) here is the column where I applied the filter.
    So, it gives only last row in the name column of the Cust.

    Awarded points if the answer
    Reference: http://forums.oracle.com/forums/ann.jspa?annID=939

    Kind regards
    Srikanth
    http://bintelligencegroup.WordPress.com/

  • Show and hide some fields against a number

    I have a form for number of dependants and their insertion of names. A user can insert maximum 5 number of dependents, so total I have 6 fields, for the insertion of several dependends and 5 others to insert their names,

    I want to hide all five fields of dependents in the form, and if the user makes any number less then 6 then filleds should be visible depending on the number the user will be in put.

    I tried but I get no success, I used a dynamic insertion for if the user enters 2 or 3, but it does not work. I used two action individually for 2 and 3. but without success.

    Need advice on this.


    Thanks in advance

    Concerning

    Mazahir Abbas

    Hello

    You can show/hide elements based on the value entered in a number of ways.

    Here is an example: http://apex.oracle.com/pls/otn/f?p=12983:9

    Who uses dynamic Actions. That the user changes the value of 'Count', individual text fields are shown/hidden depending on the value selection. In this example, there are five dynamic Actions on the page - one for each of the possible values and related items.

    Each action has the following parameters:

    Event: change
    Selection type: item (s)
    Article (s): P9_COUNT (which is the selection list)
    Condition: greater than or equal to
    Value: * 1 * (for the first article of dynamic Action, then 2, 3, 4 and 5 for the other)

    Real Action: show
    Fire on the page loading: true
    Selection type: item (s)
    Article (s): P9_ITEM1 (for the first point of dynamic Action, P9_ITEM2 etc for the others)

    Action of false: hide

    Fire on the page loading: true
    Selection type: item (s)
    Article (s): P9_ITEM1 (for the first point of dynamic Action, P9_ITEM2 etc for the others)

    When a Count is selected, all dynamic Actions will trigger - each will control the display of the text elements. If the selection is 3, the first three dynamic Actions will show the first three text elements and the last two actions allows you to hide the text elements.

    Andy

  • Problems with the layout themed to show/hide the region 25

    Hi all, Ive hit another question that I hope someone can help with...

    APEX 4.2.4 on XE... Theme 25.

    I've reproduced this login as apex.oracle.com [email protected] password newpass 291 3 application page.    (admin/admin is also implemented as a UN/pw)

    I have a skin region see the this Im using as a region of select query. There are a number of boxes, and a couple of display only fields that have values returned in it.

    I I set out them in a row, and after 3 items, I start a new line with the other 3 articles... that is

    X X X

    X X X

    Except that with the region set to show/hide and the model of the value without tab, no sidebar I get.

    X X

    X

    X X

    X

    If I change the standard region it works OK, and if I change models, it seems ok.  Ive tried all the combinations of columns, etc, but nothing helps...  Im trying to figure out if Im missing something, or I've hit a bug any... (almost certainly the old...) ...

    Thank you very much indeed

    Richard Legge wrote:

    I have a skin region see the this Im using as a region of select query. There are a number of boxes, and a couple of display only fields that have values returned in it.

    I I set out them in a row, and after 3 items, I start a new line with the other 3 articles... that is

    X X X

    X X X

    Except that with the region set to show/hide and the model of the value without tab, no sidebar I get.

    X X

    X

    X X

    X

    If I change the standard region it works OK, and if I change models, it seems ok.  Ive tried all the combinations of columns, etc, but nothing helps...  Im trying to figure out if Im missing something, or I've hit a bug any... (almost certainly the old...) ...

    The difference between the models of the region is that the Standard region has defined Points of view and the show/hide does not work. This is the mysterious properties that Oracle has not yet bothered to document. Their omission of this model is indeed likely to be a bug.

    Create a copy of the region show/hide template and add a point of view for the body of the region (content):

    Name: Body of the region

    Substitution of template: BODY

    Grid Support: Checked

    The maximum fixed grid columns: - 1


    Use the new model to show/hide for the region of select query.

  • creating views in a new scheme to access some rows of the tables in the source schema

    Hello

    Oracle 10.2.0.4

    We try to hide some data from some users. My suggestion is that we create a new view_schema scheme on the same instance where we said the source tables in source_schema.

    We then create views in view_schema as below

    CREATE VIEW AS SELECT * FROM source_schema.table where COLUMN_n = "XYZ";

    We then grant SELECT on these views to a role and assign this role new users to be able to consult the data consulted.

    If the questions below.

    1. We can create views to view the data in another schema WITHOUT giving SELECT permissions on source_schema.tanle directluy?
    2. It works and there is no need to create synonyms etc.
    3. YOU can manage users and much easilier view (s)

    Is there a sense and who better than the selection seen with say table_name_view in the source schema to this effect and even the creation of synonyms for these points of view with the same name, yasmina in sourece_schema?

    Thank you

    905989 wrote:

    Hello

    Oracle 10.2.0.4

    We try to hide some data from some users. My suggestion is that we create a new view_schema scheme on the same instance where we said the source tables in source_schema.

    We then create views in view_schema as below

    CREATE VIEW AS SELECT * FROM source_schema.table where COLUMN_n = "XYZ";

    We then grant SELECT on these views to a role and assign this role new users to be able to consult the data consulted.

    If the questions below.

    1. We can create views to view the data in another schema WITHOUT giving SELECT permissions on source_schema.tanle directluy?
    2. It works and there is no need to create synonyms etc.
    3. YOU can manage users and much easilier view (s)

    Is there a sense and who better than the selection seen with say table_name_view in the source schema to this effect and even the creation of synonyms for these points of view with the same name, yasmina in sourece_schema?

    Thank you

    1. you can create the view in another schema (first granting of privileges to the schema of the view) without granting privileges of the schema of the source

    2. you probably want to create public synonyms for the view (s).  You can refer to the view as schema.view, but it's bulky

    3. I'm not sure management is easy, but the extra complexity shouldn't be too bad.  Write the documentation describing how everything works and the object involved.

    Another, more complicated, but more powerful option is to use row-level security also known as the virtual private database - if you have the license.  You create a profile for a table and a procedure to generate the WHERE clause to filter a query against the table and the columns defined in the profile.  Yet once, you need license to do this.

  • I found the show/hide button toolbars, but you should know how to REMOVE toolbars that appear on this list?

    I found the show/hide button toolbars, but you should know how to REMOVE toolbars that appear on this list?

    Is attached a screenshot of my screen with the context menu to show/hide tabs. I want to delete some of them and let others. Please help me to know how. Thank you!

    Hmm, maybe this "one-time" imported into the new preference? Try this:

    (1) in a new tab, type or paste Subject: config in the address bar and press ENTER. Click on the button promising to be careful.

    (2) in the search above the list box, type or paste the cust and make a pause so that the list is filtered

    (3) double-click the preference of browser.uiCustomization.state and the content must be highlighted in a small dialog box.

    (4) copy the whole line and paste it into Notepad and save it as a backup.

    (5) in Firefox, click on the button '3-bar' menu > developer > Notepad. Remove the comment that appears and paste data preferably, that must appear on a long line. Click on the "Pretty Print" button to make it more readable.

    So I hope that you can spot the extra toolbars and change them out, taking care to preserve the commas between the elements.

    I don't have the extra toolbars in mine, but I copied and pasted back this spaced format and Firefox was able to handle it well. I went into customize and moved a button, and when I left, Firefox has rewritten the preference set as a single line. Assuming that yours works fine, then you can get rid of the backup from step (4).

  • How to change the rows and columns of newtabs?

    I can't change the rows and columns to mozilla version 33

    From topic: config browser.newtabpage.columns shows 5 by default, but these 5 columns appear not only 3 as before. Don't know why, but I use generally not even the default new tab page in my profile daily.

    Still works this - https://addons.mozilla.org/en-US/firefox/addon/new-tab-tools/ - extension to change the page of newTab via a user accessible interface name in the Addons, rather than routing autour Manager inside Firefox. I use this add-on in a second profile that I use for my favorite sites

Maybe you are looking for

  • Get this error message: reference #30.9079ccc.1416414297.9e80d60

    Went to sears.com and put four tires in the basket. When I clicked on the "order" button I get the following error message: reference #30.9079ccc.1416414297.9e80d60 Weird because last week I performed this operation without problem.

  • Search address bar still search via the engine chosen in the search bar

    I think it started right after the installation of Firefox 23.0.1, before which a search in the address bar would always search Google. Basically enter a string in the address bar will do the same thing as the search bar. If the search bar is defined

  • Satellite C850D-11 q - made processors supported

    I was just curious to know what support processors can use this model.

  • Windows update 80072ee2 error code 7

    I got a new Dell laptop and when I tried to do the windows updates it came with the error 80072ee2.  Try the following solutions: 1. add windows update Web sites to the list of exceptions in the firewall 2. reinstalled and updated the drivers for the

  • Incompatible security.

    I have AVG, SpyBot and AdAware installed security and they worked very well until AdAware has released a new version that tells me I should remove AVG! I have no intention to do it and whether one can recommend an alternative to AdAware please? Thank