Show Hide Few columns rows in a report

Hi All,
I had requirement to develop an application having a report and based on some condition we need to hide or show few rows on clicking. Please view this report [here |http://apex.oracle.com/pls/otn/f?p=33897:1]
For example if I give CUSTOMER_ID as a hiper link when I click on "1" first 5 rows only should be visible. That is I need to toggle between hidden and shown condition.
I tried using Java Script
<script type="text/javascript">
<!--
function toggle_visiblity(id) {
var e = document.getElementById(id);
if(e.style.display == 'none')
e.style.display = 'block';
else
e.style.display = 'none';
//-->
</script>
And then using this script in query selecting the table and enclosing in &lt;div &gt; tag.
It works for a single column but few rows it doesn't work. Can someone please help me here. Thanks in advance.
Thanks & Regards,
Vikas Krishna

Hi
Vikas.
Here is an exmaple using emp (changed the empno to reflct you data so it's 10,11,12,13,100,101 etc...). I created a report with the source as
SELECT FLOOR(empno/10)*10 startid,
       DECODE(CEIL(empno/10)*10,FLOOR(empno/10)*10,CEIL(empno/10)*10+10,CEIL(empno/10)*10) endid,
       DECODE(MOD(empno, 10),0, empno, NULL) empno
     , empno empno1
     , ename
     , job
     , mgr
     , hiredate
     , sal
     , comm
     , deptno
FROM bb_emp
ORDER BY empno1Then I created a new template from scratch and selected named rows. I created Row Template one as
<tr>
<td>#EMPNO#</td>
</tr>
<tr id=row#EMPNO1#>
<td>#EMPNO1#</td><td>#ENAME#</td><td>#JOB#</td><td>#MGR#</td><td>#HIREDATE#</td><td>#SAL#</td><td>#COMM#</td><td>#DEPTNO#</td>
</tr>Then I included js in the header as follows
<script type="text/javascript">
<!--
function toggle_visiblity(startid, endid) {
var i;
var id;
for (i=startid; i<=endid; i+=1)
     id = 'row' + i;
     $x_Toggle(id);
//-->
</script>Then I hid the startid and endid columns in the report attributes and change empno (not empno1) to be a link as follows
javascript:toggle_visiblity(#STARTID#,#ENDID#);This now works as (i think) you wanted. Obviously you'll have to put all you formatting etc. from your theme into the template.
Cheers
Ben
http://www.munkyben.wordpress.com
Don't forget to mark replies helpful or correct ;)

Similar Messages

  • 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

  • How to show or Hide Generic Column in a regular report

    Hi All,
    I have created report based on "SQL query (pl/sql function body returning sql query). It returns columns based on some conditions. I have total 60 generic columns like (COL1,COL2....COL60) but it returns 18 or 20 columns based on my conditions, how can I hide the columns that I don't needed. My column heading is based on function return by ':' separated. My function returns number of columns also. Is there any we I can show only those columns which contains data. My report is exactly similar to the default "SQL query (pl/sql function body returning sql query). I didn't find any logic how they are doing this show and hide. I appreciate any ones help.
    Thanks,

    Hi there,
    Somehow you need to find out how many columns your dynamic select will return (by what you said it seems that your procedure returns this information). Then store that number in a hidden page item, say Pnn_COUNT.
    Then, for the 19th and 20th columns in the report add these conditions:
    Column 19: :Pnn_COUNT >= 19
    Column 20: :Pnn_COUNT >= 20
    I hope this helps.
    Luis

  • 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

  • How to show all fileds column without scroll the report output.

    Hi,
    In my report output shows few columns and need to scroll right to see rest of fields . but i want to see all columns without scroll to right side in output.
    Please guide me how to fix the fileds in report.
    Regards.

    Hello,
    Why dont you use WAD and then switch off these properties in Webitem paging properties.
    i think that would give you more flexibility with paging,scrolling but with some extra effort of creating a WAD
    waiting for your feedback
    Regards
    Nitin Bhat

  • Hide filter type - row in interactive report

    Hello all,
    how can I deactivate or hide the filter type - row in interactive report and the only option to be filter type - column?
    Is it possible with some javascript?
    Thanks in advance !

    The CSS approach works fine, but I made some improvements:
    1. CSS-Selector is case sensitive
    2. Only select the label with the attribute for="apexir_FILTER_TYPE". Attention: the CSS-Selector for the for-attribute works in IE and Firefox different
    /* Hide IR Filter Type Row */
    #apexir_FILTER_TYPE {
    display:none;}
    /* IE */
    label[htmlFor="apexir_FILTER_TYPE"] {
    display:none;}
    /* Firefox */
    label[for="apexir_FILTER_TYPE"] {
    display:none;}

  • 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 );

  • BOM: Show/Hide standard columns in CS03

    Hi,
    investigating the code I can see that in the transaction CS03, CS02 the table with data of standard position contains many columns that i would like to display them.
    Currently, I can only see some columns, leaving other hidden. How I can show / hide the present columns in the table of positions?.
    Thanks.

    Inside the CS02 screen you can find table settings, will be there in top right. there you can make the field invisible.

  • Current value of a column.row in a Report region

    Hi
    I have a report that I want to display a single row per page. No problem there. I also want to show, in a separate region below the value of two specific columns for that row (they are large text items that I want to show as text areas).
    My problem is how to have the source of the text area data items match the current report row above. What I want is sort of;
    SELECT TEXTFIELDNAME FROM TABLE WHERE KEY = value from column1 in the report above above (like the #EMPNO# notation when linking a report column to another page)
    Or maybe there is a better way ?
    Any pointers much appreciated.
    Jules

    Hi Jules,
    As always you've some options to achieve what you would like to do.
    If you know AJAX, you could do it that why, if not an "easier" why of doing it:
    1) Create an hidden item
    2) In your report make a link to the same page, but give as parameter the hidden item with the pk as value
    3) In your where clause of your select to fill in the text area, you search for the hidden item (WHERE key = :HIDDEN_ITEM)
    Hope that helps,
    Dimitri
    -- http://dgielis.blogspot.com

  • How to split a single column row  in alv report

    Hi All,
    I need to split a row of the particular coolumn in alv report.
    for example row size is 10 that should be split into 5 & 5.
    Thanks
    Ram

    Hi Ram,
    You can add one more column for that..
    while processing your internal table you can split the value for that column using offset..
    DATA :  FIELD_STR(10) TYPE C.
    VAR1 = FIELD_STR+0(5) .
    VAR2 = FIELD_STR+5(5) .
    Now you can print this both VAR1 and VAR2 in seperate column.
    Please search on SCN before posting any question..
    Hope it will solve your problem..
    Thanks & Regards
    ilesh 24x7
    ilesh Nandaniya

  • Need to Hide Few Columns In BPM worklist/workspace Inbox View

    Hi Team,
    We want to customize the default inbox view, we need to remove some exiting columns(priority,state, task number and expired) and need add some custom columns.
    We have followed the Customizing Applications in Process Workspace and the Worklist Application - 11g Release 1 (11.1.1.6.3) but did not work.
    Please help on this.
    Thank you,
    Keshav

    Keshav,
    You can acheive this its pretty easy...
    Step1:  Login to Workspace/Worklist as Administrator
    Step2:  Navigate to Admin Page by clicking on Administration link from the Global Links
    Step3:  Click on Public Flex fields/ Protected Flex fields under the Flex Feilds.
    Step 4: Once on the Public Flex Fields screen click on the green + icon to create a new  label .
    Step 5: Now it will be to map this labelwith the simple variable coming as part of the input to the task form.
    Step 6:  We can now create a custom view so that we can also see the column for the Limit Requested column in the inbox. For the same view we will also sort the tasks based on the limit amount so that the users can prioritize it. Go to the Worklist Views heading and click on the green Add icon to create a custom Inbox/View.
    Refer this: Using Flex Fields in Oracle BPM 11g | Oracle Technologies Premier.
    Hope it helps you!!!
    Cheers!!!
    Regards,
    Pavan

  • How to hide or add columns to a linked report in SSRS 2014

    Hai All,
    I have a report deployed on a server. And I created a linked report to it into another folder. Now I can actually manipulate on parameters of the linked report through Report manager but I have to hide some columns when displaying the linked report. Is there
    a way to show or hide the columns on the Linked report.
    Regards,
    Rajesh

    Hi,
    This is a  SQL report designing issue, with report builder we should be able to change the visibility of a column. Reports that deployed to
    report manager can be edit by report builder, we may save it after edited.
    Please check the article below:
    Column Visibility Dialog Box (Report Builder)
    https://msdn.microsoft.com/en-us/library/dd207071.aspx
    Regards,
    Yan Li
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • 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 columns in a web report

    Hi,
    I am trying to hide the last 5 columns in my report (out of 15) just before the report is rendered. I need to have these 5 columns in my query as I have exceptions defined on them but want to hide them from users. Could you please let me know how I can achieve this in BI7.0 WAD?
    Thanks,
    Praveen

    There are two different steps to be followed.
    - First sort all your hidden fields in BEXQuery. Bring all of them either to top or bottom.
    - Then In WAD, goto Analysis Item properties,  enter 'data column from' and 'data column To  values'
    Lets say you have 4 hidden fileds then select 'data coumn from' = 4
    This way, you can hide the columns in a WAD report.
    Ravi

  • Hiding few columns before displaying alv grid output

    Hi All,
    I struck up at hiding few columns before displaying alv output. I have used used FM: REUSE_ALV_GRID_DISPLAY. By using this i am displaying 29 fields to the output. But before displaying the output i want to hide few columns among them, and also those fields have to be avialable for further selection by the user by using layout.
    Kindly help me in this,
    Regards
    Srinivas K

    Hi,
    In field catalog set NO_OUT='X' for all the columns you want to hide. They will be available when changing layout for ALV, so you can show them at any time.
    Regards
    Marcin

Maybe you are looking for

  • Envelope widths and centering

    Hello, hoping someone has run into this issue before... I have an image of whats going on and can post more visuals if needed. I have an automated situation where text in an envelope gets changed out depending on a list of names. I modified my origin

  • Facebook's location services are off..?!

    Ok I just updated my iPhone 4S and all of the sudden Facebook's "location services are turned off". It tells me to fix it in the settings but I can't find anything about locations... HELP PLEASE?!

  • % Change in a Crosstab

    Hello, I have a question regarding Previous() usage in a crosstab. Lets say i have data like below:    2007  2008 A   10     5 B   20     I am trying to show the % change, like this:     2008 A   -50% B   -100% The problem is that for Year=2008 there

  • CNN videos not loading in firefox

    Absolutely none of the CNN videos play in firefox since 1 month. At first I thought it was something wrong with my computer. I have run all virus scans, ensured Flash player is updated and enabled all plugins. Still nothing works. I am also noticing

  • Mac OS 9 won't start

    Hi there, I have a dual booting Gigabit G4. I mostly use Tiger, but I installed OS 9 in one of the partitions (mainly for playing around and for learning Pagemaker 7 in its native environment), and upgraded it to 9.2.2. All of a sudden, and without a