Help in the calculation code

Hello

for example, I have this table and I want to get the total discount

Quantity

Discount

10

2 "per unit".
102
102

he so well 10 * 2 for the first row.

10 * 2 for the second row.

10 * 2 for the third row

If the total discount well be 60

now I have a piece of text in a shape and want to get the total discount

then I go to the property palette and to his (method of calculation) = "summary".

and wrote this code in (filed form)

Sum(Quantity * discount)

and it does not work

so I will be grateful if someone could help me in this

Thank you

Be invoked another a details column disc_val and change its property palette make formula field as quantity * discount.

Quantity

Discount

disc_val

10

2 "per unit". 20
10 2 20
10 2 20

Create a text with the name of tot_disc_val element and replace his property as follows:

method of calculation: summary

text-to-speech function: sum

block summaries:

Article Summary: disc_val

Tags: Oracle Development

Similar Questions

  • can someone help with the following code plsql errors...

    Hello

    If anyone can help with the following code... to get a successful outing.

    create or replace package lib_01 as

    procedure lib_proc01 (p_user_id in numbers, p_user_name in varchar2);

    end lib_01;

    create or replace package body lib_01 as

    procedure lib_proc01 (p_user_id in numbers, p_user_name in varchar2) as

    number of v_user_id;

    v_user_name varchar2 (50);

    number of v_avl_books;

    number of v_avl_days;

    date of v_end_date;

    date of v_return_date;

    Start

    dbms_output.put_line ('Enter User Name');

    dbms_output.put_line (' username :'|| p_user_name);

    Select user_id, user_name in v_user_id v_user_name of user_registration where user_name = p_user_name;

    If v_user_name <>p_user_name then

    dbms_output.put_line (' username is not.) Please submit full name ');

    end if;

    If v_user_id is null or v_user_name is null then

    dbms_output.put_line ("' user not found");

    validate_userLogin;

    on the other

    validate_issuedbooks (p_issuecount);

    end if;

    If v_issuecount < v_avl_books then

    issuebooks;

    on the other

    Number of return of late_fee (p_mem_id, p_extradays, p_latefee_total);

    end if;

    If paid_flag = "Y" then

    issuebooks;

    on the other

    dbms_output.put_line ("' book may be issued due to its maximum reached late fees");

    end if;

    end lib_proc01;

    procedure validate_userLogin is

    procedure reg_proc is

    procedure user_validate (p_id_proof in varchar2, p_id_no out varchar2) is

    v_id_proof varchar2 (20);

    v_id_no varchar2 (20);

    Start

    Select user_name, id_proof, id_no, v_user_name, v_id_proof, v_id_no of user_registration where id_proof = p_id_proof;

    If v_id_proof = "Adhar_Card" then

    dbms_output.put_line ('user a valid proof of ID');

    dbms_output.put_line (' and the id no. :'|| is p_id_no).

    on the other

    dbms_output.put_line ('Invalid ID evidence.) Please submit valid proof of ID ');

    end if;

    exception

    When no_data_found then

    dbms_output.put_line ('No Data found');

    end user_validate;

    procedure member_validate (p_mem_id series)

    v_mem_flag char (1);

    curr_date date: = sysdate;

    date of v_mem_enddate;

    Start

    dbms_output.put_line('Mem_flag:'|| v_mem_flag);

    Select mem_flag in the v_mem_flag of user_login where user_id = v_user_id;

    If v_mem_flag = 'n' or v_mem_flag is null then

    dbms_output.put_line ('The User do not have membership');

    on the other

    Select mem_id in the v_mem_id of user_login where user_id = v_user_id;

    dbms_output.put_line ('the user has membership');

    v_mem_id: = p_mem_id;

    Select mem_enddate in the member_login v_mem_enddate where mem_id = v_mem_id;

    If v_mem_enddate < curr_date then

    dbms_output.put_line ('Membership has expired' | v_mem_id |' on ' | v_mem_enddate);

    on the other

    dbms_output.put_line ('User a validity again' | v_mem_enddate);

    end if;

    end if;

    exception

    When no_data_found then

    dbms_output.put_line ("' no data found");

    while others then

    dbms_output.put_line (' another error.) Please find");

    end member_validate;

    Start

    insert into user_registration values ('& first_name ',' & last_name', null, ' & user_type',)

    address_ty ("& bldg_no",

    '& bldg_name',

    '& Street',

    ' & city ",

    '& State',

    '& zip'

    ),

    user_phone ',' & user_mail ',' mem_idproof', ' & id_no');

    Dbms_output.put_line ('user is properly registered');

    exception

    When no_data_found then

    dbms_output.put_line ("' data not found");

    end reg_proc;

    Start

    Dbms_output.put_line (' enter ID or user name ');

    Dbms_output.put_line (' username: ' | p_user_name);

    If v_user_name is null then

    Dbms_output.put_line ('user not found');

    reg_proc;

    Insert user_login SELECT user_id_seq. NEXTVAL, user_name, NULL, mem_id_seq. NEXTVAL, user_type FROM user_registration WHERE user_name is lower (p_user_name);

    Dbms_output.put_line (' because the user wants to have the membership? ");

    Dbms_output.put_line ('If Yes, please pay dues");

    INSERT INTO member_login SELECT mem_id_seq. CURRVAL, SYSDATE, SYSDATE + avl_days, 500, 'Y' of user_login ul, bl book_loan WHERE ul.mem_type = bl.mem_type AND user_name = p_user_name;

    END IF;

    exception

    When no_data_found then

    dbms_output.put_line ("' no data found");

    When too_many_rows then

    dbms_output.put_line (' too many lines).

    END validate_userLogin;

    procedure validate_issuedbooks (p_issuecount series)

    number of v_issuecount;

    Start

    Select user_login u, bl book_loan, avl_days, avl_books in v_avl_days, v_avl_books where bl.mem_type = u.mem_type and user_id = p_user_id;

    SELECT count (case when end_date < end return_date then p_mem_id) as invalidcount in v_issuecount from book_count where mem_id = p_mem_id;

    v_issuecount: = p_issuecount;

    dbms_output.put_line (' no. books that the user contains the :'|| p_issuecount);

    end validate_issuedbooks;

    procedure issuebooks is

    procedure book_avl (p_avl_now_flag in p_avl_date Boolean, date) is

    v_avl_now_flag char (1);

    date of v_avl_date;

    procedure reader_bookissue is

    Start

    insert into values drive (p_user_id, v_book_id, sysdate, sysdate, null);

    insert into book_count values(p_mem_id,v_book_id,sysdate,sysdate,null);

    Update book_availability set issued_to is "Reader" where book_id = v_book_id;.

    end reader_bookissue;

    Start

    Select book_name, b.book_id avl_now_flag v_book_name, v_book_id, v_avl_now_flag of the book b, book_availability b where b.book_id = ba.book_id and ba.book_id = p_book_id;

    If v_avl_now_flag = "Y" then

    dbms_output.put_line ('the book is available for issuance' | v_book_id);

    on the other

    Select mem_type in the v_mem_type of user_login where user_id = (select user_id from book_availability where avl_now_flag = 'n' and book_id = p_book_id);

    If v_mem_type = "Reader" then

    reader_bookissue;

    dbms_output.put_line (' the book is with Reader.) Please try tomorrow.') ;

    on the other

    dbms_output.put_line ('the book is member');

    end if;

    Select avl_date in the book_availability v_avl_date where book_id = p_book_id;

    v_avl_date: = p_avl_date;

    dbms_output.put_line (' the available date is: ' | p_avl_date);

    end if;

    end book_avl;

    Start

    insert into book_count values(p_mem_id,p_book_id,sysdate,sysdate+v_avl_days,v_return_date);

    Update book_availability set book_id = p_book_id, avl_now_flag = 'n', avl_date is to_date (sysdate + v_avl_days,' dd-mm-yyyy ""), issued_to = v_mem_type, user_id = p_user_id where mem_id = p_mem_id;

    commit;

    dbms_output.put_line ("' the book published successfully");

    end issuebooks;

    Number of function return late_fee (p_mem_id in number, p_extradays series, p_latefee_total number) is

    number of v_extradays;

    number of v_latefee_total;

    number of v_latefee_per_book;

    number of v_latefee_per_day;

    number of v_book_count;

    Start

    Select trunc (sysdate) - v_end_date in v_extradays from book_received where mem_id = p_mem_id and book_id = p_book_id;

    p_extradays: = v_extradays;

    v_latefee_per_book: = v_latefee_per_day * v_extradays;

    v_latefee_total: = v_latefee_per_book * v_book_count;

    p_latefee_total: = v_latefee_total;

    dbms_output.put_line ('The total AMT for not returned books' | p_latefee_total);

    end late_fee;

    end lib_01;

    Hello

    I checked the first 10 lines after the beginning and I could count already several errors.

    Is it an exercise or a real code, you must provide?

    Kind regards.

    Alberto

  • Need help with the error code 80070424

    I'm not able to update my windows vista. It gives the error code 80070424 and says 'windows can not find updates of nw'. I am not able to change all settings also unsuccessfully. Help, please.

    Hello

    Please, try the following:

    Click Start > run >
    Type the command of follow-up in the Open box.
    "net.exe stop wuauserv" (without quotes)
    Press Ok

    Repeat the same for the following commands:

    Regsvr32.exe c:\windows\system32\wuapi.dll
    Regsvr32.exe c:\windows\system32\wups.dll
    Regsvr32.exe c:\windows\system32\wuaueng.dll
    Regsvr32.exe c:\windows\system32\dllcache\wucltui.dll
    Regsvr32.exe MSXML3.dll
    Regsvr32.exe qmgr.dll
    Regsvr32.exe qmgrprxy.dll
    NET.exe start wuauserv

    Restart the computer and try again.

  • Required blackBerry Smartphone help eliminate the international code attach when I try to make calls from the phone book

    I just bought my first Blackberry.  Everything is great except... There was an international code pre-programmed in the phone, because when I try to call in the phone book, or return a call - do not do so by dialing the number from the keyboard) it attaches one + 86 to the front of the phone number.  How can HELP - I get rid of this?  Thanks for any help anyone can give me.

    Try this:

    go to call log > Menu > Options > SmartDialing > then change the country code + 1 for the USA.

  • Need help with the error Code: 1002 please!

    I am trying to update my CC Id & get the error Code: 1002

    Any suggestions before I try to support?

    Thank you!

    Hello

    Please follow the steps below:

    Uninstall CC Desktop App using https://helpx.adobe.com/creative-cloud/help/uninstall-creative-cloud-desktop-app.html

    Run the tool cleaning Adobe CC from here: https://helpx.adobe.com/creative-cloud/kb/cc-cleaner-tool-installation-problems.html

    Restart your computer

    Install creative cloud app: https://www.adobe.com/creativecloud/desktop-app.html

    Let us know if it works!

  • Need help on the authentication code

    Hello
    I spent OCP10g paper # 1Z0-043 in 2009 and completed ILT in 11g in April 2013.
    Now I'm trying to submit the form of completion of course and he asks the authentication code.
    I tried the class ID, registration ID, testing ID but no luck.
    Could someone help me on this... ?

    Note:
    When I passed OCP 10 g/m², the oracle training center was prometric now its pearson, please let me know if something to do with it.

    Thank you
    Pankaj

    It is clear the FAQ in the center of Certification help, it is a requirement of the CMO only:

    The submission of course form request an Authentication Code. What is c?
    CMO DBA and Oracle instructors candidates must include an Authentication Code to submit the form request of CMO success Kit and the shape of the instructor. Candidates can obtain this code to Support de Certification Oracle.

    I recommend you leave it blank.

  • Help with the enforcement code model

    I need to find a way to apply a pattern that I can't enforce through the specification of the normal template.

    I have a field that must be two numeric characters.  If only a numeric character is entered, then it must be two characters, with the first main character being zero.  So, if you enter 3, then the field becomes 03.

    In addition, none of the non-numeric characters cannot be accepted.  Unfortunately, if I try to specify a model in a numeric field, then it converts all non-numeric characters zeros!  Who does not work for my application.

    The plan I came up with is this: make the field so that it is not wide enough for the characters to width fixed to fit and check the box to limit the length of field to the visible area.  Then enter the code on the output event that will check the characters who had entered one at a time, first the left then the right.  It can examine the ASCII values for these characters to ensure that they represent 0 to 9 digits; This would mean that the ASCII value of each character must be greater than or equal to 48 and less than or equal to 57.  If one of the characters does not pass this test, then the computer will beep (as it does when I try to enter an alphabetic character in a numeric or decimal field, if it is possible to make a beep like that) and the field is cleaned.

    Can someone help me with this code?  I know I have to use javascript instead of formcalc (since there is no function ASCII in formcalc I know), and I don't know javascript, so I'm at a loss.

    Thanks for any help...

    Hello

    As with most of the code, there are a number of ways to do this. Here is an example that you can add to the event of output of the field in question and make sure that the language is set to JavaScript, or well the code generates an error. I've added comments for you to see what is happening:

    var myRegex = / ^ \d{2}$/; This corresponds to a 2-digit model

    var singleDigits = [0,1,2,3,4,5,6,7,8,9]; Table for verification to a single digit

    for (var i = 0; i)< singledigits.length;="" i++){="" loop="" through="" single="" digit="">

    If (this.rawValue == i) {/ / if the value is a number in the table}

    this.rawValue = "0" + i; Add a "0" in front

    }

    }

    If (this.rawValue! = null | this.rawValue! = ") {/ / only if the field contains a value...}

    If (! this.rawValue.match (myRegex)) {/ / and it does not match the model (i.e. 2 digits)}

    this.rawValue = "; Clear the field

    xfa.host.setFocus (this); set the focus on the ground

    xfa.host.messageBox ("error: reason for conflict.") Only 2 digits can be entered in this field. ") ; Enter any message you want here

    }

    }

    This field must be a text field for the '0' to be added to the front, otherwise, if it is a numeric field, the code will try to add the '0' mathematically the number entered and you'll end up with a single digit again.

    Another option is to make the field a comb 2 numbers and then you can delete the second block of code.

    -

    Dallas

  • Need help with the calculation on the invoice form

    I've never used Adobe Acrobat and know nothing about JavaScript.  I am creating a form of invoice.  I have it almost complete but can't do 2 things resolved.

    1. If a line on the invoice is not used, I need the amount column empty, not 0.00.

    2. I need to add 2 totals (parts and labor) and calculate the sales tax on the total of these 2 items.

    Everything I read is way over my head. I'm an accountant, not a programmer!

    Thank you

    # 1, you can configure a custom JavaScript validate it is simply:

    // Custom Validate JavaScript
    if (+event.value === 0) event.value = "";
    

    # 2, use the simplified notation next to the calculation field:

    Parts * work * 0.085

    Replace 0.085 with tax rate that you use

  • Need help with the error code Udates Windows 0 x 80070424

    Hi, can someone give me some advice on how to enable Windows Auto Udates back, they seemed to have close the cottages and after trying to use all the options available I knew I am now facing an error code when I try to use the Microsoft Web site myself to get them. He responds just error Code 0 x 80070424. Thanks, any help would be great so if you "ve had this problem before or heard about what's going on could you please send me one. Brad

    See: http://support.microsoft.com/kb/968002

    -steve

  • Need help with the error Code 80244019 Windows Update

    From: Doug

    I get code 80244019 whenever I try to use Windows Update. I tried to change the DWORD in regedit nothing helps... Norton has recently found and 'resolved' trojan.zlob in 128 files in the registry, 21 cases (10 of which were in system32) and 1 browser cache. Whenever I try to use IE to go to http://windowsupdate.microsoft.com I am redirected to msn.com.

    Any advice or solutions would be welcome.

    From: PA bear [MS MVP]

    Chances are that ZLOB was not completely removed and she was accompanied by infections Vundo and SDBot variant, all protected by a rootkit infection. You are going to need specialized assistance to clean this machine,

    Unexplained computer behavior may be caused by deceptive software

    http://support.Microsoft.com/kb/827315

    Run a check of /thorough/ for hijackware, including post your hijackthis on a proper forum log.

    Verification / help with Hijackware

    http://aumha.org/a/parasite.htm

    http://aumha.org/a/quickfix.htm

    http://aumha.NET/viewtopic.php?t=5878

    http://wiki.CastleCops.com/Malware_Removal_and_Prevention:_Introduction

    http://MVPs.org/winhelp2002/unwanted.htm

    http://inetexplorer.MVPs.org/data/prevention.htm

    http://inetexplorer.MVPs.org/tshoot.html

    http://www.MVPs.org/sramesh2k/Malware_Defence.htm

    http://defendingyourmachine2.blogspot.com/

    http://www.elephantboycomputers.com/page2.html#Removing_Malware

    When all else fails, HijackThis v2.0.2

    (http://aumha.org/downloads/hijackthis.exe) is the tool to use.

    It will help you to identify and remove any hijackware/spyware with

    assistance of an expert.  * Post your log to

    http://aumha.NET/viewforum.php?f=30,

    http://forums.Spybot.info/forumdisplay.php?f=22,

    http://CastleCops.com/forum67.html, or other appropriate review bodies

    by an expert in the field, not here.* *.

    If the procedures look too complex - and there is no shame in admitting

    isn't your cup of tea - take the local machine, good reputation and

    independent computer repair shop (i.e., not BigBoxStoreUSA).

    --

    ~ Robear Dyer (PA Bear)

    Another response of the community of Windows Vista discussion groups

  • need help with the error code 150:30

    need help to find out what error code 150:30 is and how to fix it

    See the following topics:

    Error 150:30 - error "Licensing has stopped working". Mac OS:

    http://helpx.Adobe.com/x-productkb/global/error-licensing-stopped-Mac-OS.html

  • help in the AS3 code for countdown 24 hours on 24

    Hello

    I want to ask you if anyone can help me,

    I created a flash 24 hours countdown timer here http://allofmyworks.weebly.com/flash.html

    the problem is when the desired time is reached, the duration again and turned negative,

    what I want is to make it to countdown alone 24 hours a day and when it reaches the time he stays only at 00:00:00

    Thank you

    Here's the code I used

    var endDate:Date = new Date (2012,0,4);

    var countdownTimer:Timer = new Timer (1000);

    countdownTimer.addEventListener (TimerEvent.TIMER, updateTime);

    countdownTimer.start ();

    function updateTime(e:TimerEvent):void

    {

    var today: Date = new Date();

    var timeLeft:Number = endDate.getTime () - Now.getTime ();

    var seconds: Number = Math.floor(timeLeft / 1000);

    var minutes: Number = Math.floor(seconds / 60);

    var hours: Number = Math.floor(minutes / 60);

    seconds, % = 60;

    % of minutes = 60;

    var sec: String = seconds.toString ();

    var min:String = minutes.toString ();

    var hrs:String = hours.toString ();

    If (sec.length < 2) {}

    s = '0' + seconds;

    }

    If (min.length < 2) {}

    min = "0" + min;

    }

    If (hrs.length < 2) {}

    h = "0" + hrs;

    }

    var time: String = hour + ":" + min + ":" + seconds;

    time_txt. Text = time;

    }

    to put an end to that date to the 0800, use:

    var endDate:Date = new Date (2012,0,4,8);

    to use a 24-hour Countdown:

    var endDate:Date = new Date (Date () .getTime () + 24 * 60 * 60 * 1000) new;

  • Help with the calculations of time

    I tried several searches but can't seem to find what I need to do. I need to read a file with two columns, the first column is the time of an event. Then I need to calculate the time between each event (row). I know I have to use a loop to read the file but I cannot find any information on what the best way to calculate the time between each event so that I can get statistics such as average time per cycle, time since the last cycle, etc.. The only way that I can think is to read the file as a string and then parse time, but that doesn't seem like an effective way of doing things.

    example: data.csv

    08:00 10

    08:12 8

    10:00 2

    11:12 3

    Use '% <%H:%M> t' as format string instead. Capital T formats time as an absolute time, which according to your format is not what you are working with. The tiny t he reformatted as a relative timestamp and you should be able to calculate your time between events of.

    Hope this helps,

    Rob

  • Need help with the error code 15

    who can help e withthis Setup error

    Exit code: 15

    Please see specific errors below for troubleshooting. For example, ERROR: DW051...

    -------------------------------------- Summary --------------------------------------

    -0 fatal Error (s), 2 error (s)

    ERROR: DW051: {A4ED5E53-7AA0-11E1-BF04-B2D4D4A5360E}

    : Error Media DB: 12

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

    [Branched out to new discussion... Please start your own discussion for a different error...] MOD]

    Hi Johnnoyt12,

    In addition to what John suggested also see link below:

    Installation and launch log errors | Adobe Creative Suite 6, Adobe Creative Suite 5.5, Adobe Creative Suite 5

  • How to get help with the error Code: U44M1U5?

    I just bought a new laptop with Windows 10 on it. I installed a new copy of Photoshop elements 13. I noticed that some features do not work when you click them. For example, when you try to create a new catalog, I clicked file > manage catalogs, but nothing happens. Similarly, the organizer has imported audio clips. I can't delete them. When I click on the option to remove the selected options of the Organizer, nothing happens. I got a popup telling me that updates are available. I tried to install them, but the installation fails every time. I get an U44M1U5 error code. How to solve this?

    PTL, I was able to get the problem solved. It turned out to be a fix of the 2 part. #1 problem: The buttons and functions that were not working in 13 items. I downloaded the latest updates for Windows 10 and that fixed that problem. I am now able to create catalogs, remove items from catalogues etc.  Problem #2: U44M1U5 error Code. I tried to download updates all 3 components suggested at the same time (AAM, first 13 elements and Photoshop Elements 13/Adobe Camera Raw 9). A forum suggested do one at a time. In addition, you can download the update of MAO while the MAO is running. You must click on CTRL-ALT-DEL, and then click Task Manager. From there, click on Adobe Application Manager and click on end process. Once I did, I was able to update the AAM with no problems. I then ran the update to Photoshop Elements. He got about 13% full and told me that I had to stop organizing Adobe. I did and you click on continue. Have downloaded the update without problem. I was also able to run the update to Adobe Camera Raw Editor 9 without problem. When I downloaded the update for Premiere Elements, it is 13% full before telling me to stop Organizer as well. So I closed the organizer and click on continue. All the updates installed without problem.

Maybe you are looking for