Add Colume in the table and display the result in it.

Hi guru,.
I have a requirement to add the column to the existing Table. and display the result after calculation.


Thank you
Rutu

Hello

Please use this referral code snippet:

Am = (OAApplicationModule) pageContext.getApplicationModule (webBean) OAApplicationModule;
OAViewObject vo = (OAViewObject) am.findViewObject (""); Give VO name attached to the region of the Table.
If (vo! = null)
{
vo.addDynamicAttribute (""); Addition of ViewAttribute to VO
}
VO. Reset();
VO. Next();

Do the math you want to

Definition of the calculated value in the created attribute of VO
vo.getCurrentRow () .setAttribute ("", );

I hope that gives you a proper help.
Please do not hesitate to ask if more Question

--
Thank you
Shrikant

Tags: Oracle Applications

Similar Questions

  • How to add images to my table and how to configure the Web site? Help, please

    I do not understand how to configure the Web site and add images to a table and make hyperlinks.

    First, set the folder of your Local Site saying DW where to save the files on your local hard drive.  Go to Site > new Site.

    I think it is easier to start with a page layout predefined by using one of the appropriate templates to bootstrap that comes with DW.

    Go to file > new > (Starter models > models Bootstrap). Select one:

    • Bootstrap-Agency
    • Bootstrap-eCommerce
    • Bootstrap-Portfolio
    • Bootstrap-product
    • Bootstrap-real estate
    • Bootstrap-curriculum vitae

    Press the button create.

    For pictures, go to insert > Image. Select an image and save it in the folder of your local site.

    Nancy O.

  • Link to information from tables and display the 'best '.

    Hello! I'm totally new to this great software, and the truth is that I lost D:
     
    I try to explain in more detail what I have to do, I hope you can help me please it is urgent T_T

    I do 3 tables must be related to each other, that is to say a table where a username will be manually enter, another where you manually enter the user name and the third which will automatically enter power of each user (for automatic writing, I'll use random data). Each table will have a box number, for example:
     
    Table 1, box 1: Paul
    Table 2, box 1: door
    Table 3, box 1: 3.74
     
    Table 1, box 2: Miguel
    Table 2, box 2: Ramos
    Table 3, zone 2: 4.99
     
    Table 1, box 3: Maelle
    Table 2, area 3: Branco
    Table 3, case 3: 4.98
     
    I mean, I bind the box to one table with the other three. And because the program must compare the data in table 3 (power) and display the data of the user of best (which has the highest power). In this example, the program should appear:
     
    BEST USER:
    NAME: MIGUEL RAMOS
    POWER: 4.99

    (Is not slender record information when I close the program)

    I don't know if I ask you very much, I have a very clear idea in my head of what I have to do, but being a new software for my not know how to implement it.

    Thank you in advance for your quick response and help and ilustrative! xD

    Have you tried something with the basic understanding of your question check if this is what you need?

    -Still not clear what you mean by table? (In my opinion, the table is 2d array of values here, otherwise please let me know.)

    -C' is the reason why I asked you to show your code you did then it will be clearer.

  • Multiplication of the columns in the table and displays the result

    Hello Experts!
    With the help of Jdeveloper 11 g Release 1:
    I have a situation where I have a two tables showing the relationship of the master / detail. Now the main table shows the available quantity and the unit price and will then multiply to show the total price.
    The Details table does the same thing but has an additional column (added manually) with another text entry that requires the 'quantity' and then I need the total price with this value as well. So overall, the user has the option to select a quantity that is less than or equal to the quantity available (from the main table) and then to calculate the new total price based on user input.
    How can I go about it?
    All of the suggestions! ?
    s =

    I apologize in advance if this does not work for you, but here's my point of view.

    (1) add QtyDesired as a transitional editable column with a set of expressions Qty.
    (2) make your transitional column TOTALCOST an expression of QtyDesired * UNITPRICE.
    (3) according to how your page is set up, your QtyDesired may need to raise a contextual event. Otherwise, it might be enough to assign partial release of your TotalCost your column QtyDesired column to allow a partial page refresh. I do something similar by editing the line of my table in a popup, and then when the dialog box closes, it refreshes the table with the new values.

    Hope that helps. Just throwing some ideas out there. AutoSubmit and partial triggers seem to trouble many of my problems of refresh.

  • Join the 2 tables and display in simple rows

    Hello

    I have 2 tables, clock_in and clock_out as below

    Table: clock_in
    EmpNo, first_in, total_in
    1001, 20-SEP-2012, 3
    1003, 23-SEP-2012, 5

    Table: clock_out
    EmpNo, last_out, total_out
    1001, 21-SEP-2012, 9
    1002, 23-SEP-2012, 8

    I wanted the result as below, so far without success. I tried the full outer join but the never the end running query.
    Hope someone can help me.

    result
    EmpNo, first_in, last_out, total_in, total_out
    1001, 20-SEP-2012, 21-SEP-2012, 3, 9l
    1002, null, 23-SEP-2012, null, 9
    1003, 23-SEP-2012, null, 5, null

    You probably need something like that.

    with clock_in as
    (
    select 1001 id, to_date('20-SEP-2012', 'DD-MON-YYYY') dt, 3 tot from dual union all
    select 1003, to_date('23-SEP-2012', 'DD-MON-YYYY'), 5 from dual
    ),
    clock_out as
    (
    select 1001 id, to_date('21-SEP-2012', 'DD-MON-YYYY') dt, 9 tot from dual union all
    select 1002, to_date('23-SEP-2012', 'DD-MON-YYYY'), 8 from dual
    )
    select nvl(i.id, o.id) empno, i.dt, o.dt, i.tot tot_in, o.tot tot_out
      from clock_in i full outer join clock_out o
        on i.id = o.id
     order by empno;
    
    EMPNO                  DT                        DT                        TOT_IN                 TOT_OUT
    ---------------------- ------------------------- ------------------------- ---------------------- ----------------------
    1001                   20-SEP-12                 21-SEP-12                 3                      9
    1002                                             23-SEP-12                                        8
    1003                   23-SEP-12                                           5
    

    However, I do not understand how you have 9 as TOT_OUT for emp 1002. I guess 9. If this isn't the case, then explain in details of how achieve results. And don't forget to read the link provided by SB post before posting next time. The details mentioned in the help link people willing to help by providing the details necessary to reach a better solution.

    result
    EmpNo, first_in, last_out, total_in, total_out
    1001, 20-SEP-2012, 21-SEP-2012, 3, 9l
    1002, null, 23-SEP-2012, null, 9
    1003, 23-SEP-2012, null, 5, null

  • Retrieve and display a result set using the dynamic sql?

    Hi all

    How would display a result set in Oracle using the dynamic SQL? Reason being, the table where I'd retrieve and display the result set is a GLOBAL TEMP TABLE created in a stored procedure. If I try to use the loop as usual, the compiler complains that the table does not exist. This makes sense because the compiler does not recognize the table because it is created dynamically. Here is an example:

    create or replace PROCEDURE maketemptab IS
    sql_stmt VARCHAR2 (500);
    OutputString VARCHAR2 (50);

    BEGIN
    -create temporary table
    sql_stmt: = ' CREATE of TABLE TEMPORARY GLOBAL globtemptab (id NUMBER, col1 VARCHAR2 (50))';
    EXECUTE IMMEDIATE sql_stmt;
    dbms_output.put_line ('... created table ');

    -Insert a row into the temporary table
    sql_stmt: = "INSERT INTO globtemptab values (1, 'some data of a test')';"
    EXECUTE IMMEDIATE sql_stmt;
    dbms_output.put_line ('... inserted row ');

    -Insert a row into the temporary table
    sql_stmt: = ' INSERT INTO globtemptab values (2, "some more test data");
    EXECUTE IMMEDIATE sql_stmt;
    dbms_output.put_line ('... inserted row ');

    -Select the row on temporary table
    sql_stmt: = 'SELECT col1 FROM globtemptab WHERE id = 1';
    EXECUTE IMMEDIATE sql_stmt INTO outputstring;
    dbms_output.put_line ('... selected line: ' | outputstring);

    -drop temporary table
    sql_stmt: = 'DROP TABLE globtemptab;
    EXECUTE IMMEDIATE sql_stmt;
    dbms_output.put_line ('... moved table ');

    -display the result set
    for tabdata loop (select col1 from globtemptab)
    dbms_output.put_line ('... test of recovered data are' | tabdata.col1)
    end loop;
    end;


    In short, how to rewrite the SQL below the comment "to display the result set" using the dynamic sql?

    Thank you
    Amedeo.

    Hello

    Try this:

    CREATE OR REPLACE PROCEDURE maketemptab IS
       sql_stmt     VARCHAR2(500);
       outputstring VARCHAR2(50);
       v_cursor     SYS_REFCURSOR;
       v_col1       VARCHAR2(30);
    BEGIN
       -- create temp table
       sql_stmt := 'CREATE GLOBAL TEMPORARY TABLE globtemptab(id NUMBER, col1 VARCHAR2(50))';
       EXECUTE IMMEDIATE sql_stmt;
       dbms_output.put_line('...table created');
    
       -- insert row into temp table
       sql_stmt := 'INSERT INTO globtemptab values (1, ''some test data'')';
       EXECUTE IMMEDIATE sql_stmt;
       dbms_output.put_line('...row inserted');
    
       -- insert row into temp table
       sql_stmt := 'INSERT INTO globtemptab values (2, ''some more test data'')';
       EXECUTE IMMEDIATE sql_stmt;
       dbms_output.put_line('...row inserted');
    
       -- select row from temp table
       sql_stmt := 'SELECT col1 FROM globtemptab WHERE id=1';
       EXECUTE IMMEDIATE sql_stmt
          INTO outputstring;
       dbms_output.put_line('...row selected: ' || outputstring);
    
       OPEN v_cursor FOR 'SELECT col1 FROM globtemptab';
    
       LOOP
          FETCH v_cursor
             INTO v_col1;
          EXIT WHEN v_cursor%NOTFOUND;
          dbms_output.put_line('...test data retrieved is' || v_col1);
       END LOOP;
       CLOSE v_cursor;
    
       -- drop temp table
       sql_stmt := 'DROP TABLE globtemptab';
       EXECUTE IMMEDIATE sql_stmt;
       dbms_output.put_line('...table dropped');
    END;
    /
    

    Kind regards

  • Add FK between a table and a view?

    Is this possible in 4.1 to add a FK between a table and a view (off of course)?

    If I'm in a view, it seems that I can define a FK to another view or a table, but if I start with a table, some views appear in the list. The view already has a defined PK.

    Is it normal?

    Use case: I have a table of generic code, so I'm set up views on the code for each type of code table. Then, I want at least diagram CF from specific code view of the code typed column on a table for the sub.

    Hello Kent,

    Is this possible in 4.1 to add a FK between a table and a view (off of course)?

    Yes.  You can do this by clicking on the icon of the new foreign key above the diagram, then by selecting the view first, then the table.

    I connected an enhancement request to allow a foreign key to a view to be added using the table properties dialog box.

    Thanks for pointing it.

    David

  • the sum of colum of the result of the sum

    Hello
    I am calculating total size a group of table A, B, C, using the query below

    Select
    nom_segment table_name,
    Sum (bytes) /(1024*1024) table_size_meg
    from dba_extents where owner = 'RDRDBA' and nom_segment IN ('A', 'B', 'C')
    and segment_type = 'TABLE '.
    Group by nom_segment;

    (get results...)
    TABLE_NAME, TABLE_SIZE_MEG
    Table_a, 69.5
    Table_B, 436,5
    Table_C, 23.5


    My question is how can I change the query above, to get just the result of the total size of the array A, B, C; This means sum the result sum of column.

    (so I don't have to use caculator everything more...)

    Thank you
    Jerry

    Hello

    You can achieve this by using the sum function.

    Fixed-line 300
    SET verify OFF
    SET pages 40
    Mbytes of COLUMN shaped 999,999,999.99 title "Total | NBA
    BREAK on report
    CALCULATE the AMOUNT OF megabytes on report
    Select sum (bytes) /(1024*1024) MBytes, nom_segment dba_segments where owner = 'RDRDBA' and
    nom_segment IN ('A', 'B', 'C')
    Group by nom_segment;

    HTH

    concerning

    Jafar

  • Function to extract a number of row in a table and display a string

    Hello everyone

    I have a table where are stored the values of numbers, in reality, they are dozens of performance such as 0,1,2,3. Now I want to get a table report that would pick the scores, but rather to show what they are like that, he would most significant channels as imperfect, average, good and very good correspondent to 0,1,2,3. I think that this would have a function, but I know very well the syntax for all that.

    -¦SCORE¦CLASS
    1. John ¦0 ¦Math
    2 Peter ¦2 ¦Math
    .. etc.

    The second aspect that would be once I have the feature where I place in the select query?

    Thank you very much

    Alvaro

    ===================================

    Published by: user12155340 on November 15, 2009 05:22

    Published by: user12155340 on November 15, 2009 05:23

    Published by: user12155340 on November 15, 2009 05:23

    Hello

    Try

    SELECT company,
     postcode,
     street,
     town,
     date_booked,
     items,
     addicts,
     staff,
     DECODE (TO_CHAR(score),'0','Defficient','1','Average','2','Good','3','Very Good',null) AS score,
     space,
     organisation,
     agency
    FROM evaluation
    
  • ADF 11 - synchronization of af: Table and display: panelFormLayout

    Hello

    The situation is the following:
    I have an af:panelTabbed with 2 af:showDetailItems

    On the first showdetailitem, I have an af:Table that is bound to a table view
    On the second showdetailitem, I have an af:panelFormLayout that is bound to the same view table

    I would like the af: PanelFormLayout to always be placed on the same rank as the af: Table so that when the user
    Click on the second tab, the af:PanelFormLayout is correctly positioned.

    As a bonus question how can switch tabs when the user double-clicks on a row in the table

    Paul

    Hello

    1. you define a PPR trigger on the panelForm page layout, use the second tab - one to switch to him - as the source of the partial order (the ID that is added to the partial triggers property)

    2. a double-tap is only recognized by a clientListener applied to the output text area. From there, you can call a bean managed using a serverListener or go to the JavaScriot TAB using the JavaScript API and witch then tab (tried the JS approach). However, the solution of Java bean should work

    Frank

  • Add lines to the query result?

    Is it possible to add lines to the result of a shutdown of the SQL query, similar to the CALCULATION command in SQL * more?

    In other words, for example, when A column value changes, add a line after the previous line (the last one before changing the column A) to display the sum of the values in column B.

    for example

    < PRE > A and B
    - --
    1 3
    1 4
    1 5
    12
    2 9
    2 1
    2-7
    1 < / PRE >
    SQL> create table sales (person,city,sales)
      2  as
      3  select 'Alice', 'Phoenix', 19 from dual union all
      4  select 'Alice', 'Tulsa', 11 from dual union all
      5  select 'Bob', 'Phoenix', 17 from dual union all
      6  select 'Bob', 'Tulsa', 9 from dual union all
      7  select 'Tony', 'Miami', 5 from dual union all
      8  select 'Tony', 'San Francisco', 4 from dual union all
      9  select 'Tony', 'San Francisco', 3 from dual
     10  /
    
    Tabel is aangemaakt.
    
    SQL> select case grouping_id(person,city,rowid)
      2         when 1 then 'Sub-Total for'
      3         when 3 then 'Sub-Total for'
      4         when 7 then 'Grand Total'
      5         end notes
      6       , person
      7       , city
      8       , sum(sales) sales
      9    from sales
     10   group by rollup(person,city,rowid)
     11  having grouping_id(city,rowid) != 1
     12      or count(*) > 1
     13   order by person
     14       , city
     15       , grouping(rowid)
     16  /
    
    NOTES         PERSO CITY               SALES
    ------------- ----- ------------- ----------
                  Alice Phoenix               19
                  Alice Tulsa                 11
    Sub-Total for Alice                       30
                  Bob   Phoenix               17
                  Bob   Tulsa                  9
    Sub-Total for Bob                         26
                  Tony  Miami                  5
                  Tony  San Francisco          4
                  Tony  San Francisco          3
    Sub-Total for Tony  San Francisco          7
    Sub-Total for Tony                        12
    Grand Total                               68
    
    12 rijen zijn geselecteerd.
    

    Kind regards
    Rob.

  • Add values in a table column

    Hi guys,.
    JDeveloper 11g Release 1.

    I have a table with lots of columns where one column is 'quantity' (of type OutputText). The table is filled by the user. It is NOT related to any view object. What I'm trying to do, is add the amounts in the table and display them outside of the table in an inputText field.
    It is perhaps a fundamental question, but since I'm a beginner I'm not able to do.
    Help, please!


    < af:table var = "row" rowBandingInterval = "0" id = "li_tab" binding = "#{pageFlowScope.Form9Bean.lineItem.tabLineItem} '"
    emptyText = "#{pageFlowScope.Form9Bean.lineItem.tabLineItem.rowCount == 0?" "}" Click the Add button to create a line item. ': 'Access Denied. »} »
    rowSelection = "single" displayRow = "selected" styleClass = "AFStretchWidth" columnStretching = "column: c18 ' filterVisible = 'true' summary = 'table in the topic.
    inlineStyle = ' height: 200px; ">
    < af:column headerText = "#{ebundle.» LINEITEM_QUANTITY_LABEL ID}"="li_c_quantity"blockable ="true"sortable ="true">
    < af:outputText value = "#{row.quantity}" id = "li_ot_quantity" / > "
    < / af:column >
    .....

    1 bind the 'Quantity' attribute to the bean.
    2. here is how you can calculate:

    int x = Integer.parseInt (quantity.getValue () m:System.NET.SocketAddress.ToString ());
    int y = Integer.parseInt (totalQuantity.getValue () m:System.NET.SocketAddress.ToString ());
    totalQuantity.setValue(x+y);

    Quantity and totalQuantity this is RichInputText related to the two attribute object

    Amit

  • Compare and display several column data according to requirement

    Hello

    I have a requirement where I want to compare the data in two tables and display only the columns if there is a gap using the sql query.

    Tell userid, e-mail and phone number of the same employee is stored in two tables. Now, I want to compare data from e-mail and phone number of the two tables and display the e-mail and phone number as if they are different data.

    Employee table:

    user_id E-mail phone
    emp01[email protected]00200
    emp02[email protected]

    00300

    emp03[email protected]00400

    Table user_details:


    ID user_email user_phone
    emp01[email protected]00201
    emp02(null)00300
    emp03[email protected]00401


    Please note that both tables have completely different column names and the data may contain a null as well. What I want to achieve is to compare the same employee data in both tables and display columns that have a different value of user_details table; as:


    user_id user_email phone
    emp01[email protected]00201
    emp02(null)
    emp03[email protected]00401


    As the table column names are different, I can't use a join and less to know the difference. I tried this with the help of CASES after the WHERE clause for comparison of columns multiple but GOLD or AND the two would defy the condition to display all columns with different data for the same line.


    How to do this without creating a separate view or a table that I don't have write access? Pointers would be useful.


    -Thank you.


    No need for something like

    You just run

    Select k.user_id, k.id,.

    e.email, u.user_email,

    e.Phone, u.user_phone

    of user_key_table k

    left outer join

    e employee

    On k.user_id = e.user_id

    left outer join

    user_details u

    on k.user_id = u.id


    the rest is here just to simulate your tables (I don't want to create tables in my APEX Tablespace as there are far too many people already)

    Concerning

    Etbin

  • PHP to get the result of a selection list

    Hello, I have searched for a solution to get the value selected in a list, then pass this value in a database table and display the value.

    Is there a php for this solution?

    Here's a Javascript solution that I found:

    < p > select a new car in the list. < /p >

    < select id = "Desproges" onchange = "myFunction ()" >

    < option value = "Audi" > Audi

    < option value = "BMW" > BMW

    < option value = "Mercedes" > Mercedes

    < option value = "Volvo" > Volvo

    < / select >

    < p > when you select a new car, a function is triggered which displays the value of the chosen car < /p >

    < id p = 'demo' > < / p >

    < script >

    Function myFunction() {}

    var x = document.getElementById("mySelect").value;

    document.getElementById("demo").innerHTML = "You selected:"+ x; '.

    }

    < /script >

    PHP runs on the server. The only way to use PHP to do what you want to do would be to send the browser to the server, reload the page to the form so that the embedded script can run either to run the script in a new page.

    If you do not want to send the form then you should use javascript (Ajax, JSON) any. I don't know how to direct you there. The script that you have shown will do the trick, but you will need to consider further than that.

  • How to compare two TABLES and different lines of list?

    I have two structural equal paintings aaa and bbb
    that (could) have different lines.

    How can I compare the tables and display different lines?

    Peter

    Something like this->

    SELECT aaa.*,'bbb' "Not present in" FROM aaa
    MINUS
    SELECT bbb.*,'bbb' "Not present in" FROM bbb
    UNION ALL
    (
    SELECT bbb.*,'aaa' "Not present in" FROM bbb
    MINUS
    SELECT aaa.*,'aaa' "Not present in" FROM aaa
    )
    

    Kind regards.

    LOULOU.

Maybe you are looking for

  • "Icons and text" style toolbar buttons have borders

    Don't know whatever the title, I can say, I've updated for Firefox 8 and the text/icon style icons have more distinctly bordered. If it was intentional, I have trouble finding the option to disable this visually discordant style change.

  • restore the mac to pc windows profile

    5 Firefox on Mac and PC. You need to send the Mac in service yesterday, so I backed up my file library as usual. Configure a new profile on a Windows 7 machine .json, restored my favorites, no problem there. Copied Signons3.txt, signons.sqlite and fo

  • Outlook 2010 beta stops when I try to open it.

    I installed a Microsoft add-in called Social connector, which was bound by a contact. Now Outlook 2010 does not open. It loads my profile, and then the opends program and then immediately stops. Anthony

  • Problem of Windows 7 open .exe files

    Hello Thanks in advance for any help you can provide. First of all, I would like to explain that I'm useless with computers and would be very happy if any help could come in the simplest possible explanation please. OK, here's the problem. Tried to o

  • AnyConnect Clients cannot communicate with each other

    I have a problem that I've been pulling my hair out... my teleworkers connect to our network of Corp. via a connection AnyConnect VPN (version 3.1) to a Cisco ASA5520. I have not split tunneling enabled for this profile, so that all traffic should pa