ADF pivot table header cell iteration

Hi All,
I am working on a program where I want to pass the header cells separated by "|" to the analysis server.
for example:
||Fiscal|FPB|Projected Sales||KAV|Projected Sales||KCT|Projected Sales||KSA|Projected Sales||All Products|Projected Sales|
This should be result of a pivot table where Fiscal is on column layout and crossjoin of Product(FPB, KAV,KCT, ALL) and Measure(Projected Sales) on row layout.
Is it possible?
Thanks.

Hi,
according to the documentation, this should not be the case. As you can see, the documentation explicitly calls toString() for the string representation: http://docs.oracle.com/cd/E28389_01/web.1111/b31973/dv_crosstab.htm#CHDGCBIG . You can narrow down the problem by using the default cell format and see what this returns
Frank

Similar Messages

  • 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

  • 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

  • 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

  • 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?

  • 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?

  • Some of the pivot table header column not center-aligned

    I've dragged a pivot table model from Data Controls. The generated pivot table on page does not display some of the header columns center-aligned. I tried to set a css style in HeaderFormat listener for the columns, but it did not work. I checked the html source code and found the problem was caused by "colspan" not created properly. I'd like to know how pivot table header columns are created, anyone who knows please kindly give some tips,thanks!

    Try setting the Header Row to allow to repeat. I've had to set that Repeat option to get things to break over pages correctly.
    Ryan D. Lunka
    Cardinal Solutions Group
    [email protected]

  • Updating model for pivot table in af:iterator

    Using Master Detail relationship, i am trying to create multiple forms at runtime. I want to show all the forms at once. Each form has some header fields and a pivot table. Header field is coming from master table and pivot table should be made from child.
    I am using af:iterator to iterate over master table rows and show header:
    <af:iterator id="i1"
                value="#{bindings.MasterTableVO.collectionModel}" var="row"
                varStatus="index"> For pivot table, i dragged Child View Object from Data Controls to make pivot table.
    <dvt:pivotTable id="pivotTable1"
              value="#{bindings.ChildTableVO.pivotTableModel}"
              summary="pivot table" sizing="auto"
              pivotEnabled="false" drillingEnabled="false"/>                                    Now while iterating, i am not able to get updated model for pivot table. Values from Master table are being updated, but pivot table from child table showing details corresponding to the first row of master table everywhere.
    So can you please help me, how to get the updated pivot table model corresponding to the current row in parent iterator ?
    I am using JDeveloper 11.1.1.6.0
    Thank You.
    VS

    Hi Aswini ,
    I didnot worked for me. I need to change the usecase a bit..
    however you can eaisly display the af:table inside iterator in readonly mode, but when you perform crud operations inline then it gives problems..
    Can you explain your usecase.
    Regards,
    Santosh.

  • ADF Pivot Table

    Hi all,
    I am using JDeveloper 11.1.2.3.0
    Is it possible to create updatable pivot table in adf ?
    Expecting all of your valuable comments, links etc
    Thanks in advance
    gtg

    Yes you can edit cells in a pivot table. Check http://docs.oracle.com/cd/E24382_01/web.1112/e16181/dv_crosstab.htm#CHDCAFID (24.1.1.3 Editing Data Cells)
    Timo

  • 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.

  • 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

  • Table header cell dividers

    Is there a way to have to make the cells divider lines in a table header be a custom thickness. with different thicknesses on different pages. I am thinking there is no way to do this inside of FM 8. And would that be changed in the read and write or the dtd.

    Hi Frank,
    There's a somewhat more complicated way that has some advantage if you don't mind the work. This solution is to place PDF images of the titles in the header cells as Background Fill Images. The main advantage over a grouped text box is that the background fill image will track the particular cell exactly, even if rows and columns are added or deleted or resized, including the one that the image is in.
    Start with your title in a text box that "just fits".
    Click off the box and then click once back on the box, such that the handles are showing but the text is not selected.
    Command-C
    Switch to Preview.app and Command-N. You now have converted your title to a PDF.
    Still in Preview, Command-C to copy the PDF
    Switch to Pages, Select the Cell, Command-V to set the PDF into the background.
    Set the justification to centered, both vertically and horizontally for the best tracking.
    As far as the rotation goes, you can rotate the Text Box before you convert it, or you can rotate the PDF before inserting into the cell. It doesn't matter.
    Regards,
    Jerry

Maybe you are looking for

  • Lightroom Installation Failed on Windows 8.1

    While installing Lightroom cc on my windows 8.1, I met this message. Photoshop and illustrator have been installed successfully. Exit Code: 7 Please see specific errors below for troubleshooting. For example,  ERROR:   -------------------------------

  • Why my iMac can't sleep on it's own...

    Hey Folks, SMC reset, PRAM reset, unplugged all externals went back to a hardwired mouse, checked in safe mode. My 27 core i7 still won't sleep. So I resort to manually or scheduled sleep. Which isn't cool, since I want it to 'naturally' fall asleep.

  • I am trying to install Icloud on my pc but it will not download.It tells me to check the installer.

    I just bought an Ipad ,and I need to download Icloud on my pc, I am using windows vista servpack2 and I use Ie9.When I start the download,it goes almost to the end and comes up with a window that tells me the is a prblem with the installer?Is it my p

  • I'm a podcaster and my latest episode doesn't show up in the iTunes store

    I have The ****** Off World of Uncle Hal Radio Show and I have had a great time with it. Every week I upload my show and then ping iTunes. My latest episode will show up in the store pretty quick. I have subscribed to my own podcast (http://phobos.ap

  • Controlling issue

    I post one document in f-02 normal posting with ref cost center & Profit center i had give. If i want to check the amount like cost center level amount value is showing & But  profit center level the amount value is not updated can u tell me asap