Hide/show agrregates in the PivotTable based on click of a button

Hello

I have a PivotTable in which I view aggregates.

Is there a way to hide/show the aggregated based on click of a button.

Thank you

Anil

It worked:

To remove totals:

cubicEditor.removeLayer (DataDirector.ROW_EDGE, 0);

Def LayerDefinition = new LayerDefinition("OrganizationCode");

cubicEditor.addLayer (DataDirector.ROW_EDGE, 0, def);

To show totals:

cubicEditor.removeLayer (DataDirector.ROW_EDGE, 1);

cubicEditor.removeLayer (DataDirector.ROW_EDGE, 0);

LayerDefinition layerDef = new LayerDefinition ("OrganizationCode");

TotalDefinition td = new TotalDefinition (AggType.SUM, "OrganizationCode", AggLocation.BEFORE);

layerDef.setTotalDefinition (td);

cubicEditor.addLayer (DataDirector.ROW_EDGE, 0, layerDef);

layerDef = new LayerDefinition ("ItemName");

cubicEditor.addLayer (DataDirector.ROW_EDGE, 1, layerDef);

Tags: Java

Similar Questions

  • Computer started to delay the result with a click of a button, etc. by seveal seconds.

    Have aw computer laptop Dell Inspiron 1501 XP SP3. Computer started to delay the result with a click of a button, etc. by seveal seconds.  A ran the anti-virus, malware search, keylogers search and found nothing.  The delay also occurs when you use an application such as CorelDRAW, Word, WordPerfect programs, etc.  any ideas what is happening or where to look? Thank you.

    You experience this delay all the time, or they occur from time to time?

    Could complete you the following procedure to obtain information about your current system and post here, so I can be more specific in suggestions.
    0 close the programs as open as you can before the first step.
    1 copy the following line below exactly as it appears:
    Taskpad cmd /C /V > tempo & tempo notebook
    2. press on + R
    3. paste copied line run window and press enter or click Ok.
    4 copy all the information from the Notepad window. (The list can be long, you can use + a combination to select all)
    5 paste info copied to the next reply.
    6. after that you can close the Notepad window.

  • Tabluar form hide/show items on the loading of the page

    Hi all

    Apex 4.1

    I use JS to display or hide fields, based on the values of other fields, cela in a tabular presentation. So it is used as a work-around as dynamic actions are not able to do out of the box on tabular forms (that I know of).
    The code I use is something like this:

    In the page header:

    function test (pThis) {}
    get the index of line curren on changes
    var currIndex = $('select[name="'+pThis.name+'"]').index ($x (pThis.id));
    If (pThis.value < 0) {}
    . style.display $('input[name="f06"]') [currIndex] = 'block ';
    }
    else {}
    . style.display $('input[name="f06"]') [currIndex] = 'none ';
    }
    }

    In the attributes of the item in the column 'source '.
    OnChange = "JavaScript:test (this); »

    This fires that when the source column is changed, but not working when you load at the start page when it is filled with already stored reports. So it works only when a field is changed to the hand.

    How can I force this action shot the loading of the page so the rule (hide fields) also gets applied to existing records?

    Concerning
    Bottom

    Down de Klerk wrote:
    Hi all

    Thanks for the comments.
    So far I m unable to make it work. Fire code (debug using alert messages, and these show upwards), but the suggested procedure does not work.

    I tried all kinds of entry points, as for example the test via dynamic when a button is clicked, tried action on loading the page, and also via the $(document) .ready (function
    The function is executed and nothing happends, no error does not code so should be ok.
    I'll investigate further and let you know what happends. Don't know if the class type of the associated field f06 might have something to do with it, but one is LOV/Select list type

    This code is looking for input i.e. text, checkbox etc and will not find a slelect list.

    You must change the jquery like this selector

     $(document).ready(function () {
          jQuery.each($('select[name="f06"]'), function () {
               hide_field(this);
          });
     alert("function executed");
     });
    
  • How to set ' hide / show ' regions during the loading of the Page mode 'hide '.

    How to 'Hide' under regions on a page on the loading of the page, but don't show the region above in mode 'show' on a page?

    I have multiple regions, one under the other on a Page. All models on those who are assigned to the regions 'Hide and Show '. When the initial page loading - my goal is-displays only the Top more Region in "Show" mode, while setting all the other (regions to 'Hide' in low mode).

    Can someone please suggest ideas on how to achieve this? Dynamic action? or other approaches? Examples/steps please would be greatly appreciated.

    My request for a theme is set to 23 Crimson. Apex 4.1.x

    Thank you.

    VSKumar

    Hello

    What needs to be done is:
    Set up the STATIC ID for all regions with the exception of the first region.

    For example:
    REGIONTWO
    REGIONTHREE
    REGIONFOUR
    REGION 5

    Then go to the properties of the Page to the section head and footer. In the footer section, add the following:

    
    

    You can for example see http://apex.oracle.com/pls/apex/f?p=60428:5

    P.S. If you switch to another topic you should check if the classes are the same. Otherwise it will not work.

    Kind regards
    Aljaz

    Published by: Aljaz on 6.3.2012 0:04

  • Hide a row in the PivotTable according to State

    Hi, I use PivotTable that is in below format.



    I - date 1 | day 2 | day 3 | new calculated item

    measure 1 v1 v2 v3 v4
    measure 2 v5 v6 v7 v8
    measure 3 v9 v10 v11 v12
    measure 4 v13 v14 v15 v16




    now I need to hide the date 2 (IE v2, v6, v10, v14) column in the PivotTable, (which is actually a value in a row to a column named as_of_date)
    is it possible.
    Please let me know the solution.

    then use presentation variables val1 in the command prompt and use the filter

    asOfDate is equal to {val1}

    or asofdate is not equal to {val1}

    According to your needs.

  • Hide/show element at the click of another symbol

    Hello

    I want to hide an element by click. The item that is clicked is inside another symbol, which one that should be hidden.

    Please tell me how I can handle this.

    Thank you very much

    // Get the symbol element "kitten_1" and hide the element "kitten_paw"
    sym.getComposition().getStage().getSymbol("kitten_1").$("kitten_paw").hide();

  • Master-detail-shape; Hide/show columns in the form of details according to the column

    Hello

    I have a form master detail. In the long form, I have the columns:
    ID, MASTER_ID_FK, PC_SOURCE, A_C1, A_C2, A_C3, B_C1, B_C2, B_C3

    The PC_SOURCE of the column must be a LOV with values
    NULL VALUE
    A
    B

    So if I choose or enter a master record the detailed form appears and I can enter one or more detail records.

    PC_SOURCE is the first column.
    If I choose one, the columns B_C1, B_C2, B_C3 should disappear as there should be no possible entry.
    If I have B, A_C1, A_C3, A_C2 columsn should disappear as there should be no possible entry.

    Is this possible?

    I tried a bit of my own, but without success. I tried to put in the first column (lov SOURCE PC) in the attributes of the element a javascript call like onChange = "do_Refresh('#PC_SOURCE#'); »

    The javascript funktion do_Refresh tries to grab the value of the column and the value of a hidden item P1_SOURCE as document.getElementById('P1_SOURCE').value = v_source;

    But this does not work, because there is not the value of the recovered column.
    And probably can´t work because of more lines of a detail.

    Thank you and best regards,
    Matthias

    Hello

    The html code of your detailed form will be an array of the elements of entry with names f01, f02, etc.. The columns of the key of the fields are normally hidden, so your PC_SOURCE column will probably use the name f03. A_C1 column name will be f04 etc.

    Once you have the input names for your columns, you can create a dynamic action (DA) to hide the items you want.

    You want the DA to fire when any element PC_SOURCE is changed if you want when to be:
    Event: change
    Selection type: jQuery Selector
    jQuery Selector: input [name = "f03"]
    Condition: no strings attached

    The action is to hide an element in the same line, if the changed item is a value. The action must therefore:
    Action: Run the JavaScript Code
    Fires when the event is: true
    Code: if(this.triggeringElement.value=="A") {$x_Hide ('f04_' + this.triggeringElement.id.split ('_') [1])}

    You then need a lot of real actions for each item that you want to hide.

    Rod West

  • Is it possible to hide / show columns in the dashboard?

    Hi all

    It is my very first post in this forum OBIEE.

    My requirement is to allow users to select what they want to see answers of columns asking in dashboard. For example in the application of responses he is 10 columns and 5 of them are hidden. Is it possible to change this property hide these columns hidden in the Dashboard?

    Thanks in advance.

    If you are thinking about a multiple selection prompt that has your names of columns as values, then no, you can't. But don't forget to uncheck the "Automatically refresh when a new column is selected" at the top of the display of the column selector. This will allow your users to choose all the appropriate columns before clicking on the button 'Go '. Which ' forget to mark the message useful (s) (at the top right of the post there) If you helped.

    Thank you!

    Edited by: David_T May 21, 2010 07:08

  • How to play the music when you click on a button?

    Hello

    Could someone help me a little bit to start?
    My first attempt is just to create a scene, in which clicking on a button, it starts to play an mp3 file. I get to start playing as a background music after reading the help file and also tried to find the source code from the internet and also here without success.

    Thus, a person could be that kind of give me an example of jargon code snipplet, who would begin to play music immediately without first importing the file (such as file streaming) if possible and also small instructions how to assign to the key (Yes, not as background music).

    I just got the Adobe Director 11 a few days ago, and my wife is trying to get angry for me to sit with my NB every night without any progress,

    Thank you, in the case where a person pick up...

    Here's a demo movie: . You can download the source from here.

    It uses a member of ShockWave Audio (SWA), which connects to an external file.

  • How to get the event when you click Add another button in a table.

    Hello
    How to recognize the event in processFormRequest click on the button Add another line of the footer of a table?

    Suppose if the ID is anotherRow (I mean ID of the button to add another line of the footer)

    If I give if (pageContext.getParameter ("anotherRow")! = null)... its not recognizing the event that is returning null only...

    I want to perform certain actions when the user clicks Add another line of footer. Please let me know the details of how identify when add another line is clicked...

    Thank you
    Srikanth

    Hello

    If you have only one table with add_row_button, and then copy the following code works perfectly

    If (tableBean.getName () .equals (pageContext.getParameter (SOURCE_PARAM)))
    (& ADD_ROWS_EVENT.equals (pageContext.getParameter (EVENT_PARAM)))
    {
    ...
    }

    tableBean is the Handle for your advanced table, hope, it will help you.

    Kind regards
    Out Sharma

  • Hide/show clips including the Date

    Hello

    I would like to create a Web site "banner" application in flash using action script to show or hide different video clips based on a start and end date.

    Initially, I have to manually download the new banners to a Web site, one at a time. But if I had a file that can contain several banners, I could turn them on and off the base what day it was. Is there a way to do this with action script?

    I also want to create a few small buttons to scroll through the banners that are "published".

    Let me know if it sounds possible, and we'll go from there.

    If you want to use the date of the operating system of the user, you can do it by using only actionscript.  but it will not be accurate in a certain number of users.

    If you use the script server-side, you can use the date/time of the server.  It is more accurate but needs more actionscript.

  • Hide/show function in the toolbar near the Tray Icon

    I created the toolbar again that my 'Personal' file close to tray Icon. then small > arros shows with the name of the folder.

    This folder is located in D: drive, then I created a batch file for attribute with hiddon this folder "staff".

    then close tray icon while browsing this folder it shown as 'Empty' which is correct.

    But when I Unhide once again my folder with the script then this created close toolbar icon is always not browse the contents of the folder.

    Solution: When I open that folder in the D: drive there again that > is below and I can browse all the content of the 'Personal' folder again.

    Concerning

    Kedar

    Hi Kedar,

    The question you have posted in better suited in the TechNet forums.

    I recommend you post your request in the below link:

    Windows 7 IT Pro:

    http://social.technet.Microsoft.com/forums/en-us/category/w7itpro

    I hope that the information above helps you.

  • How can I remove a child from the scene with a click of a button?

    I have a movieclip which requires playback buttons, Pause, forward and backward. The movieclip has actionscript to different images to load the library movieclips and repeat.

    I tried to use a progress bar, but it does not raise the actionscript during purification, only when the film plays normally.

    My solution is to create your and button back which can go up to specific frames where the key animation will start.

    I need to develop the actionscript code that will remove the children when the user clicks Back.

    That's how I'm loading movieclips several along the timeline of my library:

    var shpA1:arSHPp1;

    function attachAR1 () {}

    shpA1 = new arSHPp1 ();

    shpA1.x = - 30;

    shpA1.y = 18;

    addChild (shpA1);

    }

    the interval is used to repeat the animation to represent the stream on a diagram

    var myInterval1:uint = setInterval (attachAR1, 500);



    What I've tried so far (does not at all - no error or trace):

    function remChild1(event:MouseEvent): void {}

    If (shpA1.stage)

    {

    trace ("arSHPp1 is in the display list");

    shpA1.parent.removeChild (shpA1);

    shpA1 = null

    }

    on the other

    {

    trace ("arSHPp1 is not in the display list");

    }

    var removeTimer;

    clearInterval (myInterval1);

    shpA1.parent.removeChild (shpA1);

  • remove the component inputtext by click of a button

    Hello

    I m able to add the component of text dynamically with the following code.

    public String cb1_action() {}
    Add the code in the event here...
    System.out.println ("in cb1_action3 - 1");
    UIComponent button;
    button = findComponentInRoot ("cb1");
    Pgl RichPanelGroupLayout;
    PGL (RichPanelGroupLayout) = button.getParent ();
    The names of < UIComponent > children;
    children = pgl.getChildren ();
    RichInputText;
    He = new RichInputText();
    it.setLabel ("New textbox" + (children.size ()));
    Children.Add (IT);
    AdfFacesContext.getCurrentInstance () .addPartialTarget (pgl).
    System.out.println ("in cb1_action3 - 1');
    Returns a null value.
    }


    But how to remove the same component/inputtext field dynamically?

    Hello
    Try as follows
    The names of children;
    children = pgl.getChildren ();
    Children.Remove (IT);
    AdfFacesContext.getCurrentInstance () .addPartialTarget (pgl).

  • How to set the State of the checkbox with a click of a button

    Hi all

    O am new in LabView. I have a situation now that I have several check boxes, which I want to check all (or check off everything) with a button click. Can anyone help this?

    Thank you very much. JACIE

    If you have several checkboxes, you will have a cleaner diagram if group them you in a cluster.

    Ben64

Maybe you are looking for

  • Overheating Lenovo Z2 Vibe Pro

    I thought that the last update solved sw overheating in this phone? I could play only 3 minutes of play and the appliance starts to heat. Example of games is real boxing and my God, the same free fall. I play these games in my old note 2 and I do not

  • G560 L help

    Hello my friends I have Lenovo G560L with Processor: Core I5 M540 GPU: Intel HD Core I5 RAM: 4 GB HARD DRIVE: 500 GB I need the latest driver for it! and It doesn't contain HDMI and dosen't boot to OneKey Recovery and I need an external GPU it where

  • Unable to display the dashboard of IE9

    When to view dashboards with IE9, I don't see that the headers, but not the data or chart.  I found a document in the Golan with similar problem in IE8, so I followed the instructions and added the server vfoglight as the trusted site.  However, the

  • BlackBerry 10 does support the mp4 codec avc video.

    BlackBerry 10 does support video codec avc mp4 when you use the html5 video tag. Concerning

  • How to change the permissions of files on win 7

    I am not able to open my files & folder on the D drive. Whenever I am trying to open, it gives a message "'access Deny / give Permission to the Administration". " I'm already logged with Admin maybe he asks same. I have a lot of files and folders. Wh