How to create a pivot table from backing bean

Hi,
I need to create a pivot table from backing without having to create a Data Control.
I searched a lot but all comes to a Data Control, and uses backing bean to manipulate data or to display popup info.
Kindly advice if it can be done.
Links and documentation is appreciated.
sample is highly recommended.
Thank you in advance
Emile BITAR

Hi,
have a look at: http://www.oracle.com/technology/products/adf/adffaces/11/doc/multiproject/dvt/tagdoc/af_pivotTable.html
It should provide all the infromation you need
Frank

Similar Messages

  • How to create adf component dynamically from backing bean

    Hi i,am using dev 11g ver2..
    my requirement is to create a popup like an lov ,
    i need to create adf controls at the run time based on datatype of the table field
    Edited by: [email protected] on Jul 9, 2009 3:56 AM

    Hi Abhilash,
    Following sample could help you:
    //creates an instance of popup and set the id, which is equal to the tag <af:popup id="pop"/> in jsf page
    oracle.adf.view.rich.component.rich.RichPopup popup = new oracle.adf.view.rich.component.rich.RichPopup();
    popup.setId("pop");
    //creates an instance of dialog and sets its properties, which is equal to the tag <af:dialog id="dlg" title="Title"/> in jsf page
    oracle.adf.view.rich.component.rich.RichDialog dialog = new oracle.adf.view.rich.component.rich.RichDialog();
    dialog.setId("dlg");
    dialog.setTitle("title");
    //creates an instance of dialog and sets its properties, which is equal to the tag <af:outputText id="otindlg" value="Welcome"/>
    oracle.adf.view.rich.component.rich.output.RichOutputText opText = new oracle.adf.view.rich.component.rich.output.RichOutputText();
    opText.setId("otindlg");
    opText.setValue("Welcome");
    /*adds ouputText as child to dialog, which is jsf equivalent of
    <af:dialog id="dlg" title="Title">
    <af:outputText id="otindlg" value="Welcome"/>
    </af:dialog>
    dialog.getChildren().add(opText);
    /*adds dialog as child to popup, which is jsf equivalent of
    <af:popup id="pop">
                        <af:dialog id="dlg" title="Title">
                                  <af:outputText id="otindlg" value="Welcome"/>
                        </af:dialog>
    </af:popup>
    popup.getChildren().add(dialog);
    //Finally add the popup as child to the parent component could be a form or some other component and give this popup id to showpopupbehavior tag
    Sireesha

  • Question on how to create a pivot table

    Hi,
    I am trying to create a dynamic pivot table (the number of column and row layers change for each request) and I cannot use a data base structure to back it up.
    I thought of doing it through a managed bean but in order to do it I need to know how to create the PivotTableModel.
    The pivot table model requires a data source object and I do not know how to create it to support multiple row and column layers.
    Is there a default data source object that I can extend, or better yet is there a written example on how to create a pivot table model using a managed bean.
    Thanks,
    Or

    Hi,
    duplicate of ADF -11g : Question on how to create a pivot table

  • ADF -11g : Question on how to create a pivot table

    Hi,
    I am trying to create a dynamic pivot table (the number of column and row layers change for each request) and I cannot use a data base structure to back it up.
    I thought of doing it through a managed bean but in order to do it I need to know how to create the PivotTableModel.
    The pivot table model requires a data source object and I do not know how to create it to support multiple row and column layers.
    Is there a default data source object that I can extend, or better yet is there a written example on how to create a pivot table model using a managed bean.
    Thanks,
    Or
    Edited by: user638363 on Dec 18, 2008 7:02 AM

    Hi,
    beyond the documentation, the pivot table is described in
    http://technology.amis.nl/blog/2593/adf-faces-11g-reloading-the-matrix-using-the-pivot-table-component
    http://technology.amis.nl/blog/3786/creating-a-salary-heat-map-with-the-adf-11g-faces-pivottable-component
    http://technology.amis.nl/blog/3673/adf-11g-richfaces-a-closer-look-at-the-pivot-table-data-visualization-component
    I am not aware of any sample that directly meets your requirement
    Frank

  • How to create a pivot table similar to excel

    I would like to learn how to create a pivot table, similar to excel, thanks.
    Jmortiz

    Numbers does not have  pivot table function but can sort data, and summarize data.  If you can provide an example of the data you want to analyze I am certain we can help you in building summary tables.

  • How to call a Javascript function from backing bean without any event

    Hi,
    Someone knows how to call a Javascript function from backing bean without any event ?
    thanks

    Please review the following thread:
    ADF Faces call javascript
    Luis.

  • Need to Add and Remove Columns of ADF Read Only table from Backing bean

    I have a scenario where I am trying to Populate TransientVO which is shown has a ADF Read Only Table in page.
    I have couple of Check Boxes Based on their selection I am trying to render and hide certain Columns.
    But the Issue which I am facing is only the Column Header seems to change where as the Rows and Values doesnt..
    even If I apply the expression language rendering condition on the outputText inside those columns.. ..
    So I am thinking to add and remove VO Attribute columns to the table from backing bean.
    Need some sample code snippet or a better design to achieve this. Its kind of urgent too...having an aggressive deadline :(
    Please chip in People..
    Thanks in Advance .
    TK

    Table Code..
    <af:table value="#{bindings.InventoryGridTrans.collectionModel}"
                                    var="row"
                                    rows="#{bindings.InventoryGridTrans.rangeSize}"
                                    emptyText="#{bindings.InventoryGridTrans.viewable ? 'No data to display.' : 'Access Denied.'}"
                                    fetchSize="#{bindings.InventoryGridTrans.rangeSize}"
                                    rowBandingInterval="0" id="t4"
                                    partialTriggers="::sbcSales ::sbcUsage ::cb1">
                            <af:column sortProperty="Period" sortable="false"
                                       headerText="#{bindings.InventoryGridTrans.hints.Period.label}"
                                       id="c38">
                              <af:outputText value="#{row.Period}" id="ot33"/>
                            </af:column>
                            <af:column sortProperty="Past12SalesCount"
                                       sortable="false"
                                       headerText="#{bindings.InventoryGridTrans.hints.Past12SalesCount.label}"
                                       id="c29"
                                       rendered="#{backingBeanScope.IndexPageBackingBean.onUsage != true and backingBeanScope.IndexPageBackingBean.onSales == true}">
                              <af:outputText value="#{row.Past12SalesCount}"
                                             id="ot40"
                                             rendered="#{backingBeanScope.IndexPageBackingBean.onUsage != true and backingBeanScope.IndexPageBackingBean.onSales == true}"
                                             visible="#{backingBeanScope.IndexPageBackingBean.onUsage != true and backingBeanScope.IndexPageBackingBean.onSales == true}">
                                <af:convertNumber groupingUsed="false"
                                                  pattern="#{bindings.InventoryGridTrans.hints.Past12SalesCount.format}"/>
                              </af:outputText>
                            </af:column>
                            <af:column sortProperty="Past12UsageCount"
                                       sortable="false"
                                       headerText="#{bindings.InventoryGridTrans.hints.Past12UsageCount.label}"
                                       id="c40"
                                       rendered="#{backingBeanScope.IndexPageBackingBean.onUsage == true and backingBeanScope.IndexPageBackingBean.onSales != true}"
                                       visible="#{backingBeanScope.IndexPageBackingBean.onUsage == true and backingBeanScope.IndexPageBackingBean.onSales != true}">
                              <af:outputText value="#{row.Past12UsageCount}"
                                             id="ot47"
                                             rendered="#{backingBeanScope.IndexPageBackingBean.onUsage == true and backingBeanScope.IndexPageBackingBean.onSales != true}"
                                             visible="#{backingBeanScope.IndexPageBackingBean.onUsage == true and backingBeanScope.IndexPageBackingBean.onSales != true}">
                                <af:convertNumber groupingUsed="false"
                                                  pattern="#{bindings.InventoryGridTrans.hints.Past12UsageCount.format}"/>
                              </af:outputText>
                            </af:column>
                            </af:column>
                    </af:table>

  • How to Create ADF table from backing Bean

    Currently I am working on Jdeveloper11g.
    I have a requirement to create Table dyanamically .For that i will get info about table from config file.
    <?xml version="1.0" encoding="UTF-8"?>
    <Pages>
              <page1>
              <Type sortable = "false">TYPE</Type>     
                   <Decription sortable ="true">Description</Decription>
                   <Date sortable = "true" >Date</Date>
                   <Amount sortable ="false">Amount</Amount>
              </page1>
              <page2>
                   <Type sortable = "false">Account Number</Type>     
                   <Decription sortable ="true">Account Name</Decription>
                   <Date sortable = "true" >Creation Date</Date>
                   <Amount sortable ="false">Current Balance</Amount>
              </page2>
    </pages>
    Can you guide me what classes i have to use in backing bean.any sort of code or usefull Links will be highly appriciated.
    Thanks
    Jaydeep

    Hi Jaydeep,
    you can create ADF table using this code,
    RichTable table = new RichTable();
    table.setEmptyText("no rows yet");
    table.setVar("row");
    // add columns
    RichColumn column = new RichColumn();
    column.setHeaderText("Name");
    column.setId("id_column1");
    column.setAlign("right");
    column.setWidth("100");
    // Set output.
    RichOutputText output = new RichOutputText();
    output.setValue("value", "John M.");
    // Add output into column.
    column.getChildren().add(output);
    // Add column into table.
    table.getChildren().add(column);
    Good Luck.

  • How to create a Pivot table without aggregate function

    Dear team
    I have the following table. Follow the link to download SQL Script to create table
    https://drive.google.com/file/d/0B5nQIsvTifixV2Jkb043bVd2Zlk/view?usp=sharing
    I want to create a pivot or cross tab so that it appear like this
    LocationDesc
    >=360
    >=300
    >=270
    >=240
    <240
    Port Moresby
    John Aita
    Mawe Felix
    Augustine Eri Luke
    Joseph Aura
    Robert  ROAKEINA
    Port Moresby
    Ambane Gigmai
    Paul Dem
    Henry  Wanpis
    Tiniki Bau
    William Laki NIGINTS
    Port Moresby
    June Vutnamur
    Alphonse Waieng
    Rex TOMARA
    Mika OROMOIA
    Eveni Ekeni
    Mount Hagen
    Dominic Kouroi
    Senis Ospea
    JOSEPH KLAWA
    Peter WAI
    PHILIP JAMES
    Lae 
    Henry TIAS
    Mathew Dominic
    Jobert Idigel
    Wagi Jerry
    Christopher Bianta
    etc
    etc
    etc
    etc
    etc
    etc
    Marsh Narewec

    Hi Marsh,
    To achieve your requirement, you may reference the below query.
    --pivot the table to get the expected output
    ;WITH cte AS(
    SELECT *,ROW_NUMBER() OVER(PARTITION BY LocationDesc,BandGroup ORDER BY BandGroup) AS rn FROM [TmpBandGroup]
    SELECT LocationDesc,[>=360],[>=300],[>=270],[>=240],[<240]
    FROM cte
    PIVOT
    (MAX(EmployeeName) FOR BandGroup IN([>=360],[>=300],[>=270],[>=240],[<240])) PVT
    ORDER BY LOCATIONDESC
    --the pivot result can be validated with the queries below
    ;WITH cte AS(
    SELECT *,ROW_NUMBER() OVER(PARTITION BY LocationDesc,BandGroup ORDER BY BandGroup) AS rn FROM [TmpBandGroup]
    ,cte2 AS
    SELECT RN, LocationDesc,[>=360],[>=300],[>=270],[>=240],[<240]
    FROM cte
    PIVOT
    (MAX(EmployeeName) FOR BandGroup IN([>=360],[>=300],[>=270],[>=240],[<240])) PVT
    SELECT LocationDesc, COUNT([>=360]) [>=360] ,COUNT([>=300]) [>=300],COUNT([>=270]) [>=270],COUNT([>=240]) [>=240],COUNT([<240]) [<240]
    FROM cte2
    group by LocationDesc
    ORDER BY LocationDesc
    SELECT LocationDesc,bandgroup,COUNT(EmployeeName) FROM [TmpBandGroup] group by LocationDesc ,bandgroup
    ORDER BY LocationDesc,bandgroup DESC
    If you have any feedback on our support, you can click
    here.
    Eric Zhang
    TechNet Community Support

  • How to create a paritioned table from a partitioned table

    I have a paritioned table and I want to create a similar table which should be a partitioned table with the same data.
    Can anyone let me know the way to do it.
    thanks in advance...

    1) create the table with the same ddl (with a name change) as with which the other table was created and then simply INSERT all the data.
    2) export the table and import the table in another schema or database.
    HTH,
    L.

  • Create pivot table from multiple sheets

    How to Create single pivot table from multiple sheets

    Hello,
    Debra Dahlgleish has a tutorial video on her site: 
    http://blog.contextures.com/archives/2010/04/16/how-to-create-an-excel-pivot-table-from-multiple-sheets/
    This Office support article also covers the steps:
    http://office.microsoft.com/en-001/excel-help/consolidate-multiple-worksheets-into-one-pivottable-report-HA010226585.aspx
    Both the video and the article relate to Excel 2007 but the steps will be similar in current versions.
    cheers, teylyn

  • How Can I Add Pivot Tables of Excel Into JSP Pages

    Hello all,
    Basing upon a query to database, i wanted to add a Microsoft Excel pivot table functionality in JSP page [with the result of query].
    Is it possible to create a Pivot Table in JSP with dynamic data from database ??
    Can any body help me in solving this issue ???
    Thanks & Regards
    Krishna

    There are a few alternatives to doing this (depending on the clients you are serving this page up for).
    Going the pure HTML
    There is an open source project called JPivot which provides an HTML front end for Pivot Table (using tag libraries)
    Going the Microsoft Office route there are a few options:
    1) POI HSSF ( http://jakarta.apache.org/poi/index.html) allows you to "update" an existing Pivot table by replacing data values contained in a template pivot table.
    2) Use the open source XELEM api (xelem.sourceforge.net) which produces SpreadsheetML (Micorsofts current XML file Format). At present, I don't believe this handles creating a pivot table from scratch (you have to manually create the Pivot Table template, read in the template (with XELEM) and update the data values in the template before writing it out. (the same holds true for POI)
    3) Commercially the company I work for (www.workbeans.com) is writing a pure Java Pivot Table API that will allow you to create a Pivot Table in the Excel SpreadsheetML file format from scratch. (supported by Office 2000, XP and 2003). The Pivot table functionality isn't slated until a future release (Oct. 2005), so if you can wait until then we could help you further.
    Best,
    Eric
    M. Eric DeFazio
    Application Architect, workbeans
    [email protected]

  • Power Query; How do I reference a Power Pivot table from a Power Query query

    Hi,
    It's pretty awesome how you can define Extract Transform and Load processes within Power Query without having to type in a single line of code. However how do I reference a Power Pivot table from a Power Query query to avoid me repeatedly accessing
    the same data source (CSV) file with a view to increasing performance?
    We are aware of the reference sub menu option with Power Query. However the new query created by the "reference" option still seems to refresh data from the data source (CSV) rather than just referencing the base query. Is this understanding
    correct? There does seem to be a lot of hard disk activity when re-running the new query which is based on a base query rather than a data source.  So we were hoping the new query would just need to reference the base query in memory rather than rescanning
    the hard disk. Is there any way to ensure that the reference query just rescans the base query in memory?
    Kind Regards,
    Kieran.
    Kieran Patrick Wood http://www.innovativebusinessintelligence.com http://uk.linkedin.com/in/kieranpatrickwood http://kieranwood.wordpress.com/

    Hi Kieran,
    This sounds like something to be suggested for a future release. At the present time, Power Query will always re-run the entire Power Query query when refreshed. The Reference feature is analogous to a SQL view whereby the underlying query is always re-executed
    when it's queried, or in this case refreshed. Even something like using the Power Query cache to minimise the amount of data re-read from the disk would be helpful for performance but the cache is only used for the preview data and stored locally.
    It would be a good idea to suggest this feature to the Power BI team via the feedback smiley face.
    Regards,
    Michael Amadi
    Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to vote it as helpful :)
    Website: http://www.nimblelearn.com, Twitter:
    @nimblelearn
    Hi Michael, 
    Glad to hear from you about this.  And thanks to Kieran for bringing a very good valid point to debate. Will be glad to see this in future release. 
    - please mark correct answers

  • How do I create a pivot table in numbers?

    How do I create a pivot table in numbers?

    SO HERE'S WHAT I GOT TO WORK:
    Truth is all the real functionality of categories and pivot tables exists in the formulas. You just have to
    Create a new table with a list of the categories in the header column.
    Add SUMIFS() formula from the browser into the next column.
    Enter your arguments and make sure to check "Preserve Column" for each of them.
    Although it might not be apparent, you can enter multiple test value and condition pairs.
    While I admit the formulas are not nearly so graphic as categories, they are cleaner and less restricting, and they aren't any more difficult to work with than pivot tables.

  • How to create a temp table in the memory, not in disk?

    in sql server, you can create a temp table in the memory instead of disk,
    then you can do the insert, delete,update and select on it.
    after finishing, just release it.
    in Oracle,
    I am wonderfing how to create a temp table in the memory, not in disk?
    thanks,

    Thanks for rectifying me Howard.
    I just read your full article on this too and its very well explained here:
    http://www.dizwell.com/prod/node/357
    Few lines from your article
    It is true, of course, that since Version 8.0 Oracle has provided the ability to create a Keep Pool in the Buffer Cache, which certainly sounds like it can do the job... especially since that word 'keep' is used again. But a keep pool is merely a segregated part of the buffer cache, into which you direct blocks from particular tables (by creating them, or altering them, with the BUFFER POOL KEEP clause). So you can tuck the blocks from such tables out of the way, into their own part of the buffer cache... but that is not the same thing as guaranteeing they'll stay there. If you over-populate the Keep Pool, then its LRU mechanism will kick in and age its contents out just as efficiently as an unsegregated buffer cache would.
    Functionally, therefore, there can be no guarantees. The best you can do is create a sufficiently large Keep Pool, and then choose the tables that will use it with care such that they don’t swamp themselves, and start causing each other to age out back to disk.
    Thanks and Regards

Maybe you are looking for

  • Coloring of a (specific) row in ALV report-How?

    Hi Experts, Am looking to assign a color for a (specific)row in ALV report.......so, pls. let me know How to get it done? thanq

  • Unable to print, "printer error".

    I recently installed canon printer software when away on a trip to use someone else's printer.  When I returned home I was unable to print on my c309a all in one printer, running windows 7, have the printer on my home network.  I have uninstalled, re

  • Error in OS Log

    Hi Experts, In our system, we are getting an error message for every 5 seconde in OS Log. The error message is " An I/O operation initiated by the Registry failed unrecoverably. The Registry could not read in, or write out, or flush, one of the files

  • Can you please provide the .csv files used in Power BI Getting Started Guide

    Hi Team, I am exploring the Power BI app developed by Microsoft on My Windows 8 machine For that I found the Getting started guide from the below link http://office.microsoft.com/en-in/excel-help/power-bi-getting-started-guide-HA104103589.aspx?CTT=5&

  • What does this do?

    Greatest( Round( (nvl(a11.DISCH_THRU_DATE,sysdate) - a11.ADMIT_PRIMARY_DATE), 0), 0) , Hi can someone tell me what this does I found this in an existing report that I did not create and I am not familiar with this just a simple explaination as to the