-How the calculations on the Apex?

I have 2 tables: A and B. A is related to B with 1:m relationship.

Table stores the information about the quote - name, address, total cost of construction quote.

Table B stores the list of services for a particular quote (linked to table A) - as the service quote (bathroom, kitchen, roof) , cost of the service, etc.

There is a way to calculate the total cost of the "cost of service" column in table B, by editing 'report attributes' and checking the sum.

But how would have received this amount (for the cost of each service on table B for a particular quote) to be displayed in the 'total price' field on the table?

Surely, there must be a way to link them together.

I have to do it outside of the Apex on SQL?

Newbie.

Here is the picture to help you understand

 photo oraclesumcal.png

I think that some (maybe pl/sql) sql calculation is required in the source box. Maybe I should do it on sql first. I need advice on how to do it.

 photo oraclesumcal2.png

How about this, you will need to use the Q_QUOTE_ITEM fk

Select sum (PRICE_QOTD) from Q_QUOTE_ITEM

where Q_fk_quoteno =: P7_QUOTE_NO

There is no 'total price' field for the moment so im using notes on Q_Quote.

you mean an item of type "View only" to display the total?

Tags: Database

Similar Questions

  • Please can someone help me on how toedit calculation result to the point

    Please can someone help me on how toedit calculation result to the point

    Can you post an example page upward on the hosted site for Oracle?  Apex. Oracle.com (you need a workspace).

    So to repeat what you have posted:

    You have a page with 3 items P1_N1, P1_N2 and P1_SOM...  You want to P1_N1 and P1_N2 to be text boxes that accept input, and when you enter the values you want the sum of these values to be stored in P1_SOM, correct?

    Take a look at this page: http://glassfish1.revion.com/apex/f?p=227:1:12047078745989:

    I will explain further if you think you want it...  Use any value for a connection. Enter a number in N1 and click in the field of N2, the display option takes the sum of the two numbers when you let one of the fields...

    Thank you

    Tony Miller
    Software LuvMuffin
    Ruckersville, WILL

  • I have a Macbook Pro 2015 retina and I wonder how the cycles of battery are calculated?

    I have a Macbook Pro 2015 retina and I wonder how the cycles of battery are calculated?

    If I load to 100% and then run it down on battery to 0% of course it counts as a battery cycle.

    If I recharge to 90% and run up to 5% or 10%, which count as a battery sprays?     Between what % are there?

    The reason I ask is that I try to keep the cumulative battery cycle count down.

    Thank you

    http://www.Apple.com/batteries/why-lithium-ion/

    Whenever he finishes a full charge, it's a cycle.  If you charge 70% one day, then 30% another day, it's a cycle.

    The Apple site, I posted above, it explains very clearly.

    A cycle is counted when the battery has completed a 100% charge, not a discharge.

  • For an IMAQ image, how is calculated the size of the area of alignment to the left or to the right?

    For an IMAQ image, how is calculated the size of the area of alignment to the left or to the right? My initial assumption of the diagram

    http://zone.NI.com/reference/en-XX/help/370281M-01/imaqvision/imaq_getimagepixelptr/

    is that the left and right are equal. But that doesn't seem to be the case. Can someone tell me the magic formula? A combination of the border width and the width of the image?

    Thank you...

    Andrew

    Andrew_Scott_SPCi.ca wrote:

    All this appeared when I relalized that the mapss Pixel pointer the value 0,0 point of the image, not the point 0,0 of the largest container with areas of alignment and borders. Would be nice if the drawing in the documentation put it.

    This described in help, is not?

    Andrey.

  • How to completely uninstall the APEX?

    Hello

    I want to install and run Jenkins CI on localhost: 8080 but he pointed me still http://localhost: 8080/apex/f? p = 4950:1.

    I uninstalled Oracle 11 g Express Edition and it seemed to go away but the APEX is still on port 8080.

    Any tips?

    Thanks in advance.

    Hi 2938071,

    2938071 wrote:

    Please change your login username of "2938071" to something meaningful. Reference: Video tutorial how to change username available

    I want to install and run Jenkins CI on localhost: 8080 but he pointed me still http://localhost: 8080/apex/f? p = 4950:1.

    I uninstalled Oracle 11 g Express Edition and it seemed to go away but the APEX is still on port 8080.

    If Oracle DB is uninstalled, then it is not possible that APEX will always remain. As APEX Oracle is installed in Oracle DB, Oracle DB uninstallation will certainly remove it as well. Check if your browser renders page caching.

    If it's not the cached page, then check if you have another instance of Oracle DB installed on which runs Oracle APEX.

    There is no need to uninstall Oracle APEX, you use according to the webserver option you can change the port on which runs Oracle APEX.

    If you use Oracle APEX on built-in PL/SQL gateway (EPG), you can change the port by connecting to sqlplus with the SYS user and SYSDBA privileges and by running the following SQL command:

    EXEC DBMS_XDB. SETHTTPPORT (8090);

    Reference: https://docs.oracle.com/cd/E59726_01/install.50/e39144/epg.htm#HTMIG29208

    Also, if you want to uninstall Oracle APEX, you can use the 'apxremov.sql' script to uninstall.

    Reference: https://docs.oracle.com/cd/E59726_01/install.50/e39144/trouble.htm#HTMIG270

    Kind regards

    Kiran

  • APEX packaged applications, it is possible to edit the models on the universal theme of the APEX 5. How can I enable editing of model on my applications?

    ..

    716769 wrote:

    Please update your forum profile with a recognizable username instead of "716769": Video tutorial how to change username available

    APEX packaged applications, it is possible to edit the models on the universal theme of the APEX 5. How can I enable editing of model on my applications?

    APEX 5.0, application themes are announced to a default theme. As a result, the theme templates are locked and cannot be changed. To change the templates, unsubscribe the theme of the master.

  • How to change the cell height in the apex 5, g-> o, j.-i.

    Hi all

    When I type a g in the inputfiled, I see o and when I type a j in the inputfield, I see that I have.

    My settings:
    Type: Text field

    When I save the data, the g and j are registered oke in the database.

    How can I change the height of the cell in the apex 5?

    Thanx.

    Best regards

    Vinay

    Why would you use javascript?

    @OP go to the definition of your page > css inline and copy this

    input[type="text"] {
       height: 20px !important;
    }
    

    Adjust the height of your taste.

    There is a chance that you have tried to adjust the font size. This could be the reason why you can not see the parts of letters.

  • How to configure in the apex using other engine of transformation XSL - FO instead of Bi publisher

    can someone give me a quite complete example for me on the engine configuration of processing XSL - FO in the Apex.

    I'm feeling rather puzzled about the example set by the introduction of the link:http://www.oracle.com/technetwork/developer-tools/apex/application-express/configure-printing-093060.html#06

    in the apex_fop_render.jsp file.

    Hi 2952702,

    2952702 wrote:

    Please change your login username of "2952702" to something meaningful. Reference: Video tutorial how to change username available

    When I install the apex5 rest data service, the installation guide tell me pdf printing is supported by the rest data service

    but after the installation of ADR, I don't have the result I want.

    Yes, as you directed in the code snippet included listener Web Oracle APEX Documentation Options, Services (ORDS) data Oracle REMAINS usable as a PDF as FOP support print server is included in the ADR 2.0 and later (last ADR 3.0).

    Reference:

    NOTE: The links are for APEX 4.2, but they still apply for APEX 5.0, if you plan to use ADR 2.0 and later versions. These links show how to configure ADR as a print server and how to design and print reports.

    I hope this helps!

    Kind regards

    Kiran

  • How to create a crosstab to the APEX report

    Hi all

    Here's the query that I want to create a report of the tab cross- report_label & project_execution. Could you please guide me how to proceed in Oracle APEX.

    Select project_execution,

    report_label,

    (Project_execution) count of)

    SELECT NVL (xmigr.project_execution,' ') project_execution;

    xmigr.report_label

    OF xxqbix.xxqbd_disco_count_details_d xdcd,.

    xxqbix.xx_fls_disco_migr_comments xmigr,

    (select report_label, 'Y' qbix_phase1_2)

    of xx_fls_disco_migr_comments c

    where 1 = 1

    and c.project_execution in (' QBIX Phase 1', ' QBIX Phase 2' "')) xcom2

    WHERE xdcd. Annual = xmigr. ANNUAL

    AND xdcd.worksheet = xmigr.worksheet

    AND xdcd.owner = xmigr.owner

    and xmigr.report_label = xcom2.report_label

    and Accruals 'xmigr.report_label ='

    Xdcd.owner GROUP,

    NVL(xcom2.qbix_phase1_2,'N').

    xDCD.Workbook,

    xDCD.Worksheet,

    xmigr. Migrate,

    NVL (xmigr.project_execution,' '),

    xmigr.report_label,

    Group of xmigr. Portal_Name) by project_execution,.

    report_label

    Kind regards

    Sushant

    not tested not having no not your tables, but the use of something like that

    WITH pivot_data AS)

    SELECT NVL (xmigr.project_execution,' ') project_execution;

    xmigr.report_label

    OF xxqbix.xxqbd_disco_count_details_d xdcd,.

    xxqbix.xx_fls_disco_migr_comments xmigr,

    (select report_label, 'Y' qbix_phase1_2)

    of xx_fls_disco_migr_comments c

    where 1 = 1

    and c.project_execution in (' QBIX Phase 1', ' QBIX Phase 2' "')) xcom2

    WHERE xdcd. Annual = xmigr. ANNUAL

    AND xdcd.worksheet = xmigr.worksheet

    AND xdcd.owner = xmigr.owner

    and xmigr.report_label = xcom2.report_label

    and Accruals 'xmigr.report_label ='

    Xdcd.owner GROUP,

    NVL(xcom2.qbix_phase1_2,'N').

    xDCD.Workbook,

    xDCD.Worksheet,

    xmigr. Migrate,

    NVL (xmigr.project_execution,' '),

    xmigr.report_label,

    Group of xmigr. Portal_Name) by project_execution,.

    report_label

    )

    SELECT *.

    OF pivot_data

    PIVOT)

    Count (report_label)

    FOR project_execution ("QBIX Phase 1', ' QBIX Phase 2', 'QBIX Phase END'" ")

    );

  • How to start the APEX in Oracle developer pre-built VM

    Hello community,

    I have download the DB VM developer

    Developer Day - database application development practice

    I start the virtual machine, but do not know how I can start the listener of the apex and ADR?

    I assume that the virtual machine is ready for anything and play without the developer dealing with service installation and configuration?

    I watch the lsnrctl status:

    [oracle@localhost ~] $ lsnrctl status

    LSNRCTL for Linux: Version 12.1.0.2.0 - Production on April 9, 2015 11:50:27

    Copyright (c) 1991, 2014, Oracle.  All rights reserved.

    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=0.0.0.0) (PORT = 1521)))

    STATUS of the LISTENER

    ------------------------

    Alias LISTENER

    Version TNSLSNR for Linux: Version 12.1.0.2.0 - Production

    Start date April 9, 2015 11:04:17

    Uptime 0 days 0 h 46 min 9 s

    Draw level off

    Security ON: OS Local Authentication

    SNMP OFF

    Parameter Listener of the /home/oracle/app/oracle/product/12.1.0/dbhome_1/network/admin/listener.ora file

    The listener log file /home/Oracle/app/Oracle/diag/tnslsnr/localhost/listener/alert/log.XML

    Summary of endpoints listening...

    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=0.0.0.0) (PORT = 1521)))

    (DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (KEY = EXTPROC1521)))

    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp (PORT = 2121))(HOST=localhost)) (Presentation = FTP)(Session=RAW))

    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=localhost)(PORT=5500))(Security=(my_wallet_directory=/home/oracle/app/oracle/product/12.1.0/dbhome_1/admin/cdb1/xdb_wallet))(Presentation=HTTP)(Session=RAW))

    Summary of services...

    Service 'cdb1' has 1 instance (s).

    'Cdb1' instance, State LOAN, has 1 operation for this service...

    Service 'cdb1XDB' has 1 instance (s).

    'Cdb1' instance, State LOAN, has 1 operation for this service...

    Service "orcl" has 1 instance (s).

    'Cdb1' instance, State LOAN, has 1 operation for this service...

    The command completed successfully

    It seems that there is no listener for APEX or ADR

    How can I get that will easily?

    I just downloaded the latest ADR. Unzip it and do

    java-jar

    ords.jar

    and follow the prompt and it works

    two things I noticed.

    1. Make sure that apex_public_user is good to go
    2. make sure to put the correct directory for static
    3. Choose a port that is not used

    the configuration is in properties files and need to be changed...

    I wonder why this virtual machine does not right out of the box and looks like it sets up to 8080

    but it does not work when I do one

    localhost: 8080 / apex

    I guess that everything should work right out of the virtual machine and config...

  • How to export the Apex asks the new database

    Hello

    Pls help me with the steps on how to pass my Apex 4.2.3 a database to a different database in the new pc

    Thanks and greetings

    Idris

    Hi Idris,.

    Initially, there are two aspects to move an Apex Application to a completely different environment.

    1. Components of the apex.
    2. Database components.

    both are well documented in this forum and elsewhere.

    Components of the apex can be moved to the Apex export and import tools. Components of database can be moved using more general DB tools such as datapump.

    Hope this gets you started.

    Concerning

    André

  • A form of the APEX, the elements of the numbers go right margin.  If you change these elements to "view only", the margin moves to the left.  How can I set numbers to display with a right margin?

    A form of the APEX, the elements of the numbers go right margin.  If you change these elements to "view only", the margin moves to the left.  How can I set numbers to display with a right margin?

    You must use the attribute of the element of the element. Change the Horizontal/Vertical alignment to right.

    https://www.dropbox.com/s/gxn51e0steg482a/element.PNG

  • How to change the border style of the list items in the apex


    Hi all

    We have created a few items from the selection list in the Apex and ask users to make changes to the border.

    I tried many ways, but he was not able to make changes, some could help me how we can change the border style of list items in Apex. By, the approach has been used by us

    Attributes of the element in the HTML form -> style = "" border: 1px solid #E5E4E2; "" [I speak that way] but no luck.

    Kind regards

    Sheikh tayeb.

    SruthiTamiri wrote:

    Hello

    Please find the details below

    APEX version # 3.2

    Internet Explorer version #7

    Mozilla version 12.0.

    Used theme #Blue

    Topic identification number is #12

    It is not possible to change the appearance of the borders of the selection list in IE7.

    To the borders of all the elements of the selection list style on a page in other browsers, include the following style sheet in the HTML Header page:

    .formlayout select {
      border: 1px solid #E5E4E2;
    }
    

    APEX 3.2 is no longer supported, and IE7 is obsolete. Upgrade to the current version is recommended.

  • How to start and stop the APEX?

    Hi all! I am new to this forum and APEX too...

    We are runing (Version: Application Express 4.1.1.00.23)

    I need to reboot the server.

    How can I stop APEX graciously and start back after? Thank you!

    Kind regards

    Ghyslain salvation,

    to reinforce what Mike says. Apex is a database and, with the exception of the HTTP server application, runs entirely on the database. (Note with EPG, its all in the database) It contained in the users/schemas database and built items of data such as tables and PL/SQL packages. If the server that is running the Oracle database in which the Apex is installed needs to be restarted, the database must be stopped, which stops indeed Apex. If the HTTP server is also running on this server (ESS or earpiece of the Apex) then this should be stop as well.

    Of course, if your desire is not to stop the database, but to deny the user access to the Apex, perhaps for purposes of maintenance of database, then this can be done by stopping the HTTP server or by stopping the EPG.

    I hope it is clear now.

    André

  • How to import a legacy in the tables of the apex data

    Hi all

    Please tell me how to import data inherited in tables of the apex.

    Thank you and best regards,

    Rambeau

    SQL workshop Utilities Data workshop...

    You can import data from previously exported in the form of data (text, csv, xml)

    Note: the table name and the column name should be equal if the already existing table table.

Maybe you are looking for

  • New icon I see for the first time!

    Hello everyone Want to know if anyone knows what is that icon mean? And how to disable

  • Apple TV 3 frequently stops and restarts all streaming Netflix

    This happens at least once during a movie. After it restarts automatically, you must work your way to the content you were viewing and resume watching. It happens so often now that it becomes very annoying.

  • How to reopen last closed tab?

    Under the menu history in Safari, there is a menu item "Reopen last window closed." A few minutes ago I accidentally closed a tab in a window where the 5 tabs were opened, leaving open four. I discovered, there seems to be no way to reopen the last c

  • How can I get rid of an illegal copy of windows 7

    My laptop had windows vista.  I installed windows 7, but this has proved to be an illegal copy.  How can I get rid of it and get back to vista.

  • How to do the Validation of SQL in extended OT?

    HelloI'm new to OFA. I have a requirement on a Page of the OAF that when a new record is created system must check whether the same value already exists in one of our custom paintings, then it should trigger a warning.I guess I have to code this exte