Articles of Sum in tabularform

Good afternoon
my name is maribel and I need help
I want that 2 items in my sub form of sum when I press "TAB".
For example, I have "Code""Cant", 'Unit of V', 'TOTAL', I put 2 in "Cant" "TAB" and I put 10.05 in 'V unit' then when I put 'TAB' automatically 'TOTAL' have 20.10
I hope you can understand me because I do not speak English

Thank you

Published by: 997648 on 02-Apr-2013 15:49

Published by: 997648 on 02-Apr-2013 15:59

Hello
Thanks for your reply.
I understand so so, but I mix this post with others and I fix my problem :D

Thank you

Tags: Database

Similar Questions

  • How to add only lines that are checked in a form?

    I have a number of lines in a form. Some people have a checkmark field and others do not. I want to create two calculated fields. One to give me the totals if the line is activated and the other to give me the totals if line is not checked. I can't understand how to do this.

    Hello.

    You should have followed the suggestion of Francis and use the possibilities of computing built into the forms.

    Approach:
    -Create a form element in the block where you have your field to summarize.
    -Put the 'calculation' formula mode
    -As a formula, put something like

    DECODE(:BLOCK.CHECKBOXITEM, 'Y',:BLOCK.ITEMTOSUMUP, 0);
    

    where "Y" is the value of the cehckbox when checked.

    -Create a block of control to the "Single Document" property value to true
    -put a formula-else that newly created the block, the value 'Calculation Mode' to 'Summary', block to summarize your data block element to summarize in the previous formula-column created.
    -But, but not least, set the property to "Question everything" block which your article to sum up to 'true '.

    She's. No need for any triggers or the same logic to take on a loop on the block.

    I hope this helps.

  • The sum of all invoices and view total

    Hello

    I do perhaps the hardest way but the case is the following:

    I want to calculate all the Bills of the largeOrders2 collection and collect all the item.totalPrice 'values' in a table and assign a total that I can use on the site, up to now, I have my code as follows:

    {module_data resource = "customers" resourceId = "{{globals.user.entityId}}" subresource = "orders" version = "v3" collection = "largeOrders2" "}

    {% for article on largeOrders2.items-%}

    {% assign invoicetotals = item.totalPrice | round-%} * summarize all invoices as a single total and pass it to a liquid tag

    < span class = "red sumInvoice" > {{invoicetotals}} </span >

    {% endfor}

    < div class = "result" > Total spent on shopping: {capture totalInvoices %} < span class = "totalsum" > < / span > £{% endcapture} {{totalInvoices}} < / div >}

    < script type = "text/javascript" >

    var sum = 0;

    $('.sumInvoice').each (function () {}

    sum += parseFloat ($(this) .text ());  Or this.innerHTML, this.innerText

    $(".totalsum").text (sum);

    });

    < /script >

    use {{totalInvoices}} in a {% if order_requirement < totalinvoices-%} declaration.

    I'm quite sure, there is an easier way, but I have not found a solution for the sum of an array using liquid and obtaining data from the result instead of text().

    Thank you

    You don't need any JavaScript for this and you just need to sort your liquid.

    Things of importance to note:

    -You have a collection and it will be not more then 500 items

    -You create an entitled 'Total' ready before your loop with a value of 0 is a number

    -You do the following your loop for: {% assign invTotal = invTotal: so: item.totalPrice-%}

    - As you loop your value will be added to each invoice

    -{{invTotal}} will give you your total value.

  • average amount of an article during the days of the week to a month

    Dear members,

    I want an application that compiles the data as below.

    Point 1 first day of the week saying Monday by 10 in a specific month

    Article 1 Monday next 20th of the same month qty

    Article 1 Monday 25th of the same month next qty

    Article 1 Monday next 22nd of the same month qty

    If there are 4 four Mondays of the month

    the avg of 1 article is (10 + 20 + 25 + 22) / 4 = 19.25

    Similarly, avg of article 2, point 3, point 4. .on every Monday, Tuesday, Wednesday... for a month.

    kindly show me the way...

    Thank you.

    teefu

    Lahore.

    Hi teefu,

    Try this

    create table ts1

    (sale_date date, item_code number, number of qty_sold);

    Insert the ts1

    values (to_date('02-Jun-2014','DD-mon-YYYY'), 1, 10);

    Insert the ts1
    values (to_date('16-Jun-2014','DD-mon-YYYY'), 1, 20);

    Insert the ts1
    values (to_date('23-Jun-2014','DD-mon-YYYY'), 1, 30);

    Insert the ts1
    values (to_date('23-Jun-2014','DD-mon-YYYY'), 1, 25);

    Insert the ts1
    values (to_date('30-Jun-2014','DD-mon-YYYY'), 1, 30);

    Insert the ts1
    values (to_date('02-Jun-2014','DD-mon-YYYY'), 1, 10);

    Insert the ts1
    values (to_date('05-Jun-2014','DD-mon-YYYY'), 1, 70);

    Insert the ts1
    values (to_date('12-Jun-2014','DD-mon-YYYY'), 1, 150);

    Insert the ts1
    values (to_date('26-Jun-2014','DD-mon-YYYY'), 1, 40);

    Select item_code, to_char(sale_date,'Day') day, avg (qty_sold) avg_sold

    ts1 by item_code group, to_char (sale_date, 'Day')

    output

    ITEM_CODE DAY AVG_SOLD

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

    1 Monday 19,25

    1 Thursday 86.666667

    Select the day of item_code, to_char (sale_date, 'Day'),

    Sum (qty_sold) wheel (TO_NUMBER (to_char (sale_date, 'w'))) avg_sold

    of ts1

    Item_code group, to_char(sale_date,'Day');

    ITEM_CODE DAY AVG_SOLD

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

    1 Monday 15.4

    1 Thursday 65

  • You attempt to add a column with a SUM function

    Hello

    I am new to Oracle (using 11 g) and I try to add a new column in my table with one facility amount.

    Currently, I have a weekly Chronicle of salary, but I would like to add an annual salary that uses the data of the week.

    Example I tried was:

    change the emp table add)

    yearly_wage SUM(WEEK_WAGE*52));

    Is it possible to do this please?

    Thank you

    Create a virtual column.

    http://www.Oracle-base.com/articles/11g/virtual-columns-11gr1.php

  • How to make a sum of text_field or column with where condition?

    Hi all

    In Oracle forms 6i, I created a form in which there are 5 text_Items (with 20 none of the displayed fields) namely ACCOUNT FD DO, AMOUNT, INTEREST RATE, STATUS and INTEREST_YEAR.

    FD ACCOUNT NO.

    AMOUNT

    INTEREST RATE

    STATUS

    INTEREST_YEAR

    47665

    50000

    1. 11.5

    E

    5750

    37463

    60000

    12

    D

    7200

    47651

    100000

    1. 12.5

    D

    12500

    34766

    70000

    11

    E

    7700

    I want to make the sum of the INTEREST_YEAR where status = 'E '.

    I created a TOTAL_INTEREST_YEAR name field in which I want to display the sum.

    How the sum with where condition?

    Thank you.

    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production

    Oracle form Builder 6i.

    Michael,

    When you write the formula for a calculated item, it does not use PL/SQL expressions (to include built-in DECODING) in Forms 6i.  If there was no conditional control over your calculation, you can simply make your article a summary point and perform the summation over column interest_rate .  However, because your calculation depends on the value in the STATUS column, you will need to use a combination of a calculated item and a summary article because you can't use an IF, DECODE or any other PL/SQL statement in the formula for the calculated item.  Therefore, you need to create a function in the knot of program units and call the function in your formula.  I tested it using the following code and it worked correctly.

    First, create the following function in the node of the object browser program units.

    FUNCTION calc_interest RETURN NUMBER IS
         n_ret_val  NUMBER := 0;
     BEGIN
       IF ( :YOUR_BLOCK.STATUS = 'E' ) THEN
           n_ret_val := :YOUR_BLOCK.interest_rate;
       END IF;
       RETURN n_ret_val;
    END calc_interest;
    

    First, you must change the property to BLOCK request all archives = Yes

    Then, open the palette of your calculated item property, and set the following properties:

    1. calculation = Formula

    2 property Forumla = CALC_INTEREST

    3. point data base = No.

    Now create a second item in the table not based on in your block that will display the amount of the interests summarized.  Open the palette property for this element and set the following properties:

    1 Data Type = number

    2 calculation Mode = Summary

    3. function = sum

    4 summarizes point = "name of your element calculated.

    5 base of data point = No.

    6 canvas = "your canvas.

    When you query your block, you should see the sum of all records where STATUS = 'E '.

    It worked for me, in my example form that I created so this should work for you.

    Craig...

  • Color of the lump sum

    In an interactive report, I want the sum of the column to display in different colors if the total is negative

    Please suggest.

    Sanjay

    Published by: user12957777 on July 19, 2012 01:27

    Hello

    This could help my blog
    http://dbswh.webhop.NET/dbswh/f?p=blog:read:0:article:2629800346767557

    Kind regards
    Jari
    -----
    My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • Dynamically update a numeric field as the sum of the values of page element.

    Hello

    I am updating a numeric field on a page of the apex by summing the values of several components of the page. I have tried to follow this tutorial http://st-curriculum.oracle.com/obe/db/apex/r40/apexdynactions/apexdynactions_ll.htm, especially the part "create a Set value dynamic Action with the help of PL/SQL'.

    In the example of the tutorial, they return a value of page element P3_SAL multiplied by a multiplier determined by the case of another page. What I want to do is much more simple that I just want to add multiple values page element and then display them in a numeric field at the bottom of the page.

    so the code I tried to use based on the tutorial is in the tab: Home > Application Builder > Application 103 > Page 3 > Dynamic Action change > create / edit Action

    Set type: PL/SQL function body

    PL/SQL function body:

    BEGIN
    return: P3_ITEM1 + P3_ITEM2 + P3_ITEM3;
    END;

    Page items to submit: P3_ITEM1, P3_ITEM2, P3_ITEM3

    But it gives me an error that I need to declare identifiers, and yet it works if I use only one article and I can perform arithmetic.

    That is to say.

    BEGIN
    return: P3_ITEM1 + 1000;
    END;

    Any help would be appreciated.

    PL/SQL function body:

    BEGIN
    return: P3_ITEM1 + P3_ITEM2 + P3_ITEM3;
    END;

    Page items to submit: P3_ITEM1, P3_ITEM2, P3_ITEM3

    But it gives me an error that I need to declare identifiers, and yet it works if I use only one article and I can perform arithmetic.

    In your code, it lacks the ":" for articles P3_ITEM2 and P3_ITEM3.
    Try this:

    BEGIN
    return :P3_ITEM1+:P3_ITEM2+:P3_ITEM3;
    END;
    
  • Calcutated articles

    Hello

    I'm trying to accomplish that a pivot table looks like this.
    *PLAN     JAN  FEB MAR total*
    --------------------------------------------
     a        1    2   3     6
     b        3    2   1     6
     a+b      4    4   4    12
     c        4    5   6    15
     b+c      7    7   7    21
     a+b+c    8    9   10   27
     d        1    0   1     2
     a+b+c+d  9    9   11   29
    
     
    A, B, C are elements of dimension PLAN, and I need for the operation of these elements. The problem is when I use the calculated in the PivotTable item, all these new calculated are fixed at the bottom of the table.

    I tried to use the links, but has not worked for me.

    I don't know if in the repository can create these calculated items.

    OBIEE 11G 11.1.1.5

    Thanks for your advice.

    Published by: Andres on November 22, 2011 07:08

    Published by: Andres on November 22, 2011 07:16

    JAN Feb MAR total PLAN
    --------------------------------------------
    1 2 3 6
    3 2 1 6 b
    a + b 4 4 4 12
    4 5 6 15 c
    b + c 7 7 7 21
    a + b + c 8 9 10 27
    1 0 1 2 d
    a + b + c + d 9 9 11 29

    Andres,

    What I meant here was... Only the soln to organize these elements in a specific order is to create elements calculated for these items...
    For example: currently, you create point Calc for a + b by adding a and b attributes. Similarly, to get the element calc for attribute has, you simply must attribute a sum.

    In this way, for your group of data provided above, you will have 8 article Calc from a and ends with a + b + c + d. Simply create them in the order you want to create and hide all other values rest.

    I know it's great pain for the large amount of data but to get this done at the level of the answers, it's the only way I can think. It is a VALID in 10g and 11g prescription because any future changes to the sequence will be asked to delete and recreate the elements of calc.

    Hope its clear

  • Forms/article

    Hello

    I have in APEX 4.0 something like
    in a form, I bring the table from departments of a schema of HR and I would also like to bring the following

    Select department_id, count (*) TOTAL_EMP, sum (salary) TS
    employees
    Group by department_id;


    How can I do this?

    Thank you

    Hello

    You must create a report, or if you want to display the result in the articles, give the query in "Source" and select "SQL query" as "the Source Type.

    Kind regards
    Benz

  • Sum in OBIEE business model

    Hello

    I'm doing the $ 1, $ 2, sum3 and suma total sum 1 + sum 2 + sum3. For example, I have six elements. Articles 1 and 4 make sum 1, points 2 and 5 to the sum of 2 and so on. Finally, all money is total. Is it possible to make in the business model?

    Thanks in advance.

    Hello

    I think that you can do using a filter like this object

    FILTER (measure.column USING dim.column IN ('RC', 'Kasko'))

    In this way, you can build your different totals.

    And you can create a total with different objects.

    I hope this can help you.

    KR,
    A

  • SUM IS INCORRECT

    I have a worksheet and the SUM function gives the wrong number. It's really dangerous because I need precision.

    I deduced that there is a single cell, that it fails to include in the sum, even if the cell is selected.

    I click on the cell, I want to add to the column, then press = and then select the column. The sum is incorrect and fails to add one of the cells

    Why?

    It is so irritating and so dangerous that I need clarification on this sheet of numbers. Never had this with excel.

    Help, please!

    Thank you

    without details, it is difficult to guess.

    Often, the cell is not the same as the other somehow.  Maybe it's in text format, or there's a funny character in the cell.  Try to copy the data to a new table in a new document to check the results.

    If you can validate the data, then we can try too.

  • This article is temporarily unavailable!

    After that my macbook pro had become very slow over the last few days, I decided to reset the system, following the usual procedure:

    1. press alt + power

    2. choose Utilities-> erase a Macintosh hard drive (or in my case, it was called macbook pro)

    3 reinstall the El Capitan OS X via internet.

    However, after trying to install the OS X and entering an apple ID, it tells me the same message over and over!

    "This article is temporarily unavailable. "Please try again later".

    I don't know what to do, because I tried to redo these steps several times that day and with two different networks. Unfortunately, I don't have the original installation being, so I have to install the OS via internet (or if possible!

    I erased from my hard drive prior to this, the closing of the Apple Store for me is 5 hours away from me, my MacBook Pro is 3-4 years old, can someone please help me

    The latest version of Mac OS X's Sierra - 10.12 - not El Capitan. The latter is no longer available. Try this instead:

    Clean Install of Mac OS X

    1. Restart the computer. Immediately after the chime, press Command + Option + R until a globe appears.
    2. The Utility Menu appears in 5 to 20 minutes. Be patient.
    3. Select disk utility, then click on the continue button.
    4. When loading disk utility, select the drive (generally, the entry Out-bumpy) in the list aside.
    5. Click the Partition tab in the main window of disk utility. A panel will fall.
    6. Set the GUID partition scheme.
    7. Define the type of Format Mac OS extended (journaled).
    8. Click on the apply button, then click the fact when it is active.
    9. Quit disk utility and re-enter the Utility Menu.
    10. Select reinstall OS X and click on the continue button.
  • How can you add something (like article) to the home screen. This option seems to have disappeared. So far I've recorded in notes.

    How to record save such an article to the screen in version 10. This option seems to be gone, so for now I save in "notes." Thank you all.

    Hello

    If you have a box with an arrow at the top of the screen just click on that & follow the prompts.

    See you soon

    Brian

  • Sidebar articles

    Can I combine my articles from reading into something like a folder?

    Unfortunately not. Safari of the playlist elements cannot be organized into groups.

    At the present time there is no way to create folders to keep items organized as folders of bookmarks.

Maybe you are looking for