JDev 11.1.1.3: Column Sum needs to work like getEstimatedRowCount

Hi there,
I am working with the table component and a large dataset (thousands of rows).
I need to see a column total (sum) in the column footer. Since we're dealing with a large dataset, I thought the appropriate way to do this is to select sum(columnName) which works just fine.
What I want my total to do though is to also act dynamically to changes in data within the table so that if I insert a new row or update a row, the total will change.
I thought of the getEstimatedRowCount method and how it selects count(*) and also merges local information such as row inserts and deletes to give you the proper row count.
I want a way that I can get my sum in the same manner. So that I can select sum(columnName) and also keep track of the local changes.
Any thoughts of how to do this ?
Thanks,
Mark

Hi,
what about
- Managed Bean in ViewScope to hold the SUM value.
- Summary field that references SUM value from its value property
- When managed bean instantiates, access ViewObject and issue query select sum(...) from ...
- Define a value change listener on column cell field and have it referencing the same managed bean
- Set the column cell have its autosubmit property set to true so the value change is called whenever the user leaves the field
- In the value change listener, compare valueChangeEvent.getOldValue with valueChangeEvent.getNewValue and build the Diff
- Update the SUM value in the managed bean
- Access the SUM field (the UI component to show the SUM from the managed bean) and PPR it
This should work best and performant
Frank

Similar Messages

  • Query Print Layout column sum in report footer

    Hi Experts,
    I am utilizing a query and created the layout via Query Print Layout. I am using sort and group functions which filters my column sums for a certain field conditions. My problem is that when I want to make a total column sum for all the repetitive footers' column sum, the system shows a message that only repetitive areas can be average/ sum.
    Is this the standard behaviour of the system? Or is this a limitation if we are using the print layout via Query print layout. Any workaround to get the final total for all pages column sum?
    Please advise.
    Thanks,
    Don

    hello
    Don
    what u want actually i dint understood as i now but u need colsum of ur repetitive fields or repetitive footer fields
    I).if u want repetitive footer all columns sum take the contact of those fields ex:(concat(F_a+F_B -
    )) so u can get ur total for repetitive footer fields
    II).if u want repetitive area lines colsum for every field u take as colsum with respect to the unique id of repetitive area fields
    regards
    Jenny

  • How to make the column title needs to be on each page?

    If a document has more than one page than a column title needs to be on each page,I can use Word fuction to do that. But If I Only use XML publisher, How to do it.
    Message was edited by:
    zhengr

    Hi
    If you mean how do you repeat the column titles on a table if the table extends over several pages then all you need do is:
    Highlight the table header row
    Right click and select table properties
    On the Row tab, specify that the header row should be repeated on every page
    Save your work
    XMLP will now respect the word setting and will repeat the header row on evey page the table needs.
    Regards, Tim

  • Line Item Display Variant MIRO-column position needs to be changed..

    Hi,
    What is the possible way of setting the column position in line item display variant in MIRO screen.
    I need to change the positions of couple of columns so need to have  one layout as per my requirement.
    Does this involve only confiuration or it also needs ABAP changes?
    Request to suggest in detail if any one has done it already.
    Thanks in advance.
    Reagrds,
    BM

    Hi Charlie,
    Thanks for this help.However I have couple of doubts.
    When I save the new variant it asks me for package or local object.
    Cutrrently I have selected n saved as local object but what is the real time scenarion.Do we need to select any package on this screen.I am not aware of these things in detail so nwant to know the difference between a local object and a package and is it functional consultant's task to do this or developers should do this since they can select the package
    Please advise on this.
    Thanks in advance.
    Regards,
    BM

  • What to do if my master page is too small for custom master page column, I need to change the papers

    What to do if my master page is too small for custom master page column, I need to change the papersize from A4 to US letter size *

    My 2nd gen works fine with WPA2 and AES encryption.
    You may need to go back and start over.  Reset the router back to factory defaults, log on as the admin, set up security, DHCP, and make sure the IP address pool has enough IP addresses to lease to ALL of the computers/devices that will connect to that the router.

  • Why does the sum function not work when I try to add a column of decimal numbers?  The value is always returned as 0.  No problem with whole numbers but decimals do not work!

    just bought a MacBook Air and using Numbers to make a spreadsheet for financial purposes.  The sum function is working ok for whole numbers but when I try to sum a column of 2 decimal place numbers the result always comes back as 0.  Can anyone help?

    Hi laura,
    I suspect that your 2 decimal place numbers are formatted as text. Change the format of the column to currency and see it that works.
    Also You might want to update your profile to reflect your current systems!
    quinn

  • Aggregation in column expression is not working in 11.1.1.7.1

    Hi Guru's,
    After upgrading the application from 11.1.1.6.8 to 11.1.1.7.1 Aggregations in the column expression is not working. I was using the below formula in the column expression
    100.0* (Sum((CASE WHEN Service Level >= 60 THEN 1 ELSE 0 END)) / COUNT(DISTINCT(HOUR_INTERVAL)))
    I am getting the answer but the values are very high compare. I tried using just Sum((CASE WHEN Service Level >= 60 THEN 1 ELSE 0 END) it also giving very high values.
    Please let me know is there is a bug or something need to setup.
    Regards
    @li

    bug 16616127 has been fixed in 11.1.1.7.1
    make sure you refresh the catalog to upgrade to your version

  • Group by with column alias does not work?

    Hello,
    The column alias is not working in the group clause?
    select col1,col2-col3 "col23", sum(col4)
    from table1
    group by col1,col23
    Error is col23 is invalid identifier.
    Thank you.

    I guess it's the double quotes around bonus:
    SQL> select empno, deptno, sum(bonus)
      2  from
      3  (
      4     select empno, (sal + 500) bonus, deptno
      5     from emp
      6  )
      7  group by empno, deptno
      8  ;
                   EMPNO               DEPTNO           SUM(BONUS)
                    7900                   30                 1450
                    7369                   20                 1300
                    7499                   30                 2100
                    7521                   30                 1750
                    7566                   20                 3475
                    7654                   30                 1750
                    7698                   30                 3350
                    7782                   10                 2950
                    7788                   20                 3500
                    7839                   10                 5500
                    7844                   30                 2000
                    7876                   20                 1600
                    7902                   20                 3500
                    7934                   10                 1800
    14 rows selected.

  • I need some working examples with pl/sql records and pl/sql tables.

    i am new to pl/sql tables and pl/sql records. i need some working examples on pl/sql records and pl/sql tables from basics to hoghlevel.how to use then procedures and functions and packages.

    i am new to pl/sql tables and pl/sql records. i need some working examples on pl/sql records and pl/sql tables from basics to hoghlevelThere is no such thing as PL/SQL "+tables+". This is a misnomer and creates the perception that a PL/SQL "table" is somewhat like a SQL table. Nothing can be further from the truth. The correct term is "+collection+" or "+associative array+". Compared to SQL tables, these are very primitive structures, very rigid structures, cannot scale, and can be quite expensive memory wise.
    That is not to say do not use an associative array or collection. These are very useful tools.. but only when applied correctly. Like using a collection for a bulk fetch to transfer more rows between the PL and SQL engines and thus decrease context switching.
    Unfortunately, quite often we see the row-by-row and slow-by-slow approach - where the developer uses SQL as an I/O only layer, pulls rows into expensive PL engine memory into record structures and arrays, and then process the rows there.
    So before looking at working example (even the wrong approach's code will compile and run and work in practice), make sure that you know the fundamentals of correctly using the PL engine and correctly using the SQL engine. And these fundamentals can be summed up into a very basic rule:
    Maximize SQL. Minimize PL/SQL+
    Get this rule right, and you will have a sound foundation for writing performant and scalable Oracle applications.

  • HT1206 I need a work iTunes account for my work system, but used my work email address as an associated email to my personal iTunes account. Now I can't use the work email to create the new iTunes account.  how do I remove the email from my personal accou

    Since I upgraded to Mavericks from Snow Leopard I need a work iTunes account for my work system, but used my work email address as an associated email to my personal iTunes account.
    Now I can't use the work email to create the new iTunes account.  how do I remove the email from my personal account?

    You can long into an account via this page and update the email addresses that you have on it : http://appleid.apple.com

  • I bought CS6 creative suite. As of now i need to work each application in separate separate system. Can any one please help me how to solve this problem.

    I bought CS6 creative suite. As of now i need to work each application in separate separate system. Can any one please help me how to solve this problem.
    I saw the below quote on Adobe forum
    "You may install software on up to two computers. These two computers can be Windows, Mac OS, or one each."
    If i install each application in single single system the system count is more than two. In this case, are we have any license issue? Please advice how the problem will solve?
    If possible please send the advise to my mail id: <Removed by Moderator>
    Thanks
    Uvaraj S

    I already answered that.  If you purchased a Suite then you can only install and activate it on two machines.  Even if you only insdtall one of the applications of that suite, it counts as one activation of the suite.  You cannot take the six or seven different applications that might be in a suite and install and activate them in six or seven different machines... only two machines.
    If your scenario will allow for it, one thing you can do is install the programs on all the different machines and only activate two of the machines at any given time.  If you need to activate a program on a third machine then you need to deactivate on one of the currently activate machines first so that you have an open activation to use again.  I do not remember if there is a limit to the total number of activations you can process for the life of the software.

  • When i try to activate facetime and imessage on my ipad it says cannot sign in. Check your network connection and try again. However everything else that needs internet works. What do i need to do?

    When i try to activate facetime and imessage on my ipad it says cannot sign in. Check your network connection and try again. However everything else that needs internet works. What do i need to do?

    1. Make sure software is up to date
    2. Make sure FaceTime is enabled; Settings>FaceTime
    3. Make sure Date and Time is correctly set; Settings>General>Date and Time>Set Automatically>On
    4. Make sure Push Notification is enabled
    5. Make sure phone number or email address is correct
    6. Hold the Sleep and Home button down (together) until you see the Apple Logo

  • I need to work on documents in both my iMac and air book. But I have to download document and them upload it, and when I upload it I can't open it unless I open it on my phone first. Yet changes made on phone appear straight away. Does this make sense????

    I need to work on documents in both my iMac and air book. But I have to download document and them upload it, and when I upload it I can't open it unless I open it on my phone first. Yet changes made on phone appear straight away. Does this make sense????

    On your Macs open System Preferences > iCloud
    Deselect the box next to Documents & Data, then reselect that box then restart your Macs.
    On the iPhone tap Settings > iCloud. Switch Documents & Data off then back on then reset the iPhone.
    Hold the On/Off Sleep/Wake button and the Home button down at the same time for at least ten seconds, until the Apple logo appears.
    See if you can open the files now without opening on the iPhone first.

  • File missing (file\BCD error code 0Xc0000034 help need for work!

    file missing (file\BCD  error code 0Xc0000034 help need for work!    what can i do?
    have an p 2000 notebook pc

     Hi bobkunkle, welcome to the HP Forums. I understand you cannot boot passed the error you are receiving.
    What is the model or product number of your notebook? What version of Windows is installed?
    Guide to finding your product number
    Which Windows operating system am I running?
    TwoPointOh
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • IMac at work, iMac at home. (Latest Yosemite and Apple Remote Desktop updates installed) Need to work from home at night. I don't know how to set my permissions so that I can just control my iMac at work.

    iMac at work, iMac at home. (Latest Yosemite and Apple Remote Desktop updates installed) Need to work from home at night. I don't know how to set my permissions so that I can just control my iMac at work.

         If they have set up port forwarding for you already then that is different.  In that case, then you could be experiencing the bug with the most recent release of ARD (3.7.2) and in particular ARD 3.7.2 and Yosemite ARD version 3.8 clients.  It has been reported numerous times in the forums and to Apple that since 3.7.2, clients are frequently unavailable to connect to despite there being no network issue between the remote computer and client computer.  I have not seen anyone report it who was working from outside the LAN to inside the LAN, but I have the same issue with a number of my own computers that are simply on a different subnet, so it stands rot reason that it would happen from a port forwarding location.
         I am sometimes able to resolve the issue locally by SSH connecting into the client computer using Terminal on my admin machine and restarting or relaunching the ARD agent on the remote device, then trying to connect to it again after about 30 seconds.
    The Terminal commands for this procedure are as follows, though you might need to include a port number from outside the LAN:
    First:
    ssh ipaddress -l adminusername
    (example: ssh 192.168.1.1 -l macadmin)
    Second:
    sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/k ickstart -restart -agent
    After that, waiting about 30 seconds and trying to observe or control usually works, though the computer may still fail to show an online or lit-up status indicator.

Maybe you are looking for

  • 2.3.11 and 2.4.13 fail tests on OpenSuse 10.3 x86_64

    I am trying to get php and perl API of BDBXML 2.3.11 and 2.4.13 running on OpenSuse 10.3 x86_64 when using --enable-perl the perl tests fail so i tried to run the test suite and compare it against 32bit builds. 2.3.11 after changing dbxml/dist/config

  • JOptionPane.showConfirmDialog  "NO" button acting as "YES" on MAC using TAB

    JOptionPane.showConfirmDialog "NO" button acting as "YES" on MAC using TAB

  • Can Someone Explain a Kernal Panic?

    So is it like the blue screen of death on windows, is it somthing to worry about? I looked it up on wikipedia and nothing came up. I thought I saw somthing like this on Macuser or tuaw that was some kind of prank, I will try and find the link. Got it

  • Simple array program help

    Hello could I please have some hints as to how to get this program working e.g. would it better to use a while loop for this? and how would I make the program stop when it has read 100 names? cheers anyone import java.util.*; import java.io.*; * The

  • Monitor Inspection Load IPS ASA-SSM-20

    All,   I am aware there is a feature request but don't see any updates.  Taking the chance here that its fallen through the cracks and someone has figured out another way to monitor inspection load on ASA-SSM-20 IPS.  We are currently running 7.0(5a)