Recalculate button in AdvanceTable

Hi,
I have a advance table and the Recalculate button. The issue is below.
I have a row with few LOV's and Percent, Quantity and Amount columns. The Percent, Quantity and Amount are transient variables.
If I enter a value in Percent field, it fires the event update and calculates the Quantity and Amount values. If I add a new row, the 1st row Percent, Quantity and Amount are calculated and displayed in the Totals. After a I enter the values in 2nd row and click the button Recalculate, it is going in to the update if condition written for Percent FireAction and is erroring. what needs to be done to do the Recalculate button.
Thanks,
HC

Hi Gyan,
When I click the recalculate button, the process is going to the if loop written for the Percentage update.
Please see the below code. The error is at line "int v_percent = Integer.parseInt(pRow.getAttribute("DisplayPercent").toString());"
The error message is "oracle.apps.fnd.framework.OAException: java.lang.NullPointerException". I guess the pRow might be null. The below update was written as the event for Percentage to update Amount and Quantity in the row.
if ("update".equals(s))
//Use this code to get the row refernce of the clicked row.
String rowRf = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
pageContext.writeDiagnostics(this,"rowRf: "+rowRf,1);
// Serializable[] parameters1 = { rowRf };
OAApplicationModule am3 = (OAApplicationModule)pageContext.getApplicationModule(webBean);
OAApplicationModule rootAM1 = pageContext.getRootApplicationModule();
PoRequisitionLinesVOImpl prl1 = (PoRequisitionLinesVOImpl)rootAM1.findViewObject("PoRequisitionLinesVO");
PoRequisitionLinesVORowImpl prlr1 = (PoRequisitionLinesVORowImpl)prl1.getCurrentRow();
pageContext.writeDiagnostics(this,"DisplayTxnAmount: "+prlr1.getDisplayTxnAmount(),1);
int v_amount = Integer.parseInt(prlr1.getDisplayTxnAmount().toString());
pageContext.writeDiagnostics(this,"v_amount: "+v_amount,1);
int v_quantity = Integer.parseInt(prlr1.getQuantity().toString());
pageContext.writeDiagnostics(this,"v_quantity: "+v_quantity,1);
Row pRow = (Row)am3.findRowByRef(rowRf);
pageContext.writeDiagnostics(this,"pRow: "+pRow,1);
int v_percent = Integer.parseInt(pRow.getAttribute("DisplayPercent").toString());
pageContext.writeDiagnostics(this,"v_percent: "+v_percent,1);
int v_DisplayQuantity = v_percent * v_quantity/100;
int v_DisplayAmount = v_percent * v_amount/100;
pageContext.writeDiagnostics(this,"v_DisplayQuantity: "+v_DisplayQuantity,1);
pageContext.writeDiagnostics(this,"v_DisplayAmount: "+v_DisplayAmount,1);
pRow.setAttribute("DisplayQuantity", Integer.toString(v_DisplayQuantity));
pRow.setAttribute("DisplayAmount", Integer.toString(v_DisplayAmount));
pageContext.writeDiagnostics(this,"Before calling handlePercentChangeEvent: "+rowRf,1);
//am3.invokeMethod("handlePercentChangeEvent", parameters1);
}

Similar Messages

  • Recalculate Button - Advanced Table

    I have an Advanced Table with 3 VO Attributes Quantity,Unit Price (Based on EO) and Line Total which is product of Quantity and Unit Price. These 3 are shown in the Advanced table region, the first 2 as message text and the last one as message Styled Text since it's a calculated field. Now there is Standard Recalculate Total button as provided by Advanced Table bean. On Entering the new value in Either Quantity/unit price and pressing the total button at the button, the total for these columns gets refreshed. I actually want the total for (Lines Total) to get refreshed whenever either of Quantity or unit price is changed and Recalculate Button is pressed...It's not happening.
    IT does gets refreshed when i navigate to the other page and come back...or if i save the data to DB and revisit the page...but it doesn't get refreshed instantly..on pressing the recalculate total button after modifying either of 2 fields.
    I have tried executeQuery for the VO but of no avail.
    Can someone please help.
    Thanks
    Ravi.

    Can someone please help.. ?

  • How to remove "recalculate" button from classic tables?

    I would like to either remove this button or find the method that is posted when user clicks this. I don't see any documentation on this recalculate button. It automatically appears when I have a table on my page.
    Any help would be greatly appreciated.
    Thanks,
    Joyce

    Tapash,
    I need the total of the column, so I set the total value property in PI to true. As it is a updatable column, I find the Recalculate button along with it. But, I dont want to show that button. I tried what is given in the dev guide, but not working.
    Babu,
    I dont find the Disable Total Recalculation property in the PI. I'm using a classic table, not the advanced table.

  • Recalculate the Price in SRM once the item is transfer to SRM from SRM MDM

    Hi Experts,
    I am technical person and am facing one issue,we are using MDM catalog for selecting the product and after selection the product is getting transfer to the SRM.
    In SRM we have Quantity field available which is editable(we don't want to make it read only field),everything works fine if no one is changing the Quantity field which is coming from SRM MDM.
    But when a requester is changing the quantity field of the product in SRM then the total price is not getting change accordingly in SRM.is there any way to fetch the price field again from SRM MDM once it is transferred to the SRM.
    I know that before transferring the field to SRM if we change the quantity field there there is "RECALCULATE" button availabe to change the total price but after transferring the item whats is the procedure to change the Price if quantity is changed in SRM.
    Note that Price field depends on the Quantity field in SRM MDM and it is maintained in MDM but not in SRM.
    Please Help me friends.

    Hi ,
    I just want to clarify that after the product  toSRM it will check data from their price data maintained in SRM.
    For yr problem just try these things and get back with yr results
    1. whatever quantity you are putting in SRM ,try with same quantity in mdm catalog and check what price is coming
         If that is same then not a prob because may bbe  for that product multiple price maintained for different quantity
        otherwise for sure SRM are fetching the price from their  storage.
    2. Instead of add an item from catalog  add same item from srm using the  product id ,supplier part number and other information
         may be  at srm level they maintain different condition on item level.
    Please try at yr end and get back with yr result.
    (for validation of price from mdm there is a setting spro that when checked do validate the price from mdm catalog when ypu copy yr product in srm)
    Thanks,
    Sudhanshu

  • Shopping Cart...Recalculate functionality...Pls help..

    Hi,
    While creating a shopping cart / PO, after selecting the items from the catalog when I go in Cart Preview option and change the quantity and then click on Recalculate button then system gives me wrong figures.
    Ex- If the item selected from catalog contains 1 quantity with price as 1.11 Euro each the total value is 1.11. When I change the quantity to 10 and after clicking on the Recalculate button the price changes to 11.10 and total price to 111.00 which is not correct.
    Qty   Price Information  Total price
    1       1.11 ;                     1.11 ;         original
    10     11.10 ;                   111.00 ;     after changing the qty
    Actually, the following should be the result when i change the quantity -
    10     1.11 ;                     11.10
    Please help in sorting this issue.
    Thanks in advance.
    ~Abhay

    Hi Bala,
    The MDM related information is as under-
    MDM console - 7.1.04.149
    MDM Import Manager - 7.1.04.153
    MDM Data Manager - 7.1.04.146
    For SRM 7.0, we are at level 6 and highest support pack is SAPKIBK206-SRM_PLUS for mySAP SRM
    We are on Sun O.S & oracle database 10.2.0.2.0
    Hope this is what you are asking for.
    Regards,
    Abhay.

  • I want to Hide ok buttom and reassign button in notification page

    HI
    How to Hide ok button and reassign button in notification page using oracle workflow builder
    Thanks and regards
    ch sai vikram

    I do not believe you can achieve this using WF Builder - you will instead need to use OAF Personalization. See these MOS Docs for examples
    727315.1 - How To Do the Personalization on the Salary Page (Hide CORRECT Button)
    758795.1 - How To Hide The Add Transaction List, Print And Recalculate Buttons Through Personalization?
    HTH
    Srini

  • Clarifications in Asset Accounting

    Dear Experts,
    Please clarify below questions.
    1) What is the difference between Depreciation Area and Depreciation Key?
    2) What is the importance of Recalculate value button in Asset Accounting?
    3) Suppose I have 1000 assets, if I want to run depreciation only for 200 assets how can I do that?
    4) If suppose I have 5 Depreciation areas, I am able to see the book depreciation values only, where I
        can see the other depreciation values? If we can’t see for which purpose we are using other
        depreciation areas?
    5) Vendor and Customer balances get update regularly or once in a month or year?
    6) Where we have to create number ranges either in Production or Development Environment?
    7) How can we transfer GLs from one environment to another?
    Full points will be assigned as way of thanks
    Regards,
    Vineela

    Hi Krishna,
    Thanks for your reply,But still I need some more clarifications please respond........
    2) What is the importance of Recalculate value button in Asset Accounting?-
    (A)recalculates depr when asset parameters are changed
    Where it will be there as it(recalculate button) is not there in AFAB
    3) Suppose I have 1000 assets, if I want to run depreciation only for 200 assets how can I do that?
    (A)select those 200 and run depreciation
    Here Assets Selection option is there only in test run not there in update run.
    4) If suppose I have 5 Depreciation areas, I am able to see the book depreciation values only, where I can see the other depreciation values? If we can’t see for which purpose we are using other depreciation areas? (A)use AW01N- you cans ee all dep areas
    In AW01N only book depreciation values is displayed,how can I see other depreciation area values
    Regards
    Vineela
    Edited by: Vineela Siri on Apr 9, 2008 7:22 AM

  • Here is whats new for me with pr1.3 so far...

    phone feels much faster and snappier, the email client opens emails way faster now, and syncs without errors, the web browser is way better, very fast, and very smooth, zooming in/out are faster, and there is a slight flash update, so now my flash feels way better, i can watch youtube videos very smoothly without any problems, a lots of flash games/videos/live broadcasting are working now in microB .
    ovi maps now have a recalculate button, which i found very handy, because before, when you go of the track, it won't recalculate, and you would have to find directions all over again .
    speed improvements are everywhere, transitions are faster, apps opens faster, no bugs so far, and yes my media player widget is working fine .
    reception got a lot better, for example here on my desk my n900 is most of the time next to my laptop, with 3 bars of 2g connection, now after i flashed pr1.3 my signal is always over 4 bars of 2.5 g !! (and i should mention that 2.5 is the maximum in my country )
    my n900 doesn't lags anymore, runs great all the time, feels very "perfect" .
    Audio did get a lot better, in quality and level, the music sounds louder now with the audio drivers update .
    apps switching is faster now .
    and when for example i switch from the conversation app, to a web page already opened i don't have to wait 1-2 seconds for microb to refresh or what ever like it did before .
    Really thank you nokia, the n900 is bugs free, and a lot faster now .
    i hope this helped .
    Reality is wrong....dreams are for real... 2pac .
    don't forget to hit that green kudos

    sever is right, battery did get better but you need to lower the volatge by using titan's kernel, search this post for 'overclock via x-terminal' sever made easy step by step instructions .
    Reality is wrong....dreams are for real... 2pac .
    don't forget to hit that green kudos

  • How do i create a custom field in SRM_MDM shopping cart preview screen

    Hi
    I on SRM 5.0 MDM 2.0.
    Requirement is 'temp labor'. i have a price form a speciific supplier for specific service is $80 in SRM_MDM catalog.
    But i talked to supplier and they have agreed on a new price of $75. After I select this catalog item, and view the shopping cart preview screen i see "Price information and total price". I want to add a custom field to the shopping cart preview screen called "new price" to enter $75 as the new price and click recalculate to recalulate the new total price and send this to SRM for follow on functions...
    is there standard functionality in SRM7 for this requirement?
    cheers
    alex

    Hi Alex.
    I totally agree with Sudhanshu's comments. If you create a custom specific field it will always be a read-only.  you can also use EForm for such usecases. Also in case of SRM-MDM Scenario, the price information field holds a standard behaviour which can't be manipulate for custom specific fields.
    But if you want to achive this through the exisitng repository schema and the BADI. then you can follow the steps given below:
    1. If you want to hold the value for the new price, you can create a new custom field (New Price)of type "Text" in the repository and store the price information in that field.
    2. In the configuration screen, you can add the "New Price" to all the views(Result Set, Shopping Cart Preview etc).
    3. In the "Shopping Cart Preview", now you can view the existing standard price information column and the newly created "New Price" column. Now you can change the quantity based on your need. Now when you click "Recalculate"  button the standard price column will change and not the "New Price" column.
    4. Now you can map this newly created field to any of the custom fields which were provided by default. (like NEW_ITEM-CUSTFIELD1).
    5. You can make use of the BADI   BBP_CATALOG_TRANSFER to perform the remaining calculations.
    6. The BADI will hold all the catalog related data in its OCI structure. Before transferring the data to shopping cart you can modify it by multiplying the quantity with the "New Price" value and send the updated price in the OCI standard structure "NEW_ITEM_PRICE".
    Now SRM shopping cart will hold the updated "New Price" for the item shopped through catalog.
    Let me know in case you need more information.
    Regards
    Bala

  • How to find sum of ROWS in advanced table...............

    hi all,
    i have a requirement where we have to calculate sum of the row values in advanced table
    when i click on ADDROW button a new row is displayed after entering the values
    i need to get the sum of values that i enter into the new row
    i know about RECALCULATE button which gives sum of columns but i need to get the sum of the rows
    plz help me.........
    thanx in advance
    DEV

    Hi Dev ,
    You need to make use of iteration , loop through every record in the VO get the column value and keep adding it
    to obtain the sum .
    Here is the code to loop through and get the column value
    OAApplicationModule am = oapagecontext.getApplicationModule(oawebbean);
    int sum = 0;
    OAViewObject oaviewobject =(OAViewObject)am.findViewObject("ApplicationsListVO"); // your vo name attached to table region
    if(oaviewobject!=null)
    oapagecontext.writeDiagnostics(this,"View Object is exists",OAFwkConstants.STATEMENT);
    int rowcountValue = oaviewobject.getRowCount(); // retruns no of rows
    Row rowAdv= oaviewobject.first();
    RowSetIterator iterator = oaviewobject.createRowSetIterator("iterator");
    iterator.setRangeStart(0);
    iterator.setRangeSize(oaviewobject.getRowCount());
    for(int i=0; i<iterator.getRowCount(); i++)
    oapagecontext.writeDiagnostics(this,"Inside For loop ",OAFwkConstants.STATEMENT);
    rowAdv =iterator.getRowAtRangeIndex(i); // start from 0 to fetch count ( no of rows )
    if(rowAdv != null)
    if(rowAdv.getAttribute("VacancyName")!=null) // get your column name
    vacancyValue = rowAdv.getAttribute("VacancyName").toString();
    Sum = sum +vacancyValue ; // Obtain the sum here
    Let me know if you need further inputs .
    Keerthi

  • Progress Monitor not painting

    I'm working on a program that draws fractals, and I'm using a ProgressMonitor to display the length of the task. The ProgressMonitor is created and updated inside the method that calculates the fractal.
    When I call it the first time in my main method, it shows up, displays properly and disappears. I can do this as many times as I want.
    When I try to call it from the ActionListener associated with my 'recalculate' button the window for the ProgressMonitor appears, but the inside is never painted. After the task is complete it disappears again. Any idea what the problem could be?

    * WaitCursor_Test.java
    import java.awt.*;
    import javax.swing.*;
    public class WaitCursor_Test extends JFrame {
        public WaitCursor_Test() {
            setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
            setSize(400,300);
            setLocationRelativeTo(null);
            jPanel.add(jProgressBar);
            getContentPane().add(jPanel);
            setTitle("Wait 10 seconds");
            worker = new SwingWorker() {
                public Object construct() {
                    setCursor(new Cursor(Cursor.WAIT_CURSOR));
                    for( int i=0; i<=100; i++ ){
                        try{Thread.sleep(100);}catch(InterruptedException ex){}
                        jProgressBar.setValue(i);
                    setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
                    jProgressBar.setVisible(false);
                    setTitle("Done");
                    return null;
            worker.start();
        public static void main(final String args[]) {
            EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new WaitCursor_Test().setVisible(true);
         You need to download and compile the "SwingWorker" source code to be able to use it.
         Here it is:
         http://java.sun.com/products/jfc/tsc/articles/threads/src/SwingWorker.java
        private SwingWorker worker ;
        private JProgressBar jProgressBar = new JProgressBar();
        private JPanel jPanel = new JPanel();
    }

  • Calculated field in qualified table

    Hello
    I have created three very simple calculations i qualified tables. The calculated field as well as the fields that make up the calculation are qualifiers.
    None of the calculated fields are updated!
    I have tried to hit the recalculate button and calculated fields in the main table work without problems.
    Is this a known limitation? What can I do to trigger the update?
    BR
    /Alexander

    Hi,
    This is not the case.
    Suppose in Qualified table, you have 4 fields one Non-Qualifier and three Qualifiers say FNAME, LNAME and FULLNAME all of type text.
    Now for Qualifier Field FULLNAME i define Property Calculated = Yes and In Calculation Expression I write as:
    CONCAT(FNAME,LNAME)
    So on updating Qualifiers Value value of Qualifier Calculated field FULLNAME get updated.
    Suppose intially for a record i have qualifiers value as
    FNAME LNAME
    Mandeep Saini
    FULLNAME = Mandeep;Saini
    when i update value for these two qualifiers for the same record
    FNAME LNAME
    Alexander Isacson
    then value in for Qualifier field FULLNAME get updated to Alexander;Isacson
    i tried this and it is working fine.
    Hope it will Help you,
    Rewards if found Useful....
    Mandeep Saini

  • Need Help on WorkFlow

    Hi All,
    How can we hide the "OK" Button in the WorkFlow Notifications Page.
    Can any one please give us any idea?
    Thanks in Advance,
    Dhana

    This should be possible using the Personalization feature - pl see these MOS Docs for examples
    727315.1 - How To Do the Personalization on the Salary Page (Hide CORRECT Button)
    758795.1 - How To Hide The Add Transaction List, Print And Recalculate Buttons Through Personalization?
    HTH
    Srini

  • How do I re-activate a formula

    Well, that doesn't make much sense... Here's what I'm trying to do:
    I'm using RANDBETWEEN to generate one number from a range of numbers. Once one number has been generated, how can I generate another in the SAME cell as the first?
    Many thanks

    Question asked and answered many times.
    Any change anywhere in a table will force RANDBETWEEN to generate a new set.
    Some users created a one cell table with a checkbox used as a "Recalculate" button.
    Yvan KOENIG (VALLAURIS, France) lundi 15 août 2011 11:42:58
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please :
    Search for questions similar to your own
    before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • Reconciling Multiple Bank Statment Lines

    Hi Colleagues,
    A receipt has been raised & banked for multiple mode of payments. For example customer pays $10000.00 as below
    $ 75000 In Credit Card
    $ 20000 In Cash
    $ 5000 In Cheques
    When u take the bank statement , there will be three statement lines in three different days for the above. And when it comes to reconciling u have three statement lines with a single AR receipt. How can we reconcile it. Is there a work around. And what does recalculate button does??
    Appreciate ur prompt response,
    Thanks,

    Dear John;
    You may create your LSMW with a vendor which has n banks (say 5). You will write 5 rows of bank info. LSMW will create new field names for these areas. 01-02...
    LFBK-BANKS(01)                 TR
    LFBK-BANKS(02)                 tr
    LFBK-BANKL(01)                 0067-00002
    LFBK-BANKL(02)                 0067-00003
    LFBK-BANKN(01)                 1234
    LFBK-BANKN(02)                 1235
    you will prepare your excel for this purposes after then.
    I hope it will help.
    BR.
    Aydın

Maybe you are looking for

  • Adding user fieds to logical database ADA - solution?

    Hi, I have problems with adding (by append structure) my user fields (which are added to standard SAP table ANLA) to logical database ADA which is used in AM reporting. I have found this solution: Thru SE30 I found, that logical database ADA using vi

  • OBIEE 11g presentation services login error

    Hi All, i am new to OBIEE 11g i have installed software and when i tried to login presentation services it is giving following error please help me. i stated all services in EM and in services (oracle process manager and node manager also) Enter your

  • Is it possible to link two or more accounts without merging?

         Is it possible to link two or more accounts without merging? For example: give access for apple id [email protected] (obviously fake and is used by John) to apple id [email protected] (also obviously fake and is used by Rose). This would only al

  • Job hang in RUNNING state

    Hi, Database ver. 11g (11.1.0.7.0) I have created simple job using DBMS_SCHEDULER. begin dbms_scheduler.create_job ( job_name => 'test_job', job_type => 'plsql_block', job_action => 'null;', enabled => true); end; SELECT job_name, job_action, schedul

  • SAN for ocr and vote file  for Linux RAC

    Hi Experts, Based on Oracle document, i have to create 2 devices for the OCR and 3 for the VOTE in RAC. However, my boss think SAN maybe mirroe OCR and Vote file. It is enough for 1 location in SAN storage. It does not matter how many driver sidplay