Preventing a calculation

Hello-
I'm very new to this so this will hopefully be an easy on for many of you.
I have set up a form in a PDF in Acrobat Pro 5.0 that calculates two other form fields (Product Weight and Tare Weight).  This is the script:
var p = this.getField("Product Weight");
var t = this.getField("Tare Weight");
event.value = p.value - t.value
My problem is that this will recalculate everytime the file is saved even if the values entered in the two fields were not changed. I have this integrated with another application that has an Audit Trail - whenever the PDF file is saved, the calculation fires the audit trail saying that the calculation field was changed from "0" to "<the new calculated value>" even though nothing was changed in the fields.
How could i set it up to ONLY calculate and recalculate if there are non-0 numbers entered in either of the two fields or if either of the numbers entered were changed?
Thanks for your help.
Matt

The Acrobat JS API Reference discusses the order and way event processing occurs and what the various event processes are. One could perform the calculation as a "Blur" action for each of the input fields used in the calculation. so the calculation is only performed when an input field exited. In this manner the calculation would only be performed when one of the input fields is accessed and exited.

Similar Messages

  • How to create an unsolved cube with awm???

    hi all,
    I readed the "Oracle Olap developer's guide to the Oalp api" and I found there's 2 type of Cube: Solved and Unsolved Cubes. And this document says: "... if all the data for a cube is specified by the DBA, then the cube is considered to be Solved. If some or all of the aggregate data must be calculated by Oracle OLap, then the cube is unsolved ..."
    I tried with awm 10.2.0.3.0A to create an unsolvedCube but I can't. All cubes I created are solvedCube. To know if a cube is solved or unsolved, I wrotte an program in Java to read informations of package mtm.
    Some one can tell me how to create an unsolved cube with AWM ou other soft please!

    SH is not a relational OLAP data model which is quite different from the GLOBAL schema which is based on an Analytic Workspace.
    If you change the aggregation method you will need to re-compute the whole cube which can be a very big job! You might be able to force the unsolved status be de-selecting all the levels on the Rules tab in AWM. However, I think by default analytic workspace OLAP models always provide a fully solved cube to the outside world. This is the nature of the multi-dimensional model.
    Relationally, as keys are located in separate columns a cube can be unsolved in that the key column only contains values for a single level from the corresponding dimension tables. If more than keys for different levels within the same dimension appear within the fact key column then the cube is deemed as being solved.
    Therefore, I am not sure you are going to get the information you require from the API. To changes the aggregation method you will have to switch off all pre-compute options and also disable the session cache to prevent previously calculated data being returned when you change the aggregation method.
    Hope this helps
    Keith Laker
    Oracle EMEA Consulting
    BI Blog: http://oraclebi.blogspot.com/
    DM Blog: http://oracledmt.blogspot.com/
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN: http://www.oracle.com/technology/products/bi/
    BI Samples: http://www.oracle.com/technology/products/bi/samples/

  • Enable to make payment of invoices against which TDS is deducted

    Hi All,
    We have posted 3 vendor invoices & deducted the TDS against each invoice as follows -
    Inv. Amt                            TDS
    7516                                158
    5050                                107
    5051                                 106
    Now when I am trying to take out the payment of Rs. 17617/-against the above invoices through F-53 in open item process again the TDS amt 371/- is getting deducted against the payment of Rs. 17617/-
    Please suggest how do i take out the payment of Rs. 17617/- only without deducting 371/- of TDS?
    Thanks
    Sonal

    Recollect the screen that pop ups when you make down payment or Make an invoice. At the time of down payment you will be given the tax codes that were applicable at the time of making payment transaction.
    when it comes to Invoice, the system pop up both the Payment related/Invoice related tax codes that are applicable to the vendor.
    So when you are processing invoice you need to make sure that the payment related codes are deleted or entered manually a zero value agianst those codes. This will prevent the calculation of tax again at the time of making the payment.
    In your case you need to reverse the invoice and do it again or clear line items manually after passing a TDS JV.
    Hope you understood.
    Reward points if useful.
    sarma

  • Consolidation Time in Version 9.3.3

    Has anyone experienced substantially longer consolidation times in version 9.3.3 after moving from 9.3.1? Our daily consolidation has increased from 60min to 105min after putting in the new version. The only thing we changed from the prior month other than the version is locking of data. Would this impact consolidation significantly?
    Thanks.

    Locking the Entities in a scenario should reduce consolidation time as it would prevent any calculations from being performed on the locked items. Are you performing the same type of consolidation (Impact/All with data/All)? You could also review any scenarios which you may be impacting i.e. using hs.impactstatus.
    JTF

  • Config settings

    Hi All.
    Is anybody aware of any config settings behind the scenes that could prevent a calculated key figures to be calculated before aggregation?  Is there a way we can check this to confirm?
    Any help or insight would be helpful and fully rewarded.
    Thanks,
    Mav.

    hi Mav.
    have you try right click calculated key figures - property - 'enhance' button ? there is 'time of calculation' setting
    http://help.sap.com/saphelp_nw04s/helpdata/en/6f/56853c08c7aa11e10000000a11405a/content.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/bb/9e8b6b4d6f0d45b1efb5dfbc3b44a5/frameset.htm

  • 3D render problem

    I have a strange problem going on for CS6... Where when I created a design, grouped all of them so that they had the same center.. then did a force perspective... Some of the letters didn't render while a wire frame does exist for them.
    One friend suggested to make sure all of the points are joined, however when I Ctrl+J them, I get an error that says invalid object... which is most likely because they are joined... any ideas on this?

    Not exactly sure wy you even go through the trouble of using bevel&extrude... A simple radial scale/ warp on a duplicate of the shapes could create the illusion... Anyway, if you get the invalid object warning it usually means that the path type is not right. Either it's grouped in odd ways, assigned as a compound path or a clipping mask. Also due to the shape of the type in the crevices I have the ugly suspicion that the font face simply has self-intersecting loops there which prevent correct calculation of the blends. Adjust the Bezier handles to avoid that or convert the points to linear right away...
    Mylenium

  • Problem multiplying a double

    Hi All,
    I have some code where I do something like
    for (int i=0;i<11;i++) {
    double currentValue = i * 0.01;
    System.out.println(currentValue);
    The result is
    0.09
    0.19
    0.29
    0.39
    0.49
    0.59
    0.690000000000001
    0.79
    etc.....
    How can I prevent the extra decimal points.
    I know I could just cat the value to a string and
    watch the lenght, then if its too long I can substring
    out 4 chars. But I was wondering if I can prevent the
    calculation frmo doing this.
    Thanks,
    Pat

    Ok here is the fix, I think people should always post the fix.
    Dont forget to import java.text.DecimalFormat
    Here is the actual code. The stuff I posted earlier was
    a simple example. The actual code is a program that
    graphs a curve trace of a diode.
             for (int i=0; i < points.size(); i++) {
                g.fillRect(i*4+1,12,1,5);
                point = (Point)points.get(i);
                if (point.x%10 == 0) g.fillRect(i*4+1,6,1,11);
                double currentStep = i * currentStepValue;
                DecimalFormat df = new DecimalFormat("##0.000");
                if (point.x%10 == 0) {
                   g.drawString(""+df.format(currentStep),i*4+1,10);
          }The part that fixes the precision problem is
    DecimalFormat df = new DecimalFormat("##0.000");
    g.drawString(""+df.format(currentStep),i*4+1,10);
    or in the simple example I used the fix is :
    for (int i=0;i<11;i++) {
       double currentValue = i * 0.01;
       DecimalFormat df = new DecimalFormat("##0.000");
       System.out.println(df.format(currentStep);
    }I hope this helps someone :)
    [email protected]

  • How to prevent BPC from automated calculating for hierarchies / nodes?

    Hi experts,
    I am looking for a practicable way to prevent the system from automated calculating for hierarchies, and especially for nodes within hierarchies?
    Let's say, I have ENTITIES (AS A HIERACHY) in rows and ACCOUNTS in COLUMNS. Now I want the system to block adding up the values for one specific account on node XY. Instead of the sum of all base member entities, the cell for account XY should be left empty.
    Is there a practicable way to deal with this?

    Hi Stefan,
    you can prevent the system to calculate a node by editing the Formula Property  in the Dimension.
    You can insert 0 or null to the Formula field for the specific element.
    But in this case the values from your leaf elements lying under your node wont be calculated  even in higher hierarchy nodes.
    For ex.: with the following structure
    -A
    ---A1
    A11
    A12
    ---B1
    B11
    B12
    If you set A1 to 0, the top node A will only be calculated by values of B1
    Regards
    Jörg

  • Preventing calculations from returning default "0"

    Running Adobe Acrobat Professional version 8,
    I have a fairly basic running-tally sheet I'm working with. Columns and rows, which total together to add up to a "Grand Total" at the bottom. What I'm having a problem with, is that when all the fields which the calculations are based from are blank, the "Grand Total" box still displays a "0".
    Is there any way to prevent a value from being shown in the "Grand Total" box until there are actually numbers to spit out?
    Thanks again.

    George,
    Sorry it took a while to get back to you. The form is set up so that it takes the value of 13 "total" fields, and summates them into a "Grand Total" field by adding the values of all the total fields.
    Each "total" field is the sum of each line it sits next to, which contain values for food, gas, etc. It summates the cost on each line and spits out a total. If there is nothing entered in the data fields, then it just displays a 0.
    Each field is named "Total1" through "Total13", respective to its position on the list. The Grand Total field is simply named "GrandTotal".
    Any thoughts? Hope I explained this sufficiently. Thanks again.
    -Ian

  • Prevent calculation of Volume in Basic Data 1

    Dear Experts ,
    The system calculates the volume automatically when we input length , width & height.
    But we donot want to maintain volume . How can i prevent it.
    Regards
    Anis

    Maybe some internal program is triggering calculation of volume. Talk to ABAPer reg this.

  • [svn:osmf:] 14326: ChromeLibrary: fixing hints from appearing at the wrong vertical offset, and preventing scrub bar time remaining calculations to go negative.

    Revision: 14326
    Revision: 14326
    Author:   [email protected]
    Date:     2010-02-22 08:10:39 -0800 (Mon, 22 Feb 2010)
    Log Message:
    ChromeLibrary: fixing hints from appearing at the wrong vertical offset, and preventing scrub bar time remaining calculations to go negative.
    Modified Paths:
        osmf/trunk/libs/ChromeLibrary/src/org/osmf/chrome/controlbar/widgets/ScrubBar.as
        osmf/trunk/libs/ChromeLibrary/src/org/osmf/chrome/hint/Hint.as

  • Preventive Maintenance date calculation

    HI,
    I am having a counter  with 161 KM.
    Annual Estimate is 20000.
    Start date for plan is 04.11.2010.
    I want to take maintenance for 1000KM.  Now the reading is 161 KM.
    After scheduling in IP10,  the system calculates
    Next planned counter reading as 1161
    and
    Plan date is 13.11.2010.
    Can you please explain how it was calculated ?
    Thanks.

    Hi,
    Create the Measuring Point as Counter & assign Annual Estimate 20000. Then create Single Cycle Plan with 1000 as Cycle count & assign the counter in that plan. Also Assign the Single cycle plan & Counter in Equipment.
    If you plan the Single Cycle Plan with "0" as start of the cycle in IP10, It will give the the Next Planned Counter Reading as 1000.
    If you start with 161, it will give the Next Planned Counter Reading as 1161.
    In my example, my start date is 09.11.2010. Annual Estimate is 20000. Validity of the plan is 365 days.
    So per day value is 20000 / 365 = 54.79452055. Single Cycle plan value is 1000. Counter reading is 161.
    So 1000 - 161 = 839.
    Then 839 / 54.79452055 = 15.31175
    So next plan date would be 24.11.2010 (i.e., 09.11.2010 + 15).
    I hope you will be clear.
    Regards,
    Maheswaran.
    Edited by: Maheswaran.K on Nov 9, 2010 9:09 AM

  • Prevent Rounding after time calculation

    HI BI Gurus,
    I am doing a calcuation to know the exact number of hours ( with decimal values ) between two dates. But system is automatically rounding the output like below examples.
    if difference is 2 hours and more than 30 mins, o/p is 3 hours,
    if difference is 2 hours and less than 30 mins, o/p is 2 hours,
    my requirement is if it is 2hours and 40 mins,
    o/p shud be =  2hrs + ( 40 / 60 ) hrs. i.e... 2.66 hrs.
    Please help me how to prevent the rounding with a abap code.
    Thanks in advance and points assured....
    Raghu

    if you are using TIMS info object, you need to set the number of decimal places to 2 or 3.

  • How to address HP Printer Software Update 3.0, iTunes 12.0.1 update that sits in the App Store, 'Calculating' for days with no install?

    The App Store indicates there is a Software Update that appears to include the HP Printer Software Update 3.0 and iTunes 12.0.1
    Unfortunately, the software update fails to install. Instead, it just sits there 'Calculating' for days with no progression on the status bar of the overall update.
    The update buttons of both the HP Printer Software Update 3.0 and iTunes 12.0.1 are both greyed out, with no progress bar.
    Not sure of what the issue is, there is no warning or error dialog box that appears or any indication of an application that may be interfering with the install.
    Any advice? 
    MacBook Pro (17-inch, Early 2011) 2.3 GHz Core i7, 4GB RAM

    Thanks for the suggestion. I wanted to install the individual updates but because I had settings to automatically download and install updates, whenever I opened the App Store, the system would try to download and install, preventing me from canceling the update to execute each application update one at a time.
    After changing the settings from automatically downloading and applying updates, followed by a restart. I was able to open the App Store and run each individual update.
    Thanks again.

  • Prevent creation of additional common objects at the  same time ...

    Context: A Super User group may require to be allowed to create and/or change queries in Production
    Would be possible to prevent creation of additional common objects like rectricted and calculated key figures and variables at the same time allowing creation of queries in terms of dragging and dropping filters, free characteristics, rows and columns?
    I know that keeping the system closed to changes and using the transport connection Object Changeability it is possible to restrict change of query elements to those that are original in the system.
    Points will awarded.
    Thanks
    Mathew.

    In transport connection Object Changeability, you can only set query elements as modificables but you cant distint between diferent query elements (queries, calculated/restricted key figures, structures, etc).
    You can do that distiction in authorization object in rs_comp and rs_comp1.
    You should combine transport connection Object Changeability and authorization objects in roles

Maybe you are looking for

  • Error during install of Mini WAS 6.20

    All, I'm getting the following error message(s): InfoExtracting the Database-Dependent SAP system Executables Warning: CDSERVERBASE ConfirmKey 2 816 Can not read from F:. Please ensure this path is accessible. Info: LvKeyRequest For further informati

  • Duplicate of another photo in a catalog.

    When I go to import photos from my external drive into lightroom 5 i am unable to select any of the photos because it says that  "this appears to be a duplicate of another photo in the catalog" .  This means I may have imported them previously but I

  • HT3775 i cannot open h 264 file in quicktime

    I cannot open h 264 file in quicktime. Is there any one can help me.

  • Print Utility crashes when attempting to add printer connected to an XP box

    Hello, I am able to connect to the shared folders on the XP box and the XP box is able to connect to my Mac, but when I try to add the printer to my Mac that is connected to the XP box, Print Utility hangs. This is how far I get: 1. Add printer 2. Se

  • MDM and Adobe Indesign CS3

    Hi everybody, does anybody know wether the new version of Adobe Indesign CS3 works with MDM 5.5 SP3 ? Or do i need a newer version/ SP for this software version? Thanks for your help!