Expand and Collpase nodes in ADF Pivot table

Hi,
I am looking for a code to Expand and Collapse all drilldown programmatically in adf pivot table.
I have only one level of drill down that display sub total.

I have the same doubt. I need expand and collapse all nodes in ADF Pivot table. anybody Here?

Similar Messages

  • Expand and collapase column values of Pivot table in obiee 11g?

    Hi experts,
    I have Requirement.
    *----------------------(+value1)---(+value2)----(-value3)---------(+value 4)
    --------------------------------------------- x---y---z
    **col1*-----col2----------------------------------------------------
    ----abc-------sys-------------------------------------1---3---9*
    ---xyz--------inc-------------------------------------7---8---77*
    ----xyz2------inc2------------------------------------7---8---32*
    ----xyz3------inc3------------------------------------5---08--13*
    ----xyz4------inc4------------------------------------6---0----72*
    ----xyz5------inc5------------------------------------4---2----3*
    like that i want ...
    any suggestions / help..
    I hope you understand..
    Thanks
    Raam
    Edited by: Tallapaneni on Jun 16, 2012 5:10 PM

    i couldnt understand what you mean, can you please describe?

  • How to update ADF VO object to refresh the data in ADF Pivot table

    I need to know how to update the View object so that the date in pivot table is refreshed/updated/filtered.
    here are the steps I performed to create ADF pivot table application using VO at design time.
    1) created a collection in a Data Control (ViewObject in an ApplicationModule) that provides the values I wanted to use for row and column labels as well the cell values (Used the SQL query)
    2) Dragged this collection to the page in which wanted to create the pivot table
    3) In the pivot table data binding editor specified the characteristics of the rows (which attribute(s) should be displayed in header), the columns (likewise) and the cells.
    Now, I have a requirement to update/filter the data in pivot table on click of check box and my question is how to I update the View object so that the date in pivot table is refreshed/updated/filtered.
    I have got this solution from one of the contact in which a WHERE clause on an underlying VO is updated based upon input from a Slider control. In essence, the value of the control is sent to a backing bean, and then the backing bean uses this input to call the "filterVO" method on the corresponding AppModule:
    but, I'm getting "operationBinding" object as NULL in following code. Please let me know what's wrong.
    here is the code
    Our slider component will look like
    <af:selectBooleanCheckbox label="Unit" value="#{PivotTableBean.dataValue}"
    autoSubmit="true" />
    The setDataValue() method in the backing bean will get a handle to AM and will execute the "filterVO" method in that, which takes the NumberRange as the input parameter.
    public void setDataValue(boolean value) {
    DataValue = value;
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding = (OperationBinding)bindings.getOperationBinding("filterVO");
    Object result = operationBinding.execute();
    The filterVO method in the AMImpl.java will get the true or false and set the where Clause for the VO query to show values.
    public void filterVO(boolean value) {
    if (value != null) {
    ViewObjectImpl ibVO = getVO1();
    ibVO.setWhereClause("PRODUCT_TOTAL_REVENUE(+) where rownum < 10");
    ibVO.executeQuery();
    }

    Did you define a filterVO action in your pagedef.xml file?
    You might want to read on how to access service method from a JSF Web Application in the ADF Developer Guide for 10.1.3 chapter 8.5

  • How to make a layer from the ADF pivot table invisible?

    Hi all,
    ADF pivot table is a useful component which can be used to provide table data rendering. However, I have not found any method to hide one layer from the row edge (or column edge) of the pivot table.
    For example, please have a look on this demo: [http://jdevadf.oracle.com/adf-richclient-demo/faces/components/pivotTable.jspx]
    There are two layers in the row edge of this pivot table, one is Time, one is Product. For product, there are two categories, one is Tents, one is Canoes.
    Is that possible to make the Product layer invisible from user, while still keeping the two rows of product data for that year showing up? how to do it?
    The problem is that pivot table relies on the product layer to separate the two rows of product data, and if I remove the product layer, only the second row of product data for each year can be shown up.
    Please advise how I can make the Product layer invisible.
    Thanks
    Richard
    Edited by: user12847742 on Oct 6, 2010 12:58 AM
    Edited by: user12847742 on Oct 6, 2010 1:04 AM
    Edited by: user12847742 on Oct 6, 2010 1:10 AM

    Hi, Yiannis,
    Thanks for the clarification.
    First, for clarity, I'd like to point out that you and Richard are inquiring about different functionality. Richard wanted to hide a layer that is logically present on the edge, so that there are still separate rows for Tents and Canoes, but without row headers indicating which row is which. As I noted previously, this is currently unsupported.
    By contrast, you're asking about truly removing a layer from the edge. For rowset DataControls, this can be done using the CubicEditor interface. Given the following PivotTable:
    <dvt:pivotTable id="pivotTable1" value="#{bindings.Record.pivotTableModel}"/>the CubicEditor can be retrieved by calling:
    DCBindingContainer bindingContainer = (DCBindingContainer)ADFContext.getCurrent().getRequestScope().get("bindings");
    CubicBinding cubicBinding = (CubicBinding)bindingContainer.findCtrlBinding("Record");
    CubicEditor cubicEditor = cubicBinding.getCubicEditor();You can then add a layer:
    LayerDefinition layerDefinition = new LayerDefinition("Product");
    cubicEditor.addLayer(DataDirector.ROW_EDGE, 1, layerDefinition);and remove a layer:
    cubicEditor.removeLayer(DataDirector.COLUMN_EDGE, 0);At the end, you'll need to PPR the Pivot Table.
    Hope that helps.
    Jim

  • ADF Pivot table - Custom Pivot

    Hello ADF Experts,
    I would like to pivot to row/column using my custom method than using the default API as ADF pivot table does not support asymmetric pivoting.
    For example I have below as base grid:
    Product
    Geography
    Sales
    Prod1
    US
    100
    Prod2
    IN
    50
    UK
    30
    If I move Geography to columns, it will create invalid layout.
    Product
    Sales/US
    Sales/IN
    Sales/UK
    Prod1
    100
    Prod2
    50
    30
    Now you can observe that Prod1->Sales/IN, Prod1->Sales/UK and Prod2-> Sales/US is empty which is not in sync with my database as there are values 200, 300, 40 respectively.
    To avoid such empty cells, I would like to write my custom method to fetch the new values while pivoting.
    How can I do this?

    Hi Timo,
    Jdev version: 11.1.1.7
    Custom method will be my method which will pivot to columns as well as populate the empty cells(the cells which are created by asymmetric layout).
    Basically I would like get the new grid data after pivoting and refresh the pivot table if its asymmetric with empty cells.
    Unfortunately my data is in PageFlowScope so it doesnt get refreshed.
    Regards,
    Suresh

  • 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

  • Does ADF pivot table in JDeveloper 11.1.1.2.0 have a maximum number of rows

    Does ADF pivot table in JDeveloper 11.1.1.2.0 have a maximum number of rows that can be fetched from the database?

    mmurmeli,
    Seems then that you've identified how to allow more rows (increase the heap space) ;)
    Hard physical limits aside, there is a practical limit to how much information a single human mind can absorb.
    John

  • ADF Pivot Table - Render Labels at all times

    Hi,
    (There already exists another post for this issue, but without any answer.)
    In ADF Pivot table the column labels are not static, they are visible only when the mouse is moved over the labels. Is there some way to permanently display labels at all times?
    Thanks,
    Hiten
    http://india-votes.blogspot.com

    I have the same requirement. Were you able to figure out?

  • How to show the filter and sort capabilities in adf dynamic table

    hi
    how to show the filter and sort capabilities in adf dynamic table..
    Pls help me

    Hi
    Click on a colum in your table and go to the properties pallet
    make true the sortable property then you can sort the table according to that column
    Thanx
    Padma

  • 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

  • ADF Pivot table - determining aggregation type based on dynamic value items

    Hi,
    I am trying to build a pivot table in ADF. The data-value rendered (bold section below) produces multiple data items dynamically.
    <pivotTableDataMap>
            <columns>
              <item value="Name" label="Name"/>
              <data aggregateDuplicates="true" defaultAggregateType="SUM">
               <item value="Value" label="__NO_LABEL"/>
              </data>
            </columns>
    </pivotTableDataMap>
    Since, all these data item(s) are rendered dynamically and based their names, the aggregation could be SUM/AVERAGE etc...
    Looking at the Pivot documentation, it says that I can use the 'aggregateType' property of the <item> element to override the 'defaultAggregateType' defined at the parent <data> element. Something like -
    <data aggregateDuplicates="true" defaultAggregateType="SUM">
              <item value="Sales"/>
              <item value="Units" aggregateType="AVERAGE"/>
            </data>
    However in my case the <item> are getting populated dynamically, I cannot put the aggregate type using declarative approach.
    Is there any other way where I can define the aggegrate type for this use-case?
    Thanks
    Sachin

    Hi,
    I am trying to build a pivot table in ADF. The data-value rendered (bold section below) produces multiple data items dynamically.
    <pivotTableDataMap>
            <columns>
              <item value="Name" label="Name"/>
              <data aggregateDuplicates="true" defaultAggregateType="SUM">
               <item value="Value" label="__NO_LABEL"/>
              </data>
            </columns>
    </pivotTableDataMap>
    Since, all these data item(s) are rendered dynamically and based their names, the aggregation could be SUM/AVERAGE etc...
    Looking at the Pivot documentation, it says that I can use the 'aggregateType' property of the <item> element to override the 'defaultAggregateType' defined at the parent <data> element. Something like -
    <data aggregateDuplicates="true" defaultAggregateType="SUM">
              <item value="Sales"/>
              <item value="Units" aggregateType="AVERAGE"/>
            </data>
    However in my case the <item> are getting populated dynamically, I cannot put the aggregate type using declarative approach.
    Is there any other way where I can define the aggegrate type for this use-case?
    Thanks
    Sachin

  • Drilling in ADF Pivot Table

    I am new to ADF and I have the following question:
    I define a pivot table with Year, Area as row header columns.
    In the "Create Pivot Table" pop-up, I specify "Insert Drilling" and I select "Year to Area".
    So far so good. I can drill from Year to Area, e.g.:
    I can go from:
    Year +
    to
    --- Area1
    Year -
    --- Area2
    Now, I run my test app and in the pivot table I switch the order of Year and Area column.
    The table adjusts fine but I cannot drill by Area (I cannot collapse all Year rows for a specific Area). e.g.
    Area1 +
    So basically, I wish I could define the "Area to Year" drilling back in the original "Create Pivot Table"
    pop-up so that when I reorder the columns in the row header, I could continue to drill.
    Is there a way I can do this?

    hi timo
    my Jdev version: 11.1.1.3
    case: The table name is employees ,it has some columns as id , name, department_name.
    the data of table is
    id name department_mane
    1 Tom dep_1
    2 Mary dep_1
    3 Lili dep_2
    4 Bobo dep_2
    5 Lucy dep_2
    i want to display as follow:
    id name
    department_name : dep_1 (2) <!-- '2' is the count of the department_name is common-->
    1 Tom
    2 Mary
    department_name : dep_2 (3) <!-- '3' is the count of the department_name is common-->
    3 Lili
    4 Bobo
    5 Lucy
    thanks and bast regards.

  • Command link in adf pivot table

    Hi,
    I Created one View Object (WrkVOR) Based on below query
    Select Desc1,Desc2 ,Date,Sum(Amount) From populate_wrk Group by Desc1,Desc2 ,Date
    Based on View Object we created pivot table
    Rows - Desc1 ,Desc2
    Column - Date
    Amount will come under each date (Like Matrix report)
    Up to It is working fine
    i added a command link on data(Amount) when i click the command link i am getting below error
    DVT-2015 Slice 1 Exceeds boundary -3
    please help....
    Thanks
    shk

    Hi,
    the real problem of the original poster seems to be <af:commandLink text="#{row.GlobalDealId}" id="cl1" action="createMDM" immediate="true" partialSubmit="true"> having immediate set to true in which case the request goes from restore view to render response. You usually use immediate=true on a command item to cancel an action (bypassing all the other JSF lifecycle steps).
    Peter551059,
    you don't give us much information about your case. So if the problem is IE9 and you verified IE9 is supported for the version of JDeveloper you use, then - in case you have a support contract - my best advise is to file a service request and have support looking at it just in case you hit a defect that should be filed as a bug
    Frank

  • Display value and percentage of row in pivot table w/o double counting...

    Hello,
    I am wondering how/if one can show a metric value and the row percentage it represents without double counting. So far, I have attempted to duplicate the metric value layer, move the duplicated layer in the measures section of the pivot table next to the original layer (i.e. I have the value twice in the measure section), and set the format of the duplicated layer to "show data as > percent > row".
    This makes the trick in terms of the data I see in the table; however, the values displayed in the table are double counted in the chart. I guess this makes sense since I have duplicated the metric value.
    Any thoughts on how I could tackle this issue differently?
    Thanks,
    JP

    You can do all that in the Pivot Table... Go to the measure properties and Duplicate Layer...than Show as...
    Dont need to duplicate the criteria...
    Antonio
    BExpert Brazil

  • Forms Builder-hierarchical tree(expanding and collapsing nodes)

    hi friends,
    can anyone help me with populating my hierarchical tree form by using codes for collapsing and expanding?
    for instance when_button_pressed:
    tree_control.expand_all(tree_control.v_item_name); //this is for expanding all the nodes in the tree structure
    well, i have an sql statement in my record group which in turn defines the structure of the hierarchical tree.
    Is it possible to just use the codes 'tree_control.expand_all(tree_control.v_item_name);' like that in the when-button-pressed trigger?
    Thanks for any help :)

    Hi
    can anyone help me with populating my hierarchical tree form by using codes for collapsing and expanding?
    Pls have a look here ....
    Hope this helps...
    Regards,
    Amatu Allah.

Maybe you are looking for