Calculating totals in a different region...

Salvation;
I have a performance problem:

Inside of a page, I have 2 regions. In one of them, there is an interactive report that lists the invoices (sales and returns). The second area a an HTML element that i put in it totals. I did it using text fields and get their values by running queries to their source. It worked, but as you can seerunning many queries (4 in this scenario), it is slow. Y at - it an easier way to calculate these totals using numbers from the report above.

Thanks in advance for your help

Concerning
Fatih

Fatih,

You could write a single process of PL/SQL and populate all the Total items with a single SELECT statement.

brgds,
Peter

-----
Blog: http://www.oracle-and-apex.com
ApexLib: http://apexlib.oracleapex.info
BuilderPlugin: http://builderplugin.oracleapex.info
Work: http://www.click-click.at

Tags: Database

Similar Questions

  • Calculation of a total of 2 different columns in different regions.

    Hi all
    Can someone give me a hint on how to refer to the 2 different columns in different regions, I need calculate a total by adding these. My idea is to create another region and hoping to write sql code to calculate the total, but do not know how to refer to these two columns?

    Any help please?

    Thank you
    Naushad.

    Report columns that are not of the fields (as in a report updated (in form)) can not be referenced. I think your only likely choice is to repeat the code SQL for two reports in the 3rd region out of all non-relevant columns and then to summarize these in SQL itself.

  • Difference between different models (sold in different regions) of the iPhone 7

    I'm traveling to the Japan, and it turns out that my phone broke. So, I plan to buy iPhone 7. But I noticed that there are different models according to the countries or regions. According to Apple customer service, it has to do with different bands of LTE in different regions. But exactly the same bands that WE supported the Japanese model (which is completely separate from all other) / version of the EU with the exception of it's CDMA.  She would work very well after my return to Europe (Germany)? Where can I buy non-CDMA, GSM version for the Japan as well.

    Here is the link showing the differences between the various models of iPhone 7.

    You have a question?

  • Text prediction with different regional settings in Windows 7 - shows disabled in Korean

    prediction of title: original text with different regional settings in Windows 7

    Hello

    I have English as the main language and Korean as a language second.  Text prediction works very well with this configuration; However, if I change the regional settings (non-Unicode) in Korean, text prediction is disabled.

    There is no work around for this?

    Thank you.

    Michael

    Hello

    • Text prediction is only available in English, French, Italian, German and Spanish. To enable text prediction in a specific language, you must first install additional language files for that language. For more information, see install or change a display language.

    • Text prediction is not included in Windows 7 Home Basic Edition.

  • How to batch, fusion of the 3 different images? I use molten and the total of 240 different images.

    How to batch, fusion of the 3 different images? I use molten and the total of 240 different images.
    is there any script for it?

    like photoshop, batch processing is unable to identify 3 different images and merge these three images. Instead, it performs the action on a single image.

    Thank you

    under the direction

    // 2015, use it at your own risk;
    #target photoshop
    var theFolder = Folder.selectDialog ("select folder");
    if (theFolder) {
    ////////////////////////////////////
    var theFolders = theFolder.getFiles(getFolders);
    for (var a = 0; a < theFolders.length; a++) {
    var theFiles = Folder(theFolders[a]).getFiles(/\.(jpg|tif|eps|psd)$/i);
    ////////////////////////////////////
    // open first image;
    theFile = app.open(theFiles[0]);
    var basename = theFile.name.match(/(.*)\.[^\.]+$/)[1];
    // place other files;
    for (var m = 1; m < theFiles.length; m++) {
    placeScaleRotateFile (theFiles[m], 0, 0, 100, 100, 0, false);
    // set to screen;
    theFile.activeLayer.blendMode = BlendMode.SCREEN
    };
    // save as psd;
    psdOpts = new PhotoshopSaveOptions();
    psdOpts.embedColorProfile = true;
    psdOpts.alphaChannels = true;
    psdOpts.layers = true;
    psdOpts.spotColors = true;
    theFile.saveAs((new File(theFolder+'/'+basename+".psd")),psdOpts,false);
    };
    };
    ////////////////////////////////////
    ////// place //////
    function placeScaleRotateFile (file, xOffset, yOffset, theXScale, theYScale, theAngle, linked) {
    // =======================================================
    var idPlc = charIDToTypeID( "Plc " );
        var desc5 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
        desc5.putPath( idnull, new File( file ) );
        var idFTcs = charIDToTypeID( "FTcs" );
        var idQCSt = charIDToTypeID( "QCSt" );
        var idQcsa = charIDToTypeID( "Qcsa" );
        desc5.putEnumerated( idFTcs, idQCSt, idQcsa );
        var idOfst = charIDToTypeID( "Ofst" );
            var desc6 = new ActionDescriptor();
            var idHrzn = charIDToTypeID( "Hrzn" );
            var idPxl = charIDToTypeID( "#Pxl" );
            desc6.putUnitDouble( idHrzn, idPxl, xOffset );
            var idVrtc = charIDToTypeID( "Vrtc" );
            var idPxl = charIDToTypeID( "#Pxl" );
            desc6.putUnitDouble( idVrtc, idPxl, yOffset );
        var idOfst = charIDToTypeID( "Ofst" );
        desc5.putObject( idOfst, idOfst, desc6 );
        var idWdth = charIDToTypeID( "Wdth" );
        var idPrc = charIDToTypeID( "#Prc" );
        desc5.putUnitDouble( idWdth, idPrc, theYScale );
        var idHght = charIDToTypeID( "Hght" );
        var idPrc = charIDToTypeID( "#Prc" );
        desc5.putUnitDouble( idHght, idPrc, theXScale );
        var idAngl = charIDToTypeID( "Angl" );
        var idAng = charIDToTypeID( "#Ang" );
        desc5.putUnitDouble( idAngl, idAng,theAngle );
    if (linked == true) {
        var idLnkd = charIDToTypeID( "Lnkd" );
        desc5.putBoolean( idLnkd, true );
      };
    executeAction( idPlc, desc5, DialogModes.NO );
    // get layerid;
    var ref = new ActionReference();
    ref.putProperty (stringIDToTypeID ("property"), stringIDToTypeID ("layerID"));
    ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
    var layerDesc = executeActionGet(ref);
    var layerID = layerDesc.getInteger (stringIDToTypeID ("layerID"));
    // =======================================================
    return [app.activeDocument.activeLayer, layerID];
    };
    ////// get folders //////
    function getFolders (theObj) {
    if (theObj.constructor == Folder) {return true}
    };
    
  • When a Blu - Ray burning are all selected by default different regions?

    When a Blu - Ray burning are all selected by default different regions?

    By selecting a region in Encore for Bluray has no effect, then Yes.

  • Private network between hosts in different regions

    Dear guys,

    I have just asked me if it would be possible that 2 hosts in different regions (EU-NA) can communicate on a virtual private network over the Wan.

    How to perform I thought to arrive at:

    -import the host NA in a cluster in the EU vcenter

    -create a tmp DVS and attach 2 guests to the DVS

    -create a private VLAN GP and configure 2 virtual machines with this PG = > they just have to communicate with each other, this is just a test

    The question I have is this: given that the 2 hosts are in different regions, traffic of 2 VMs would go across the WAN using the DVS even?

    Thanks in advance.

    Daniele

    I thought on it and it is not possible, DVS and a dummy network, we have L2 and we have no tools for the encapsulation of L2 to L3, I have no NSX.

    I will give points me

    Daniele

  • My brother-in-law works for your company and he bought the creative cloud for me and gave me a redemption code to use to download. However, I live in the Japan and her suitor that he bought in a different region and I can't download it. What sho

    My brother-in-law works for Adobe and it bought creative cloud for me and he sent me the redemption code to download. I live in the Japan and its telling me that it was bought in a different region. What should I do to redeem here. I tried to change my region in the United States and I don't think it works.

    Hi Trey,

    You may need to create an Adobe ID to use the code, for more information, please visit this link: redemption code help

    Once you have created a new account with the region of the United States, please follow this link to redeem your code: https://redeem.licenses.adobe.com/getserial

    Kind regards
    Rahul

  • Query to get the difference between 2 totals of 2 different queries

    I wanted to know if it is possible to get the difference between 2 totals of 2 different queries. Let me explain with an example:

    1 application ofst - sum (homepass) Select table 1

    2th query: select sum (homepass) from table2

    Is it possible to display the difference as -

    Select sum (homepass) in table 1 - sum (homepass) from table2

    I know that the above query would give syntax error, but is there a better way or something to get the above done task from a single query.


    Hopefully, my question is clear.


    Please get back with the answer to my query.


    Concerning

    You can always do something like

    SELECT a.cnt - b.cnt
    FROM (SELECT sum(homepass) cnt from table1) a,
          (SELECT sum(homepass) cnt from table2) b
    

    I'd be somewhat dubious, although on a data model that had two tables with the same name of the column where it really made sense to subtract one amount from each other.  This would strongly imply that there should be a single table with an additional column TYPE eventually.

    Justin

  • Display 1 button in 2 different regions

    Hi all

    I have a requirement. I need to show a particular button in 2 regions different say that X and Y.

    How can I do that. I can only have a regions for a button. How do the 2 regions.

    Thank you

    HI Tatiana,

    Yes I understand your condition. We cannot use the static ID.

    My method should work.

    You must create two buttons for 2 different regions.
    and use the applications button in your SRM process, as mentioned above.

    So if administrators log in then click on the button in region X, it will call the SRM process.
    If end users, login and click on the button in region Y, he'll also call the SRM process.

    You don't need two processes.

    Sreenithi

  • Show the different regions by clicking on the entries in the list

    Hello world

    I have a page with several regions, but I want to only show one at a time; I want you to show with a checklist. So, whenever I click on an entry in the list, I want to see a specific region and if a click on a second entry in the list, I want to see another. It must be without submitting the page (for different reasons).

    An example of I want to do is when you change an element in the APEX; You can see a list of buttons 'Show all', 'name', 'Displayed', 'Label', 'Settings', etc. Function of the key, you click, you will see a different region.

    I think it is a very sleek and elegant way to show a lot of information to users, if only I could apply it... any ideas? :)

    Thank you
    Elena.

    Elena.MTC wrote:

    I have a page with several regions, but I want to only show one at a time; I want you to show with a checklist. So, whenever I click on an entry in the list, I want to see a specific region and if a click on a second entry in the list, I want to see another. It must be without submitting the page (for different reasons).

    An example of I want to do is when you change an element in the APEX; You can see a list of buttons 'Show all', 'name', 'Displayed', 'Label', 'Settings', etc. Function of the key, you click, you will see a different region.

    I think it is a very sleek and elegant way to show a lot of information to users, if only I could apply it... any ideas? :)

    4.1 the best way to proceed is to use the integrated Region Selector display.

    After you have created the RDS, customization is necessary to display only one region at a time.

    1 hide the RDS "Show all" link (and change the second link to resemble the first) by adding this stylesheet in the header HTML page:

    
    

    2. by default, all regions will be displayed when the page is loaded. Hide others using dynamic Action to simulate a click on the first link in the region of the RDS and the first region:
    H4. When

    Event: Page load
    H4. Real Action

    Action: Run the JavaScript Code
    Fire on loading the Page: No.
    Code:

    $('.apex-rds-container li:first-child+li a').click()
    

    See this article to view region selector sticky if you want the value of the visible area to be preserved if the page is refreshed.

  • How to make shape even alignments of element on two different regions

    Hello

    I have two different areas on the same page as the second is below the first. The two regions have some form elements like text field, select list etc. However the alignment of elements on these two regions are not the same. In different regions, it lines up just the input fields based on the maximum length of the label in the region only, so it creates two different vertical alignments by region. How have the same alignment for elements of entry in all regions?

    (I want to download the screenshot of the page but there is no provision in this forum to do).

    Thanks in advance.

    Natarajan

    The basic approach is to set the width of the point labels using a built-in CSS style sheet in the Header HTMLpage:

    
    

    If you want to limit it to the elements in specific regions, then give these regions region static ID (for example, region-1) for use as CSS selectors:

    
    
  • Date/time format and different regions

    I'm developing an application in this case to the United States on the English LV2009 software.  This application will be installed in many parts of the world, and I just discovered a problem with the date and time that I try to understand.  A screenshot of the application running on a Chinese computer is attached.  At the top right there is a 'results save location' which has a month and year added file name.  I use the date/time format with modifiers for the name of the month and the year in 4 digits (%B %Y).  On my PC, it displays in July 2010, but on Chinese computer it 7 01.  In addition, the reason that it says wrong serial number is that I compare the SN 2-digit year, and it seems to enter it correctly.

    On my PC, I tried to change my date settings in Windows and it doesn't seem to affect the production, as it does on Chinese computer.  I know there is a UTC Boolean selector which can be activated.  That will make a difference in the way that the date is displayed by this function?

    This is one of the few issues I encountered when developing a program for several regions, but it is currently the only one, I have not yet solved.

    I would expect month name to be specific langauge.

    For example, the word April in French is April and is abbreviated Apr. I would use a number instead of the name.

    The thai calendar + 543 years compared to the Western calendar, so a PC Thai could show a specific locale of 2553-07-13 date. Your computer may display 13/07/2010. I'm sure that the year of the Chinese calendar is different from that of the Western calendar.

    Using UTC should force LabVIEW to use the Gregorian calendar, based on the ISO-8601standard.

    Because your users work with technology and would probably recognize a Gregorian day/month/year combo I would stick with % Y_ m_ % d. % and UTC = TRUE.

    I contributed a VI to the community OR that you could use if you wish. It has many options and is based on ISO-8601

    .

    http://decibel.NI.com/content/docs/doc-7199

  • Cannot play a video because it is made for a different region of the world

    the DVD was made for Israel. Is it possible I can get media player to play it.

    DVD regions can be changed to a total of MORE than 5 times.  You can change yours by right click > properties > region.  then she back just remember you will have used up to 2 changes you can't use this to operate continuously

  • PartialTrigger of different region and targets inside the iterator.

    Hello

    I use 11.1.1.6. Basically, I've got A Taskflow is a region that has inside an iterator that creates several commandLinks. I need to refresh a component of the parent page (one is the region) so I will try to accomplish the task using partialTriggers on components of commandLinks.

    My region ID is = r1, so I put the partialTrigger = "r1:iter1:cl1", but does not work. If I put a commandButton control in my taskflow region but outside of the iterator and defining the partialTriggers = "r1:cb1" then it works.

    An idea to solve this, or a different approach?

    Never mind. This works if partialTrigger = "r1:iter1:cl1" is used. It was that I was wrong using IDs.

Maybe you are looking for

  • Satellite C660 - 23 M - fan runs loudly every 5 seconds

    Hi all I bought my first PC Toshiba laptop * 3 days * ago and until this am pleasure other than the cooling fan runs loudly every * seconds * 5 for heaters * 13 seconds *. Even my old laptop has never done this in their entire years of use, I feel th

  • HP Pavilion laptop computer 2276sa g6: HP support Assistant

    A message to HP Support Assistant updated to the latest version. Clicked to update. Now it does not open. Uninstalled - reinstalled several times according to the guidelines. It is installed but still do not open 'Help '. Thanks in advance for any he

  • Trial version of MapPoint 2013 still has demographic data from the 2007 Census

    I just installed the evaluation version Mappoint 2013 and was surprised to find that when I made my cards of demographics by census tract, he always uses 2007 data that seems old projected data.  When will it be available in MapPoint or the latest ac

  • LaserJet 400 M451dn: laserjet 400

    I have a printer LaserJet 400 M451dn . There was a severe storm, but the printer is on a surge protector APC, including a printer HP LaserJet P1501n and other devices. All other devices operate normally. The LaserJet 400 M451dn printer when turned on

  • Software with Cyrillic interface is coded.

    When I use the Russian software, the Cyrillic letters are decoded (impossible to read) with the symbols. How to solve this, while it is possible to use it?