How do you sum columns in same view

I have a search component (drag and drop the viewCriteria) with a table.
In the table is a column for an amount (number). I need to sum the amount and put it in the footer.
I have done this many times with master/detail. Lots of info on that on the web as well. Really simple.
In the view:
So I create a transient attribute (sumAmount).
I set the value to Expression and use one of the following (and several others that are not here).
On the screen:
drag SumAmount from the DC onto the footer. (OutputText no label)
OK so far!?
Run and query - (wishful thinking)
Change the query and new totals appear (not that far yet).
I have tried several permutations.
adf.object.sum("Amount")
sum("Amount")
adf.object.ViewVO.getrowset.sum("Amount")
All show absolutely nothing - I have the output text defined in the footer and the footer is displaying fine.
The table also has some dates in the criteria - when I generate the rowImpl - the search panel is rendered useless due to the Date Domain vs Sql Date ( I know how to manage this)
This has to be simple - just need to get a bit of help on it.
I have tried to do this similar to the master/detail (but in this case - no detail). Still no value.
I should be able to create a "formula" column without the use of java rowImpl.

Finally - I have all the pieces - they are (were) as follows.
1) create the View Object.
2) add the summary column (transient) (be sure to get the data type correct (Number or BigDecimal)).
3) create the view object implementation. (the Java tab in the view object - first box)
4) create the view row implementation and expose the accessors. (the Java tab in the view object - second box).
5) use Steve Muench's help to do the summation - it is a bit tricky and it has a depreciated call in it - but it works. (it is easy to modify to fit - just get the right attribute name for the sum & data type - I used Big Decimal)
http://otn.oracle.com/products/jdev/tips/muench/recalctotalvo/RecalcTotalOfRowsInVO.zip (may have to look for the proper link - I found a lot of broken references)
6) add a footer to the table in the search page and drag and output text box into it (all one step with drag and drop) - leave it empty.
7) in the bindings page of the screen - add an attribute binding for the summary column from the Application Module.
8) once the binding is made, go back to the output text box and use the inspector to create an expression and bind the value to "adf bindings" - data - and select the view-backing definition from the binding you just created.
9) if you want to format this to right justified - surround with JSF HTML "panel grid - 1 column width=100% and style= text:align right - I usually do bold as well.
10) sit back, relax and run - it should work.

Similar Messages

  • How do you make a Spry menu view on all pages but only have to change it one place?

    How do you make a Spry menu view on all pages but only have to change it one place? Someone told me maybe I could create a Library item. Any help will be appreciated.

    If your pages all have the same basic design, using a DW Template would be a way to do it...
    http://help.adobe.com/en_US/dreamweaver/cs/using/WScbb6b82af5544594822510a94ae8d65-7abea.h tml

  • How Do You Spell Check in LIVE view using Fluid Grid

    How Do You Spell Check in LIVE view using Fluid Grid???
    When using LIVE view in Fluid grid... Spell Check is only available in Code view... which doesn't seem to work.
    huh... it doesn't end!

    At the moment, you don't.  The Adobe team is aware of it.
    Provide "Design View" for Fluid Grid Webpages
    Nancy O.

  • How do you switch to a vertical view?

    how do you switch to a vertical view in Adobe Digital Editions 3.0

    i tried that unsuccessfully.  when I added the 2nd email address i got a popup that says "Unable to verify email because it is already in use."  Thats the one I would like to switch to.  So.... i would like to delete the current apple ID and replace it with the Apple ID that is "already in use".

  • HT4515 How do you change the setting to view the iPhone 5 horizontally.  It is locked in the vertical position

    How do you change the setting to view the iPhone Horizontally?  It is locked in the vertical setting.  Thanks

    Orientation lock is covered in the manual.
    Click Support at the top of this page, then click Manuals

  • How do you delete programs from recently viewed

    while in netflix programming, how do you delete from the recently viewed?

    You don't, it's a selection of your most recently watched, old ones disppear to allow for new titles though.

  • How do you sum a column based on categories ?

    OK so I'm trying to get round the dissapointing idea that you can't use category headings as values. I am trying to sum the values in a category and use the result.
    So I take it the work around for using the summary values is to sum the values conditional on the type of category ?
    How do you do this ? Looking at other posts its probably something to do with SUMIF or SUMIFS ?

    David,
    Thank you very much for your Reply.I was looking,who could understand my situation and guess "YOU DID'
    I'll tell my situation David.
    We used to have a sql filter for this Report .In 11.1.1.3 version it used to work ,but in 11.1.1.5 we have a bug .if you have a sql filter in the Report it is not allowing us to use navigation links on that report it is saying some "Assertion Error".
    We are using this Report on Dashboard .If we use the report on Dashboard and if that Report contains the Sql Filter than it's throwing the "ASSERTION ERROR".
    but if i open the same Report from the catalog then the navigation links works fine
    Can you help me out with this one .
    Thanks
    Xavier

  • Text styling issues - how do you balance columns?

    Hi! I am setting up some custom paragraph styles and am running into some issues with the columns not ending in the same place. Please see atached screen grab. 
    My Body text settings are:
    Embedded font - Berthold Imago family (16)
    Justified
    Line Spacing - 1.5
    Line Spacing After Paragraph - 4pt.
    Paragraph Indents First Line - 26pt
    Prevent widow and orphan lines (checked)
    Can anyone please tell me how to make the columns end in the same place?  Is there a work around for vertical justification - a way to streach the leading?
    Thank you in advance!

    Assuming you have Pages 5, you didn't say:
    select the text > Format > Layout > Columns > whatever number you want
    Peter

  • How to add new columns in materialized view

    We are using Oracle 10g Release2.
    We need to add new columns to a prebuilt fast refresh materialized view. We want to add 4 new columns in this table and make them part of select statement in the materialized view. We can drop the view but we cannot do complete refresh after that because the paymentsInfo table has a creation_timestamp column which is populated by before row insert trigger with systimestamp. If we did the complete refresh, all values in this column shall be changed.
    CREATE MATERIALIZED VIEW  paymentsInfo
    ON PREBUILT TABLE
    REFRESH FAST
      ON DEMAND
      START WITH SYSDATE
      NEXT SYSDATE+5/1440
      WITH PRIMARY KEY
    DISABLE QUERY REWRITE AS
    SELECT PAYMENT_ID,BATCH_REFERENCE, TRANSACTION_REFERENCE, NO_OF_TRANSACTIONS, DEBIT_ACC_NUM,... from payment@dblink
    I want to know is there any other way to add new columns without losing any changes from the master table.
    Thanks.

    There is no way to add new Columns to Materialized view. To add new columns, it has to be dropped and re-built again.
    Extract from Oracle Documentaion:
    Use the ALTER MATERIALIZED VIEW statement to modify an existing materialized view in one or more of the following ways:
      To change its storage characteristics
      To change its refresh method, mode, or time
      To alter its structure so that it is a different type of materialized view
      To enable or disable query rewrite
    If you have a problem of Complete refresh, then It may be beneficial to get the backup of the MView; Drop and re-create it with modified definition; Restore the backup data leaving the new columns untouched (assuming they are to be kept as fetched from the Master site).

  • How do you add scrolling to a view in TabbedViewNavigatorApplication?

    This is a mobile app for iOS.
    This particular view includes a series of questions. Answers are posted at the top, with new questions appearing below, meaning that the page gets longer and eventually extends somewhat below the bottom on landscape view.
    Thanks to another post, I was able to work out that mx.core.FlexGlobals.topLevelApplication.aspectRatio reliably returns either "landscape" or "portrait." The other width and height variables do not seem to be reliable.
    Listening to the ViewNavigatorEvent.REMOVING event reliably allows me to re-orient components, using Actionscript, as the user changes the orientation.
    The final part of the solution is to add scrollbars on the landscape view, so that things in that orientation don't become inaccessible.
    So the question is: How does one add scrolling to a View in TabbedViewNavigatorApplication, in a way that allows the user to re-orient the device as desired?
    I know I'm supposed to wrap the scroller around the component. I've tried this in multiple ways, and haven't stumbled on the right method (Im more familiar with Flex 3 than with Flex 4). I haven't seen a solution posted anywhere, though I have read Adobe documentation stating that it is possible. I've read the posts in this forum back to the release of Flex 4.5.1 and haven't seen a solution. Copy and paste code, including import statements, would sure be appreciated.
    Thanks.

    I would like to know this too.
    Howdo you enable scrolling of a TabbedViewNavigatorApplication?
    If I have 10 tabs but only wish to view 3.5 tabs at a time, how do I do this?

  • How do I sum across the same table in multiple sheets?

    So I'm trying to figure out an annoying problem.
    I have a largish (100's) amount of data with each collection being a table in a sheet, one sheet per data collection. This means I have 100's of sheets, each with the same table name and layout. Each sheet has several hundred data points in it.
    How do I do a sum across all of the same table in all the sheets?
    For example I want to do Sum('Data Sheet Number *'::'Table 1'::A1) to get a sum of everything in all the A1 cells of all the sheets named 'Data Sheet Number ' followed by anything (I'm using the star in the same way one would do it in a shell...)
    Thanks!
    Message was edited by: unusedusername
    Message was edited by: unusedusername

    To respond to WWJD: I was handed the data and I don't have any control over it's format...
    I found the answer in the forums though, so I guess I'm answering my own question
    http://discussions.apple.com/thread.jspa?messageID=6203991&#6203991
    The auto-filling INDIRECT reference worked very well for me.

  • How do you restrict web browsing to view only specified sites for business use?

    Hello, I need to restrict the use of Firefox and Internet Explorer to only specified websites that we use for business use.
    I have a problem with a number of employees using unauthorized and dangerous websites that have put my business computers at risk.
    Since it is impossible to police the employees viewing habits in real time, I need to restrict the viewing. How do I set up a list of only allowed sites that can only be overridden by admin privileges despite user accounts?

    You will have to block such unwanted sites in a firewall or router or proxy and only allow access via that proxy.<br />
    All other ways can easily circumvented, by starting Firefox in [[Safe mode]] if it is an extension or by using a portable Firefox version.
    Your above posted system details show outdated plugin(s) with known security and stability risks.
    # Shockwave Flash 10.0 r45
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/

  • How do you set the Crystal Report Viewer Printer to Duplex

    Using the code below I can print in duplex mode, but this does not let me view a report before printing
    How do I set the Printer in the Viewer Control Bar of the Crystal Report Viewer to Duplex Printing programmatically rather than having to manually select Duplex through the preferences option?
    I have searched but the only example code I found produces errors in the code and will not run
    Private myReport As ReportDocument
    myReport = New ReportDocument()
    myReport.PrintOptions.PaperSize = PaperSize.PaperA4
    myReport.PrintOptions.PaperOrientation = PaperOrientation.Portrait
    myReport.PrintOptions.PrinterDuplex = PrinterDuplex. Vertical
    myReport.PrintToPrinter(3, False, 0, 0)
    In my VB6 Project that I am converting to VB.NET when I added Report.PrinterDuplex = crPRDPVertical, this allowed me to view the report and then print with Duplex without having to set the Print Preferences manualy
    I found 1386475 - How to set printer name and print job title at runtime using Report Application Server SDK for Visual Studio .NET
    But this causes errors
    Imports CrystalDecisions.ReportAppServer.ClientDoc
    Imports CrystalDecisions.ReportAppServer.Controllers
    Dim boReportClientDocument As ISCDReportClientDocument
    Dim boPrintOutputController As PrintOutputController
    Dim boPrintReportOptions As New PrintReportOptions
    Edited by: DavidMills on Feb 18, 2011 11:58 AM

    Hi David,
    You can mix both engines, just declare them both with different report object names. Here's all of my references:
    using System;
    using System.IO;
    using System.Xml;
    using System.Drawing;
    using System.Collections;
    using System.ComponentModel;
    using System.Windows.Forms;
    using System.Data;
    using CrystalDecisions.CrystalReports.Engine;
    using CrystalDecisions.Shared;
    using CrystalDecisions.ReportAppServer.ClientDoc;
    using CrystalDecisions.ReportAppServer.Controllers;
    using CrystalDecisions.ReportAppServer.ReportDefModel;
    using CrystalDecisions.ReportAppServer.CommonControls;
    using CrystalDecisions.ReportAppServer.CommLayer;
    using CrystalDecisions.ReportAppServer.CommonObjectModel;
    using CrystalDecisions.ReportAppServer.ObjectFactory;
    using System.Data.OleDb;
    using CrystalDecisions.ReportAppServer.DataSetConversion;
    using CrystalDecisions.ReportAppServer.DataDefModel;
    using CrystalDecisions.ReportSource;
    using CrystalDecisions.Windows.Forms;
    using System.Data.SqlClient;
    using System.Runtime.InteropServices;
        public class frmMain : System.Windows.Forms.Form
            CrystalDecisions.CrystalReports.Engine.ReportDocument rpt = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
            CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument rptClientDoc;
    My file open dialog:
            private void btnOpenReport_Click(object sender, System.EventArgs e)
                rptClientDoc = new CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocument();
                openFileDialog.Filter = "Crystal Reports (*.rpt)|*.rpt|Crystal Reports Secure (*.rptr)|*.rptr";
                openFileDialog.FilterIndex = 1;
                 if (openFileDialog.ShowDialog() == DialogResult.OK)
                      btnOpenReport.Enabled = false;
                      btnSaveRptAs.Enabled = false;
                      object rptName = openFileDialog.FileName;
                    try
                        rpt.Load(rptName.ToString());
                        rptClientDoc = rpt.ReportClientDocument;
                    catch (Exception ex)
                        MessageBox.Show("ERROR: " + ex.Message);
                        return;
                    MessageBox.Show(rptClientDoc.MajorVersion.ToString() + "." + rptClientDoc.MinorVersion.ToString());
                        MessageBox.Show("Report opened.","RAS",MessageBoxButtons.OK,MessageBoxIcon.Information );
                        btnOpenReport.Enabled = true;
                        btnSaveRptAs.Enabled = true;
                    //MessageBox.Show(rpt.RecordSelectionFormula, "my record: ", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    MessageBox.Show(rpt.ReportRequestStatus.NumberOfPages.ToString(), "Number of Pages: ", MessageBoxButtons.OK, MessageBoxIcon.Information);
    As for the page number I use it off the Engine report object:
    MessageBox.Show(rpt.ReportRequestStatus.NumberOfPages.ToString(), "Number of Pages: ", MessageBoxButtons.OK, MessageBoxIcon.Information);
    And it works for me...
    Thank you
    Don

  • How to increase the column width when viewing a spreadsheet created by a concurrent request

    I have created a BI Publisher template to display the output from scheduled discoverer reports. It contains sixty three columns and the heading for each one is a variable but, in order to fit these on the page, each column is about a half a centimeter wide.
    When I use the Preview Template option from the RTF file and select Excel the columns are automatically sized to accommodate the data (which is what is required). However, when I upload the template and run a concurrent request and view the output, each column is shown as half a centimetre in width so the user can see very little of the data without resizing all columns. We do not think that this will be acceptable to our users.
    We are using Excel 2010 in both cases.
    I have looked at this forum and tried a few things without success so any help will be gratefully received.

    for ebs 12.1.3 you can create excel template by bip desktop 11
    i used bip desktop 11.1.1.5 with ms office 2010 for create excel template for ebs 12.1.2 and 12.1.3
    using excel template based on what do you want to do - if report contains complex visualization or many merging of cell and etc
    for starting
    https://blogs.oracle.com/xmlpublisher/entry/real_excel_templates_i
    Creating Excel Templates - 11g Release 1 (11.1.1)

  • How to Hide Size Column in List View

    My default setting for the Finder is to have folders display in list view with the size column turned off. This works like a charm for every folder except the Applications folder which always displays a size column whenever the finder is re-launched (it's always scrolled to the bottom of the list too, which is weird). It wouldn't bother me if the size values were cached somehow and just updated quietly in the background but it takes quite a while to calculate each value and actually slows down the finder.
    I've tried deleting finder preferences but to no avail.
    Does anyone know what's going on here?
    [The above was originally posted here [http://discussions.apple.com/thread.jspa?messageID=9524102#9524102] but I was asked to move along by a surly faced police officer]

    OK. Problem fixed but unfortunately not completely solved.
    Talking about permissions and administrator issues made me wonder, so I logged in using my admin account and seemed to be having exactly the same issue. I was unable to set a default permamantly for the Applications folder. Except that when I tried to set a default in another folder (Documents I think) and restarted the Finder the setting held for all directories. When I logged back in under my regular user account it also held.
    I have finally eliminated that pesky size column -- for good! (Of course I may want it occasionally, but that's at my discretion). The window also maintains a correct scroll point, corresponding to where it was last positioned.
    I wish I knew exactly what has happened. All I really know is that fiddling (as usual) has fixed it and that it probably has something to do with Administrator privileges.
    Thanks again for your suggestions and especially for being a sounding board.
    Josh

Maybe you are looking for