How to calculate value based on two fields & set that on the 3rd (in table)

Hi OAF Gururs
I have a requirement in which, in an OAF page, the user can add a row in an advanced table and they enter
the values for two fields say 'rate' and 'entered amt' and immediately on tab out, the 3rd field should be popluated as rate*entered amt.
Is there a way, we could capture the tab out event? Or any way we could achieve this?
This is really urgent.
If anyone can help.
Thanks!
AJ

OAF gurus hang out over in {forum:id=210}

Similar Messages

  • How to calculate value based on two fields & set that 3rd on (KFFfields)

    Hello Gurus,
    I have a requirement customization in which, in an OAF page, tableLayout: (HrSitKeyFlex) having 3 fields 1)Days of Trainging 2)No of days Trainging hours 3)Total Duration when user enter the values for two fields say 'Days of Trainging' and "No of days Trainging hours "and immediately on tab out, the 3rd field should be popluated as rate*Toatal'.
    tableLayout: (HrSitKeyFlex)
    1)Days of Trainging ( 1DAY)
    2)No of days Trainging hours (4Hours)
    3)Total Duration (calculate 1*4=8)
    Is there a way, we could capture the tab out event? Or any way we could achieve this?
    This is really urgent.
    If anyone can help.
    Regards,
    Srini

    Hello,
    1. Firstly set the fire partial event of 2nd column field.
    2. Capture the event in PFR method.
    3. After Capturing event, make a row reference object.
    4 Now store the value of 1st column field and 2nd column field in variable.
    eg. String str= row.getAttribute("Ist Column Name")+"" and String str1= row.getAttribute("2nd Column Name")+""
    5.Convert these string value into integer
    eg. int x=Integer.parseInt(str); and int y=Integer.parseInt(str1)
    6. calculate the value in the integer variable on the basic of these two value
    eg. int z = x*y
    7 Assign the value to 3rd column after converting it into string
    eg. row.setAttribute("3rd Column Name", string variable);
    when u tab out from 2nd column, the calculating value will be assign to 3rd column.
    Regards,
    Manish Chawla
    Edited by: ManishC on Dec 17, 2012 10:36 AM

  • CFM /TR - how system calculate amount based on rate FX 60A

    Hi all,
    i need to know how system calculates amount based on rate entered upon creating a contract (t-code TX01).
    steps input:-
    1. header - comp code, product type, trans type
    2. partner
    3. purchase curr & amount (eg. IDR 8,345,545,500)
    4. sale currency only (amount system will auto calculate) USD
    5. rate field = 11.553
    6. spot rate will auto pick up from rate
    7. value date
    8. contract date
    upon TBB1 no error. posting log as follows:-
    FX1000+ : 40 8,345,545,500 IDR bank GL acc
                    50 8,345,545,500 IDR clearing acc
    FX2000- : 40 722370.42 USD clearing acc
                   50 722370.42 USD bank GL acc
    but upon TPM18 error occurred as follows:
    DBT_C009 - GL not maintain in acc symbol 5.3.4
    DBT_E039 - no posting spec assigned to update type
    DBT_B018 : 40 0 USD, 431,977,511 IDR gain/loss
                       50 0 USD, 431,977,511 IDR clearing acc
    so, after maintained DBT_C009 as follows still error for DBT_E039:
    40  0 USD, 38 IDR clearing acc
    50  0 USD, 38 IDR P&L gl acc
    what i don't understand is how system calculate and get DBT_C009 & DBTE039.
    what is the function of TPM18?
    thanks.

    Hello Prarnod,
    I have done the first node only for actuals that come from the integration to the internal order.
    I have tried setting up 2 and 3 even though the 3rd one does not make any sense to me
    Thanks,
    Paul

  • How to populate values for a new field in target infoprovider

    Hi Experts,
    am new to BI. i would like to know on how to populate values for a new field in the target cube with start rotuine.In my case,  i have a source infoprovider, which has 3 fields and a target infoprovider, which has 5 fields. i need to populate the new 2 fields in start routine. i dont want to populate using Field routine and am using 3.5 version. please assist with code on how to solve this issue.
    Thank you,
    Chitra.
    Edited by: Chitra_BI on Jun 13, 2011 10:23 AM

    Debug the standard code and see where the other fields are getting update. you can use the similar approach and area to code for the new field.
    Regards,
    Lalit Mohan Gupta.

  • How to prepopulate value in webapps input fields or for any custom fields in for any other forms?

    How to prepopulate value in webapps input fields or for any custom fields in for any other forms?

    What do you want to populate the form with?

  • How to create value request for screen field text box tt1

    How to create value request for screen field text box tt1
    i have a text box name tt1,
    i want f4 help for that .
    remember i am asking for screen i.e done from screen layout not selectio-screen.
    Thank you,
    Regards,
    Jagrut Bharatkumar Shukla,

    Hi,
    Create one Search Help in the SE11 for the particular Field that u want to display. In the Screen(Transaction SE51),For that Text Box in the Attributes,in Dict Tab ->Search Help Field give that Search Help Name.
    For Eg,
    If u want Purchase Order Numbers in that F4 Help.Create one <b>Search Help</b> by giving Table Name as <b>EKKO</b> & <b>Search Help Parameter</b> as <b>EBELN</b> with Lpos & Rpos as 0 & 1.Save & Activate it.
    Give this Search Help Name in Dict Tab ->Search Help Field of that Screen Attributes.
    Regards,
    Padmam.

  • HT4061 How do I consolidate purchases from two different ids that are on the same bank account, and eliminate the extra id without losing any purchases?

    How do I consolidate purchases from two different ids that are on the same bank account, and eliminate the extra id without losing any purchases? I want my music to match on both ipad and computer.

    Purchases are forever tied to the AppleID they were bought with. There is currently no way to consolidate AppleIDs. Sorry.

  • HT4528 how do I create an event in my calander that repeats the second thursday of every month

    how do i create an event in my calander that repeats the second thursday of every month

    This should get you started down the pathJust replace User data with your cluster and do the data integrity check in the value change event use a simple one button dialog to notify the user which values are out of compliance and disable and grey the OK button untill all conditions are met.
    Jeff
    Attachments:
    Prompt(Date).vi ‏50 KB

  • How can i make my scrollpane in a way that at the opening of a frame it doe

    How can i make my scrollpane in a way that at the opening of a frame it does not scroll down automatically?
    code is below
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.net.*;
    import javax.swing.JOptionPane.*;
    import java.io.*;
    import javax.swing.colorchooser.*;
    import javax.swing.filechooser.*;
    import javax.accessibility.*;
    import javax.swing.border.*;
    import java.sql.*;
    public class Signup extends JFrame
         JLabel p1,p2,p3,p4,p5,p6,uid,upass,cpass,fname,sname,hint,sl,ed,age,adr,cit,zip;
         JTextField uname,fnamet,snamet,hintt,adrt,adrt1,city,zipcode;
         JPasswordField upassw,cpassw;     
         JComboBox sex,education,agegr;
         Signup()
         Container c=getContentPane();
         c.setLayout(null);
         c.setBackground(Color.white);
         /** JPanel c = new JPanel();
         c.setBackground(Color.white);
         int v = ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS;
         int h = ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED;
         JScrollPane jsp = new JScrollPane(c, v, h); ***/
    p1=new JLabel("Create Your Icafe!ID",10);
         p2=new JLabel("Personal Information");
         p3=new JLabel("User Address");
         p4=new JLabel("Tell Us About Your Hobbiess (Optional) ");
         p5=new JLabel("Tell us something about what you like. This will help us choose the kind of content to display on           your pages.");
         p6=new JLabel("--------------------------------------------------------------------------------");
    uid=new JLabel("User Id");
         upass=new JLabel("Password");
         cpass=new JLabel("Confirmation Password");
         fname=new JLabel("UserName");
         sname=new JLabel("SurName");
         hint=new JLabel("Hint Question");
    sl=new JLabel("Sex");
         ed=new JLabel("Education");     
         age=new JLabel("Age Group");     
         adr=new JLabel("Address");
    cit=new JLabel("City");
    zip=new JLabel("ZipCode");
         uname=new JTextField(10);
         uname.requestFocus();     
         uname.setToolTipText("UserName");
    upassw=new JPasswordField(10);
         upassw.setToolTipText("Password");
         upassw.setEchoChar('*');
         cpassw=new JPasswordField(10);
         cpassw.setToolTipText("Confirmation Password");
         cpassw.setEchoChar('*');
         fnamet=new JTextField(10);
         fnamet.setToolTipText("FullName");
         snamet=new JTextField(10);
         snamet.setToolTipText("SurName");
         hintt=new JTextField(10);
         hintt.setToolTipText("Hint Question");     
    String[] gender={"[Select one]","Male","Female"};
         sex = new JComboBox(gender);          
    String[] edu={"[Select one]","S.S.C","Inter","Graduate","Post Graduate"};
         education= new JComboBox(edu);     
    String[] ageg={"[Select one]","0 - 15","16 - 35","36 - 70","70 - 100"};
         agegr= new JComboBox(ageg);     
    adrt=new JTextField(15);
         adrt.setToolTipText("Address");
         adrt1=new JTextField(15);
         adrt1.setToolTipText("Address");
         city=new JTextField(15);
         city.setToolTipText("City");
    zipcode=new JTextField(15);
         zipcode.setToolTipText("ZipCode");
         p1.setBounds(200,70,160,30);
         uid.setBounds(350,100,160,30);
         uname.setBounds(400,100,160,30);
         upass.setBounds(335,140,160,30);
         upassw.setBounds(400,140,160,30);
         cpass.setBounds(260,180,160,30);
         cpassw.setBounds(400,180,160,30);
         p2.setBounds(200,220,160,30);
         fname.setBounds(330,260,160,30);
         fnamet.setBounds(400,260,160,30);
         sname.setBounds(335,300,160,30);
         snamet.setBounds(400,300,160,30);
    hint.setBounds(315,340,160,30);     
    hintt.setBounds(400,340,160,30);
         sl.setBounds(370,380,160,30);     
         sex.setBounds(400,380,160,30);
         ed.setBounds(335,420,160,30);     
         education.setBounds(400,420,160,30);
    age.setBounds(330,460,160,30);
    agegr.setBounds(400,460,160,30);
    p3.setBounds(200,500,160,30);
         adr.setBounds(340,540,160,30);
         adrt.setBounds(400,540,160,30);
         adrt1.setBounds(400,580,160,30);
         cit.setBounds(370,620,160,30);
         city.setBounds(400,620,160,30);
    zip.setBounds(590,620,160,30);
    zipcode.setBounds(640,620,160,30);
         Font font = new Font("SansSerif",Font.BOLD, 12);
         setFont(font);
         c.add(p1);
    c.add(uid);
         c.add(uname);     
         c.add(upass);
         c.add(upassw);
    c.add(cpass);
         c.add(cpassw);
    c.add(p2);
    c.add(fname);     
         c.add(fnamet);
    c.add(sname);
    c.add(snamet);
         c.add(hint);
    c.add(hintt);     
    c.add(sl);
    c.add(sex);
    c.add(ed);
         c.add(education);
    c.add(age);
         c.add(agegr);
    c.add(p3);
    c.add(adr);
         c.add(adrt);
         c.add(adrt1);
    c.add(cit);
    c.add(city);
    c.add(zip);
    c.add(zipcode);
         setResizable(false);
         //int a=DO_NOTHING_ON_CLOSE;
         //setDefaultCloseOperation(a);
         show();
         setSize(800,500);
    // Border raisedBorder = new BevelBorder(BevelBorder.RAISED);     
         setContentPane(c);     
    public static void main (String arg[])
         try{
         UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
         }catch(Exception s)
         Signup swu=new Signup();

    just try the following:
    jsp.getVerticalScrollbar().setValue(0);after inserting and adding all your components. this will set the vertical scrollbar up to the very first line.
    regards

  • How can i open a DOC or TXT file and insert the data into table?

    How can i open a DOC or TXT file and insert the data into table?
    I have a doc file . the doc include some columns and some rows.(for example 'ID,Name,Date,...').
    I'd like open DOC file and I'd like insert them into the table with same columns.
    Thanks.

    Use the SQL*Loader utility or the UTL_FILE package.

  • Their is two new Updates that are the same for the OS X Mountain Lion v10.8.5, except one has {Combo}. Which one do i download? The info on them are the same.

    Their is two new Updates that are the same for the OS X Mountain Lion v10.8.5, except one has {Combo}. Which one do i download? The info on them are the same.

    It appears Apple’s download servers are ‘overwhelmed’ today.  I couldn’t download the newest iTunes update or IOS 7 and there are a lot of discussions today about not being able to download. One poster said they had chatted with App Store support who confirmed the problem.

  • I have two iphones in my house hold one syncs with my MAC Itunes the other doesn't is there a setting that casues the Iphone to stops syncing with Itunes?

    I have two iphones in my house hold one syncs with my MAC Itunes the other doesn't is there a setting that casues the Iphone to stops syncing with Itunes?

    You need to start over with Music. On the iPhone Music screen uncheck sync music. Also, on the Summary screen uncheck "Manually manage music and videos", then sync and it should clear off your phone.
    Next, choose the music you want to sync. If you want to fit more on check "Convert higher bit rate songs to 128 kbps AAC". This will reduce quality slightly, but it won't be noticable unless you are using $300 headphones.

  • Two months of  Premiere Pro - two major Errors that stopped the whole project

    I have switched from FCP - and I am quite dissappointed.
    Within two months I have experienced two major errors that stopped the whole project. Something like that never happened to me in 15 years of AVID an FCP. -
    1. Err msg. "Project contains sequences that cannot be opened" - No way to open the project at all after two weeks of working on it.
    2. Err msg. "A Low-level exception occurred in: Adobe Player" - No way to play back the sequence at all. Had to be finnished in FCP.
    Apart from that Premiere keeps loosing Render Files and does not recognize my USB-audio-device.
    Can anyone help me (tech support) PLEASE?
    Am I the only one with problems like that?
    - Thinking about switching to MC7.
    CS6
    OS 10.8.2.
    imac 3.1 Ghz corei7
    16 GB Ram

    You specify "CS6," but do not indicate whether you have patched to the latest. If you haven't please do so.
    Any time I hear "crash on launch" (or words to that effect), my first thought is that something in the preferences may be tripping up the app. You can clear the prefs by holding Shift+Option while launching the app--keep the keys pressed until PPRO finishes launching. If you've invested time customizing your prefs and want to be able to revert to them in case they weren't the cause of the problem, then you can manually move or rename them; let us know if you need help finding them.
    Other possible culprits, in the order that I recommend proceeding:
    If the crash occurs only when you launch directly into a particular project, then naturally that project is most likely the cause.
    Drivers, especially for graphics card: update them (on Mac, that means updating OSX)
    third party codecs: uninstall them
    third party hardware: first update drivers. If that doesn't help, disconnect or disable the hardware

  • Calculate difference in value based on two date parameters

    Hi All,
    I have a table and need to calculate the difference in rent amount for a property based on two date parameters.
    I have uploaded sample data here:
    https://app.box.com/s/pu8oa4f3jhrhm0ylshdz2fuo7541vn4z
    Thanks
    Jag

    Hi jaggy99,
    Do you have the knowledge of
    Excel Add-In? If you don't have knowledge of C#/VB.NET language and Visual Studio, I don't think Excel Add-In is what you want. As I said previously, your problem is totally about the business logic, we don't provide solution for a complete requirement.
    Based on your sample data, I think VBA code is suitable.
    If you're not familiar with VBA, please take a look at the MSDN documents for scratch:
    Getting Started with VBA in Excel 2010
    The steps should be like this:
    1. Sort all the records by [Rent Change Date] field
    2. Loop throuth the records and find the FromDate and ToDate as well as the corresponding [Rent Charged] field
    3. Calculate the difference and save the data into a new range
    It's not so hard, please have a try, if you encounter any development problems, you can post in this forum.
    Thanks.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to default the KFF segment values based on other field's value

    Hi,
    I would need to reset the 5th segment value of "Liability Account" field on R12 Supplier Page under "Accounting" link.
    Condition: And it has to be based on some other value like "GLOBAL CONTEXT VALUE and TaxPayer ID Type" under "Organization" link.
    Right now; as per the seeded page it defaults the Liability Account to "BL-130-0000-2110-0000-0000" under accounting link; I need to change this default value to "BL-130-0000-2110-2641-0000" based on above condition.
    I have tried using the below code:
    OAKeyFlexBean oakeyflexbean = (OAKeyFlexBean)oawebbean.findIndexedChildRecursive("LiabilityFlex");
    oakeyflexbean.setText()
    But this one does not work.
    Can anyone suggest me some option to acheive this requirement.
    Thanks
    Edited by: 880860 on May 21, 2012 2:23 PM

    Hi everyone,
    Any thoughts? any help is appreciated...
    Thanks

Maybe you are looking for

  • Multiple subforms in the same place

    I am working on a dynamic form with a flowed subform for Page 1. I would like several different subforms of information to occupy the same space on the page depending on text selected from a drop down list. How do I get one subform to be in the same

  • Printing from JSP

    Hi All! I'm using the servlet-JSP technology for displaying tables from database in browser. I'd like to know that how can I send the long, multipage tables to a printer. I have to gain such printed document, which contains all of the table with tabl

  • Inserting excel sheets

    I use solid edge. I paste an excel page onto a drawing, ( I use the paste/link option so any chages on the excel page will automatically update). When I save this solid edge sheet to pdf, the excel form I attached will just show a solid black box. It

  • Hi, I lost my iphone and ipad both unfortunately and now I'm in need of all my data in my iphone and ipad. Is it possible ? Please help...

     

  • Invalid status of log

    Dear All. The database version is oracle 10.2.0.4.0 and the OS is hP UX. The out come of the v$logfile is as following below. GROUP# STATUS TYPE MEMBER IS_ 4 INVALID ONLINE /u101a/ora10g/oradata/pliv/redo4.log NO 4 ONLINE /data2/oradata/pliv/pliv/red