How to add two fields and show the result in a third

All,
I have 2 InputText field; both are related to the fields of the associated database.

I want to display the sum of these two fields on a text output.

I declare the value of the output in this way text link:
#{sessionScope.PersonalNrBean.summeDB.value + sessionScope.PersonalNrBean.kmGeldMlp.value}

But I get this error:
Cannot find resource for bundle java.util.PropertyResourceBundle, key el.convert

ADF_FACES - 60097:Weitere desKomitees find DEM Fehlerlog einen entry as servers, der mit: ADF_FACES - 60096:Server - Exception while PPR, beginnt #3

If I declare the value binding to contain the field even two times:
#{sessionScope.PersonalNrBean.summeDB.value + sessionScope.PersonalNrBean.summeDB.value}
It works as expected, but it's not really what I need...

Any ideas?

Thanks in advance,
Sergio.

Edited by: user5414451 the 14.07.2011 02:57

Try following:

#{bindings.summeDB.inputValue.value + bindings.kmGeldMlp.inputValue.value}

Jean Lou

Tags: Java

Similar Questions

  • Formula: Add two fields and divide a

    Help!


    I'm figuring a field that requires information of 2 other fields. I need of field "STR_2" to calculate the sum of the 'STR_1' field and 1/2 of the field 'Level' (rounded down). I use the following formula in the field "Calculate Custom script":

    {If (this.getField("Level").value! == {this.getField("Level").defaultValue)}

    Event.Value = (Math.round ((this.getField("Level").value - 1) / 2) + (this.getField ("STR_1")));

    }

    else {}

    Event.target.defaultValue = Event.Value;

    }

    However, it keeps returning the value "0 [ObjectField]" when the value of the 'level' is 1 and 'STR_1' 2 (it should return a value of '2').

    When I use the following formula:

    {If (this.getField("Level").value! == {this.getField("Level").defaultValue)}

    Event.Value = (Math.round ((this.getField("Level").value - 1) / 2));

    }

    else {}

    Event.target.defaultValue = Event.Value;

    }

    It works very well, and I get a value of '0' (1/2 "Level" rounded down). So, how can I fix this so that I get the right calculation?

    Thanks in advance!

    (If that makes a difference, I use Acrobat Pro XI on a Windows 7 laptop).

    You should correct this line in your first script for:

    Event.Value = Math.round ((this.getField("Level").value - 1) / 2) + + this.getField ("STR_1") .value;

    But this calculation does not do what you say you want. It subtracts 1 to the value of the field level and divides the result in two and adds the value of STR_1, which is different from what you have described.

  • Add the value of point two apex and display the result in another part of the apex

    Hello

    I need to make the addition of the two item values using apex.item.text and find the result in another apex.item.text.

    For example:
    SELECT
    apex_item. Text(1,null) ONE
    apex_item. Text(2,null) TWO
    apex_item. Text(3,null) RESULT
    FROM EMP
    please suggest me

    Thank you
    Sudhir

    >
    No it does not add the two values in the column, user key to enter the value, it must add the value of the item and displays the result in a dynamic way. Need a suggestion for using javascript
    >
    This requirement was not not clear in the op.

    See the demo of Denes Kubicek.

    This topic is discussed far too often. Have you tried to Oracle Application Express (APEX) and adapting one of the many examples of LoV cascading to your situation?

    See you soon,.

    PS: Tip:
    Look for the p_item_id and p_attributes of the APEX_ITEM API parameters.
    You can call JS functions for example using p_attribute

    APEX_ITEM.TEXT(...
    p_attributes => 'onchange="doTotal(this);"', /* doTotal being your JS Function */
    ...
    

    Published by: Dominic August 16, 2012 11:52

  • How I afford two fields and round?

    I need an average of two fields and then round the whole number closest. The two fields each will always have a value.

    If someone could help me out, I would appreciate it.

    T.

    Assuming you want it's a custom script calcuation for a field, it might look like this:

    Custom calculation script

    (function () {}

    Get the field values as numbers

    var v1 = + getField("text1").value;

    var v2 = + getField("text2").value;

    Set the value of this field to the average, rounded

    Event.Value = Math.floor ((v1 + v2) / 2);

    })();

    More information about the Math.floor method can be found in any decent JavaScript reference.

  • How to add an imaginary line in the result of the value of a SELECT statement.

    Hello all-

    I have requirment to add an imaginary line in the result set of a SELECT statement.

    For example lets say it is a pay table having the following columns:

    Number of Payment_id
    status varchar2 (10)
    number amount
    date of payment_date

    so here's the data: -.

    Payment_id status amount payment_date
    applied 1 100 12/07/2008
    2 Reversed 200 01 / 06/2009
    Applied 3 300 01 / 07/2009


    Here is my SQL

    Select * form payment where payment_date > = 01/01/2009

    The output will be

    2 Reversed 200 01 / 06/2009
    Applied 3 300 01 / 07/2009

    My desired output is less than

    2 Reversed 200 01 / 06/2009
    Applied 3 300 01 / 07/2009
    reversed-200 2, 01 / 06/2009-(Dummy Row)

    Third line here is the imaginary line that I add when the status is "reversed".

    I would be very grateful for any help on this...

    Thank you
    Gerard

    Cartesion join against a shadow table is a useful method to create a fictitious line:

    with my_tab as (select 1 cust_id, 1 Payment_id, 'Applied' Status, 100 Amount, to_date('12/07/2008', 'mm/dd/yyyy') payment_date from dual union all
                    select 1 cust_id, 2 Payment_id, 'Reversed' Status, 200 Amount, to_date('01/06/2009', 'mm/dd/yyyy') payment_date from dual union all
                    select 1 cust_id, 3 Payment_id, 'Applied' Status, 300 Amount, to_date('01/06/2009', 'mm/dd/yyyy') payment_date from dual union all
                    select 2 cust_id, 1 Payment_id, 'Applied' Status, 100 Amount, to_date('12/07/2008', 'mm/dd/yyyy') payment_date from dual union all
                    select 2 cust_id, 2 Payment_id, 'Reversed' Status, 200 Amount, to_date('01/05/2009', 'mm/dd/yyyy') payment_date from dual union all
                    select 2 cust_id, 3 Payment_id, 'Applied' Status, 300 Amount, to_date('01/06/2009', 'mm/dd/yyyy') payment_date from dual union all
                    select 2 cust_id, 4 Payment_id, 'Reversed' Status, -400 Amount, to_date('01/06/2009', 'mm/dd/yyyy') payment_date from dual union all
                    select 2 cust_id, 5 Payment_id, 'Applied' Status, 500 Amount, to_date('01/07/2009', 'mm/dd/yyyy') payment_date from dual),
                    --- end of mimicking your table
          dummy as (select 'Reversed' col1, 1 rn from dual union all
                    select 'Reversed' col1, 2 rn from dual)
    select mt.cust_id,
           mt.payment_id,
           mt.status,
           decode(dummy.rn, 2, -1*mt.amount, mt.amount) amount,
           mt.payment_date
    from   my_tab mt,
           dummy
    where  mt.status = dummy.col1 (+)
    order by mt.cust_id, mt.payment_id, dummy.rn nulls first;
    
    CUST_ID     PAYMENT_ID     STATUS     AMOUNT     PAYMENT_DATE
    1     1     Applied     100     07/12/2008
    1     2     Reversed     200     06/01/2009
    1     2     Reversed     -200     06/01/2009
    1     3     Applied     300     06/01/2009
    2     1     Applied     100     07/12/2008
    2     2     Reversed     200     05/01/2009
    2     2     Reversed     -200     05/01/2009
    2     3     Applied     300     06/01/2009
    2     4     Reversed     -400     06/01/2009
    2     4     Reversed     400     06/01/2009
    2     5     Applied     500     07/01/2009
    

    Published by: Boneist on January 7, 2009 23:10
    NB. You may need to mess around with the order if that is not in the order you want. You did not mention what the rules were for all orders expected, so I composed my own * {;-)

    Also, I added a (cust_id) identifier to differentiate different types of payments, as is usually the case. Remove unless it is not applicable to your case.

  • How do I programmatically load and show the façade of a vi but NOT run it?

    Is it possible to load and display the front panel of a vi but NOT run?  I start with the AsynchronousCallAndForget.vi from the example finder and inserted a node invoke with the Open FP method call before the starting node the asynchronous call. The vi that I'm loading has the "Run when opened" unchecked and the menu bar IS visible so I can manually click the run arrow. Thank you!

    Why do you use the asynchronous call? If you simply open the VI reference, then call the FP. Open method, it works very well. You can then call the VI run method which wait until is set to false if you want to execute asynchronously, it is how we did in ye olde days before we have this fangled tricks "Start Asynchronous Call.

  • How to add dynamic items based on the results of a dynamic query?

    Hi all

    I'm quite new to ofa, here's my problem.

    I have a table 'interventions', each intervention have actions stored in the table "actions".

    I want to show the actions of an intervention in a list, based on the id of the intervention. the response ID value is dynamic, so does not know the number of shares that you want to display in the list.

    Can someone tell me the steps to create a region that has dynamic elements to display names of action?

    Thank you

    Kind regards

    Afaf

    Afaf,.

    Take a look on the link below to see how to create dynamic VO:

    Blog of Anil Oracle Application Framework: create VO when running at the controller or dynamically created VO

    You could add messageStyled text like the code below:

    OAMessageStyledTextBean newMessageBean = (OAMessageStyledTextBean) createWebBean (pageContext, MESSAGE_STYLED_TEXT_BEAN, null,"" ");

    Links to dynamically create elements below:

    Add columns to the table advanced in OA Framework Programatically by Extension

    OPS KNOWLEDGE HELPER

    Let us know if you get any errors when creating.

    See you soon

    AJ

  • Subtract two time_clock and get the result minutes

    Hi Experts,

    Nicely, I would subtract two type of time_clock that varcahr2 to the database and get the minutes of the result.

    Data:

    Select ' 08:00 ' as start_time_clock, 15:00 ' as the double end_time_clock

    Union of all the

    Select ' 09:00 ', 16:30 ' of the double

    Expected result:

    start_time_clock end_time_clock count_minutes

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

    08:00                      15:00                       420

    09:00                      16:30                       450

    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - production


    Thanks in advance

    WITH dataset

    AS (SELECT ' 08:00 ' AS start_time_clock, 15:00 ' AS end_time_clock)

    OF THE DOUBLE

    UNION ALL

    SELECT ' 09:00 ', 16:30 ' DOUBLE)

    SELECT (to_date (end_time_clock,'HH24:MI')-to_date(start_time_clock,'HH24:MI')) * 24 * 60))

    Of THE dataset

  • SQL how to use a variable and use the result as a reference for the name of the table

    Hi all

    I have new in the declaration of Oracle, sorry in advance if something is easy for you all. BTW, I have this scenario:

    I have a table OL structured in this way:

    Date - it contains dates, for example 11/01/2015

    TableName - it contains strings, for example, OL1, OL2, OL3 and so on...

    Then I have a different table, the name of these tables are of the same name in the table of the OL, so I have table table, OL1, OL2, OL3 table and so on. The structure of these tables is the same. And Yes.

    table OL1

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

    ID LAST NAME FIRST NAME PHONE

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

    1 JOHN DOE 12345679

    2 PAUL 111111122 TIBBS

    table OL2

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

    ID LAST NAME FIRST NAME PHONE

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

    1 ANNA KRAIG (NULL)

    NATHAN FRESHMANN 111111133 2

    If the scenario is clear, I would like to retrieve the value (null), research in all the OL * tables by using the value of the OL table (tablename) max.

    If I'm going to do these simple steps, I got the result:

    Select max (TableName) OL

    the result will be OL2

    # I know not how to use the option set to avoid changing the table name in the sql statement all the time.

    set mytable = 'OL2.

    Select Name, family name

    of & mytable

    When the phone is null

    Any idea?

    Thank you very much in advance.

    Hello

    run immediately "select dt.log_id, obj.presentation_name, dl.begin_time

    bulk collect into v_result_set

    of ' | v_ol |' dt join internal ol_object obj on

    DT.object_type_id = obj.object_type_id

    inner join ol_chunk_log dl on

    DT.log_id = DL.log_id

    where dt.data_value is null';

    dbms_output.put_line (v_ol);

    end;

    Correct the code such as:

    run immediately "select dt.log_id, obj.presentation_name, dl.begin_time

    of ' | v_ol |' dt join internal ol_object obj on

    DT.object_type_id = obj.object_type_id

    inner join ol_chunk_log dl on

    DT.log_id = DL.log_id

    where dt.data_value is null' bulk collect into v_result_set;


    for i in v_result_set.first ... v_result_set. Last

    loop

    dbms_output.put_line ('LOG ID: ' | ) ( v_result_set.log_id (i)) ;

    dbms_output.put_line (' NAME CLOSELY: ' |) v_result_set.presentation_name (i));

    dbms_output.put_line (' START TIME: ' |) ( v_result_set.begin_time (i)) ;

    end loop;

    end;

    Kind regards.

  • How to perform a function and return the result in a variable of liaison

    Hello

    I'm trying to calculate the sum of the salaries of all persons with a particular using a function JOB_ID TOTAL_INCOME (v_job_id).

    create or replace function total_income
    + (v_job_id in VARCHAR2) +.
    Number IS BACK
    v_total number (6);

    cursor get_sal is
    Select the pay of employees
    where job_id = v_job_id;
    BEGIN
    v_total: = 0;
    for emp in get_sal
    loop
    v_total: = v_total emp.salary; +.
    end loop;

    dbms_output.put_line (' Total salary ' | v_job_id |' is: ' | v_total);
    Return v_total;
    END;

    Now I woud like to perform this function and assign the value returned in a variable binding test_sal

    test_sal variable number (6)
    SELECT total_income ('AD_VP') in: test_sal FROM DUAL;
    dbms_output.put_line (' Sal Total :'||: test_sal);

    This returns the errors below:

    SELECT total_income ('AD_VP') in: test_sal FROM DUAL
    *+
    Error on line 0
    ORA-01036: illegal variable name/number

    dbms_output.put_line (' Sal Total :'||: test_sal);
    Error on line 3
    ORA-00900: invalid SQL statement

    Could someone help me what could be the problem? Thanks for your time...

    Hi Kiran and welcome to the forum,

    You mix SQL and PL/SQL

    It's the way in which SQL:

    SQL> SELECT total_income('AD_VP') FROM DUAL;
    
    TOTAL_INCOME('AD_VP')
    ---------------------
                      123
    1 row selected.
    

    It comes to PL/SQL in SQL * more

    SQL> variable test_sal number
    SQL> execute :test_sal := total_income('AD_VP')
    PL/SQL procedure successfully completed.
    SQL> exec dbms_output.put_line('Total Sal:'||:test_sal)
    Total Sal:123
    PL/SQL procedure successfully completed
    

    Concerning
    Peter

  • How to add two fields of a standard page

    Hi experts,

    I have a requirement according to the customer's requirement.

    I'm working on isupplier. in a particular standard page, I need to add 2 fileds that paid is the type of lookup and a field is messagetextinput.please give me the steps how to approach.

    Thanks in advance

    Hello

    1.), you can create this field through customization.

    2.) go to customize the link of the page (top-right)

    3.) click on the full view
    4.), click on create element

    5.), drop-down list, you can create items accordingly.

    This link may be useful

    http://www.semihuslu.com/Tutorial/OA%20Framework_Java.PDF

    thanx
    Pratap

  • Subtracting between two dates and see the result as a date

    HII everyone,

    I had to create a procedure that checks the difference of dates in one month...
    I've got is the view of the difference in the form of date itself...


    for example:

    01/03/2012
    01/03/2012
    01/03/2012
    01/05/2012
    01/05/2012
    .
    .
    so now for a full month...

    the output should be as data are missing for the date 01/04/2012...
    is it possible to display the output as given...
    I am new to oracle, help would be much appreciated...
    Thank you..

    Published by: 948895 on August 2, 2012 21:39

    To fill the gaps between the two dates:

    select &&start_date + (level - 1)
    from dual
    connect by level <= (&&end_date - &&start_date)
    /
    

    To generate the dates for one month:

    select trunc(&&start_date, 'MM')) + (level - 1)
    from dual
    connect by level <= to_number(to_char( last(day(&&start_date)))
    /
    

    This example uses SQL * more variable substitution, but you can easily change to use the value of PL/SQL or everything that you need.

    Cheers, APC

  • How to perform this procedure and get the result?

    I created a procedure, the source code for the same thing is provided below.

    create or replace procedure vin_test (p_deptno in number
    p_cursor ON SYS_REFCURSOR)
    as
    v_res Emp % rowtype;
    Start
    Open the p_cursor FOR
    Select *.
    WCP
    where deptno = p_deptno;

    end vin_test;

    Now, if I want to see that the out put of this Proc
    I first put the Serveroutput on and then...
    Exec vin_test (10);
    I get an error message indicating an incorrect number of arguments, then someone can tell me what is the value of the parameter I should move on so that I can get the desired output.


    Thanks in advance
    OraCrazy

    In sqlplus you can do like this.

    SQL> create or replace procedure vin_test( p_deptno IN number, p_cursor OUT SYS_REFCURSOR)
      2  as
      3     v_res Emp%rowtype;
      4  begin
      5     open p_cursor for
      6     select *
      7       from emp
      8      where deptno = p_deptno;
      9  end;
     10  /
    
    Procedure created.
    
    SQL> var lcur refcursor
    SQL> exec vin_test(30,:lcur)
    
    PL/SQL procedure successfully completed.
    
    SQL> print lcur
    
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO        DIV
    ---------- ---------- --------- ---------- --------- ---------- ---------- ---------- ----------
          7499 ALLEN      SALESMAN        7698 20-FEB-81       1600        300         30         10
          7521 WARD       SALESMAN        7698 22-FEB-81       1250        500         30         10
          7654 MARTIN     SALESMAN        7698 28-SEP-81       1250       1400         30         10
          7698 BLAKE      MANAGER         7839 01-MAY-81       2850                    30         10
          7844 TURNER     SALESMAN        7698 08-SEP-81       1500          0         30         10
          7900 JAMES      CLERK           7698 03-DEC-81        950                    30         10
    
    6 rows selected.
    

    Thank you
    Knani.

  • Add two fields of char

    Hello..

    I have a form with three fields with any type of char with length 5 data. I want to add Field1 and Field2 and save the result in field3.
    Data in Field1 and Field2, time in char format. I want to add these two fields and save the result in field3 as tank.
    But the addition of these two fields should be similar to the addition of two time values.

    Ex:
    Field1 = 04:30 and 05:30 = field2
    where in Field1 * 04 * refers to the hours * 24 HR format * and * 30 * refers to the minutes.



    Thank you..

    Try this

    :filed_3:=LTRIM(TO_CHAR(TO_NUMBER(SUBSTR(:FILED_1,1,2)+SUBSTR(:FILED_2,1,2))+TRUNC(TO_NUMBER(SUBSTR(:FILED_1,4,5)+SUBSTR(:FILED_2,4,5))/60),'00'))||
    ':'||LTRIM(TO_CHAR(MOD(TO_NUMBER(SUBSTR(:FILED_1,4,5)+SUBSTR(:FILED_2,4,5)),60),'00'))
    

    Hope this will help you

    If someone useful or appropriate, please mark accordingly.

  • How to compare two dates and find exactly

    How to compare two dates and find the exact age of the person, no one could be an age of child 2 days or a month, or other.

    I'd really appreciate if someone help o

    Concerning

    After spending 2 hours, I go out with a solution by myself, how ever the function can be customize to check if the user enters date right.

    function findAge(subjectName,fromdate, todate) {
        console.log("findAge(fromdate, todate) is called now "+subjectName+"-->"+fromdate+"-->"+todate);
        if(todate) todate= new Date(todate);
        else todate= new Date();
    
        var age= [], fromdate= new Date(fromdate),
        y= [todate.getFullYear(), fromdate.getFullYear()],
        ydiff= y[0]-y[1],
        m= [todate.getMonth(), fromdate.getMonth()],
        mdiff= m[0]-m[1],
        d= [todate.getDate(), fromdate.getDate()],
        ddiff= d[0]-d[1];
    
        if(mdiff < 0 || (mdiff=== 0 && ddiff<0))--ydiff;
        if(mdiff<0) mdiff+= 11;
        if(ddiff<0){
            fromdate.setMonth(m[1]+1, 0);
            ddiff= fromdate.getDate()-d[1]+d[0];
            --mdiff;
        }
        if(ydiff> 0) age.push(ydiff+ ' year'+(ydiff> 1? 's ':' '));
        if(mdiff> 0) age.push(mdiff+ ' month'+(mdiff> 1? 's':''));
        if(ddiff> 0) age.push(ddiff+ ' day'+(ddiff> 1? 's':''));
        if(age.length>1) age.splice(age.length-1,0,' and ');
        console.log("===============================");
        console.log("Subject age is = "+age.join(''));
        console.log(" age Day = "+ddiff);
        console.log(" age Month = "+mdiff);
        console.log(" age Year = "+ydiff);
        console.log("===============================");
        var subjectAGE =  age.join('');
    
    }
    

    peardox Thanks for the reply

Maybe you are looking for

  • Apple Watch wake is more MacBook Pro

    I got no problem with my MacBook Pro with my Apple Watch wake.  However, all of a sudden, he just stopped.  The only thing that has happened since has been the update of the software for the new patch for my iPhone and iPad.  From here (which was yes

  • Where can I download HP solution center software?

    Her husband and I have almost the exact same HP laptops. For some reason when he called HP to download the software for Win 7 for our printer (model J5780) the person tech installed Solution Center. (My person tech did however) So can someone tell me

  • Satellite M45-S359 turns off suddenly

    Hello Now I have the Satellite M45-S359 3 years. This week, it began to turn off all at once, without even stopping or in hibernation.I noticed it get very hot, but I can hear the fan operation. Can anyone help? Thank you

  • HP Elitebook 8470 laptop PC - graphics Intel HD 4000 - GfxUI has stopped working - Win 7 x 64

    Hello! Since I installed the Intel video driver and Control Panel 8.15.10.2712 22 June 2012 (sp57420.exe) - later recommended by HP.com pilot for my Elitebook 8470 p / OS, I get the error message "GfxUI has stopped working" when you click on "Options

  • Universal Storage Interface don't you know? How can I start?

    While the review of code not writtien by myself (I can't post code and believe me I regret more than you think) I ran across the screw storage LV. One of the error codes I ran across "-2564". Give an article on the Interface of universal storage is r