Calculation errors when entering the set currency shaped numbers

I have created a form that has several fields all defined as numbers using currency formatting:

CurrentBase, which is the rate of monthly remuneration which passes from the user

CurrentYearly, which is the rate of pay annual and is calculated as CurrentBase * 12 - it is read only

CurrentOvertime which is an estimate based on 6% of the CurrentYearly and the user can replace.

As an event OnBlur in CurrentBase, I use this code:

var cYear = this.getField ("CurrentYearly");

this.getField ("CurrentBase") .value = cYear.value * 12.

this.getField("CurrentOvertime").value = cYear.value * 0.06;

I also have a CurrentTotal field that is the sum of CurrentYearly and CurrentOvertime, defined in the custom for CurrentTotal as calculation script:

this.getField("CurrentTotal").value = this .getField ("CurrentYearly") .value + this .getField ("rrentOvertime Cu") .value;

Here's the problem:

If I get a CurrentBase, for example 1234 my script correctly calculates the CurrentYearly ($ 14 808,00), CurrentOvertime ($888,48) and CurrentTotal ($ 15 696,48) correctly.

If I replace the CurrentOvertime using something like 555.00 total now calculates correctly, in this case $15 363,00

But if I type 555. (omitting the decimal values) my CurrentTotal displayed as $14,808,555.00

This seems to be a bug.  Any thoughts on why and how to fix it.

Bob

The value is treated as a string instead of a number, so it is just to be

concatenated value, instead of added to it.

The solution is to explicitly convert the value to a number, which can be

done in many ways. The easiest way is to add a symbol more in front of her,

as follows (the brackets are not required, but they make it easier to read):

this.getField("CurrentTotal").value =.

(+ this.getField ("CurrentYearly") .value) +.

(+ this.getField("CurrentOvertime").value);

Tags: Acrobat

Similar Questions

  • BlackBerry Smartphones eception exception error when entering the "Messages".

    I have a client who uses a Blackberry World Edition (8830) and when it tries to go in Messages (by clicking on the Messages icon) it gets this error message all the time: uncaught Exception: java.lang.null.pointer

    I tried 2 types of resets, alt + Cap + del and tried to remove the battery when the BB is running and the same thing, I did a hard reset, that is wiping the BB and customer has left me a message this morning that he always gets the same error message.

    My BES Console (synchronize us with Domino servers on a Lotus Notes platform), I see that he has the

    version of the 3.0.0.81 platform

    The BlackBerry version: 4.2.2.196

    His blackberry had a Bell Mobility service.

    At present, the only other thing I can think of is to download the operating system and reload it on the BB using Desktop Manager.

    Can someone help me with this please.  I appreciate all the help.

    Robert Goupil

    BES administrator

    * Update - my client turned on his blackberry with the BES this morning and sent a message that, after activation, the problem seems to be resolved.  Now, is there something different that can be done in case this happens again, we have more than 800 users of blackberry and most of them have the 8830 model.

    Hello

    Your troubleshooting actions have been directly on the money, I see.

    HRT is the host Routing Tables. It's entries sent by the carrier.

    When you highlight the entry above and you click on register now, he recorded with the wireless network. Update the details of the device on the relay of the rim and down icons specific carrier or applicants

    I think that the problem existed in an application corrupted on the smartphone users, by recording the phone, the application

    has been refreshed. It's the first time I've seen this particular exception message solved without device

    reload. (Just for reference I read messages 133150).

    Thank you

    Don't forget to adjust your thread. Put the check mark in the green box containing your answer! Thank you

  • PC - error when entering the time sheet through lots of pre-approval

    Hi all
    I walked through batch sheet pre-approved expenses > submitted and published. To distribute the costs and transfers them to GL, I hv submitted the programme ' PRC: distribute Labor Costs' and output, it's show error 'Missing cost rate' as cost rate is mentioned in the window type of expenditure...
    Could someone has an idea about that... Please advise

    Thanks in advance.

    Published by: user7712617 on April 5, 2010 04:11

    Hello

    You can consult the Oracle documentation, see the Guide for implementation of Oracle projects.
    It is on page 3-55 read what follows:
    'Hourly rates are defined for the establishment costs, billing. jobs and financial planning. As part of your implementation of the Oracle project costing, you can set the scale for the calculation of the costs of labor. A scale of cost rate maintains all the hours of employees or jobs cost rate. You can set or copy rate schedules for your entire organization. You can also set
    or copy of individual separate rate schedules for business units. »

    Go to the form... Setup > costing > Labor > organization of the work of the rules for calculation of costs
    There you should program to your control unit cost fee name.

    The PRCL process distribute work costs is the name of the employee on the expenditure for this employee seeks cost rate on the assigned hourly rate if it is defined by the employee, or looking for the job of the person and then find the rate of cost per job.

    Dina

  • When entering the lightroom preferences with that cc2015 hangs LoadLibrary failed with error 1114

    When entering the lightroom preferences with that cc2015 hangs LoadLibrary failed with error 1114

    You can go to Device Manager and disable the graphics card from there and then make the changes in Lightroom preferences.

    Open Control Panel

    Click on Device Manager

    Right-click on GPU under the graphics card.

    Click on disable.

    Open Lightroom< go="" to="">< go="" to="" performance="" tab="">< uncheck="" the="">

    Restart the Lightroom.

    Back to Device Manager.

    Right-click on GPU under the graphics card.

    Click Activate.

    It will be useful.

    Kind regards

    ~ Mohit

  • I was doing a winpeshl.exe.error when starting "the application was not properly initialze (0xc0000006). "Click to complete the application.

    I was doing a winpeshl.exe.error when starting "the application was not properly initialze (0xc0000006). "Click to complete the application" when I click ok it reboots. I can even recover the system, tried F8 startup, alt/F10, F2, launch repair system, Safe Mode and all the rest and still get the same error. System specs are Acer Aspire 5920, Intel T5450 processor, 2 GB ram, 160 GB of HDD, windows vista edition Home premium.  I am currently under the memory diagnostic tool windows, but it is said that the test results will be displayed again once you log in, but I can't log in to view them.  The test seems to be hanging around 21% so I don't know how well it will do

    Hi A1W1LL,

    A clean boot helps eliminate software conflicts.  Let us check if software is causing the problem by following the clean boot procedure that may help you resolve the issue.

    To perform the clean boot procedure, follow the instructions in the link below.

    Step 1: Perform a clean boot
    Step 2: Enable half the services
    Step 3: Determine whether the problem returns
    Step 4: Enable half of the startup items
    Step 5: Determine whether the problem returns
    Step 6: Resolve the problem
    Step 7: Reset the computer to start as usual

    How to troubleshoot a problem by performing a clean boot in Windows Vista
    http://support.Microsoft.com/kb/929135

    After reviewing the issue, put the computer into Normal mode.
    Uninstall or update the program that is causing the problem.

    If you are not able to boot to the desktop, you can try to restore your computer from WinRE.

    1. Insert the Windows Vista installation disc in the disc drive, and then start the computer.
    2. Press any key when the message "Press any key to boot from CD or DVD".
    3. Select a language, a time and currency, and a keyboard or input method, and then click Next.
    4. click on repair your computer.
    5. in the System Recovery Options dialog box, select the drive of your Windows installation and click Next
    6. in the System Recovery Options dialog box, click System Restore.
    7. follow the instructions in the wizard to restore system as usual and choose the appropriate restore point.
    8. click Finish to restore the system.

    Please post back and let us know if it helped to solve your problem.

    Kind regards
    KarthiK TP

  • DRAC5 "Error when reading the SSL socket connection"?

    Hello

    I have a BIOS of PowerEdge 1950 2.7.0 with DRAC 5 Firmware Version 1.65 (12.08.16).

    When you try to connect to 'Console' I get the error "Error when reading the SSL socket connection".

    I spoke the line "# jdk.tls.disabledAlgorithms = SSLv3, RC4, MD5withRSA, DH keySize.< 768"="" at java.security="" file="" but="" still="" the="">

    I use WIndows 10 with the latest FireFox.

    Thanks in advance,

    Asaf

    I found that these changes were necessary to connect to the DRAC 5 using Chrome and Java 8, rev card. 91:

    In Control Panel > Java > Security:

    1. check "Enable content of java in the browser.

    2. set the security level to "High".

    3. Add each DRAC IP to the list of exceptions

    In C:\Program Files (x86)\Java\jre1.8.0_91\lib\security\java.security):

    Remove MD5:

    jdk.certpath.disabledAlgorithms=MD2, RSA keySize < 1024
    

    Remove SSLv3, RC4 and MD5withRSA:

    jdk.tls.disabledAlgorithms=DH keySize < 768
    
  • Trying to open the message box appears 'lightroom has encountered an error when reading the preview cache and needs to stop smoking' Lightroom "Lightroom will try to solve this problem, the next time that it launches" OK when you press closed Lightroom an

    Trying to open 5 Lightroom, a message appears 'Lightroom has encountered an error when reading the preview cache and needs to quit' "Lightroom will attempt to solve this problem, the next time he throws" when OK key Lightroom quit unexpectedly and the computer returns to the office.  This persisted for 2 days and it has not set itself.  help please.

    Click OK close Lightroom.

    You must manually go to the location of your Lightroom by Finder catalogue / file Explorer and get rid of the Previews.lrdata folder

    By default, the location would be in Pictures\Lightroom folder

  • On the tray upward. error when installing the shared technologies. Then it cancels the installation.

    On the tray upward. error when installing the shared technologies. Then it cancels the installation. Download, installation, setting up

    Photoshop elements 12 fails when installing sh... | Adobe community

  • Error: Please enter the date value in the correct format DD-MON-RRRR

    Hi all
    First of all, I am 100% not learning financial oracle no technical information. I'm trying to run a report: - the calendar does not appear in order for me to choose the date - not to mention that when I enter the date IE 10/09/2010 or on 09/10/2010 the system gives me this error "" error: Please enter the date value in the correct format DD-MON-RRRR ".
    Please help me to solve this.

    Thank you

    Please enter date in format 12 October 2010.

    Kind regards
    http://www.oraerp.com

  • Error when parsing the file ' value of the 'src' attribute is not valid; must be a URI'.  ERROR (RSC-005) to "Hetgeheimfietsen.epub/OEBPS/toc.xhtml" (line 10, col 10): error while parsing the file ' "ol" element not allowed here; wait for the end-tag of t

    The members of the Forum kan help you

    Validation by using version 3.0.1 EPUB rules.

    ()https://github.com/IDPF/epubcheck( )

    December 9, 2015 15:27:33 THIS

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

    WARNING (OPF-007) to 'Hetgeheimfietsen.epub/OEBPS/content.opf' (line 2, column 227):

    Re-declaration of prefix reserved "rendition."

    ERROR (RSC-005) to "Hetgeheimfietsen.epub/OEBPS/toc.xhtml" (line 10, col 10):

    Error when parsing the file ' "ol" element not allowed here; waiting for the end-tag of the element or element "li" '.

    WARNING (CSS-007) to "Hetgeheimfietsen.epub/OEBPS/css/idGeneratedStyles_0.css" (line 60, col 2):

    Police made OEBPS/font/CambriaMath.ttc refers to fonts not standard type application/x-police-FTT.

    WARNING (PKG-012) to "Hetgeheimfietsen.epub/OEBPS/De_Alpe_d'Huez-1.xhtml":

    File name contains following non ascii characters: '. You want to change the name of the file.

    WARNING (PKG-012) to "Hetgeheimfietsen.epub/OEBPS/De_Alpe_d'Huez-2.xhtml":

    File name contains following non ascii characters: '. You want to change the name of the file.

    Check the finish with warnings or errors!

    In the file Toc delete the second "ol", as well as closing like Epubcheck duplicate codes

        the one after the other (delete the other)

    1. I can't get my LR to open without this message: "Lightroom has encountered an error when reading the preview cache and need to quit."

      Lightroom has encountered an error when reading the preview cache and needs to stop smoking.  Help, please

      Hi crystalc,

      It seems that the preview cache has become corrupted.

      You must go to the location where your catalog is stored via finder/File Explorer and get rid of the file ending with Previews.lrdata (not .lrcat)

      Default location of the catalog is under Pictures\Lightroom

    2. Lightroom has to close immediately after splash because it encountered an error when reading the preview cache

      does anyone have a solution to this problem?

      Lightroom has to close immediately after splash because it encountered an error when reading the preview cache

      Frustrated

      You must remove this file previews.lrdata. It won't do any harm, and it does not solve the problem.

    3. At the launch of lightroom a message saying: Lightroom has encountered an error when reading the preview cache and need to stop smoking.

      Lightroom has encountered an error when reading the preview cache and needs to stop smoking.

      What can I do to make this work?

      Restart Lightroom

    4. Have a problem with Lightroom 5.4.  Given that the program crashed yesterday, will not start, it comes up with the message "Lightroom has encountered an error when reading the preview cache and need to quit."  "Lightroom will attempt to fix this ti net pr

      Have a problem with Lightroom 5.4.  Given that the program crashed yesterday, will not start, it comes up with the message "Lightroom has encountered an error when reading the preview cache and need to quit."  "Lightroom will attempt to solve this problem, the next time he throws."  Except that it isn't, I get the same message and the program closes.  Anyone know what I can do to fix it?  Can not backup, can't do anything.

      There are dozens of discussions in this forum that describe the fix

    5. Active Services Web Directory has encountered an error when reading the parameters for the specified Active Directory Lightweight Directory Services instance

      VCenter Server 4.1, I installed it on a physical machine. This is the error message that appears whenever I try to follow what is happening every 1 min event viewer.

      Error:

      role for users: log name: Active Directory Web Services

      Source: ADWS

      Date: 2010-07-28 15:55:21

      Event ID: 1209

      Task category: Instance ADWS events

      Level: WARNING

      Keywords: Classic

      User: n/a

      Computer: wwubmw.williamwoods.local

      Description:

      Services Web Active Directory encountered an error when reading the parameters for the specified Active Directory Lightweight Directory Services instance.  Services Web Active Directory will try again this operation regularly.  At the same time, this body will be ignored.

      Instance name: ADAM_VMwareVCMSDS

      The event XML:

      The OS is Windows 2008 R2. What should I do to solve the problem.

      Thanks for the reference Troy

      If you have found this or other useful information, please consider awarding points to 'Correct' or 'useful '.

      Gregg Robertson, VCP3, 4, MCSE, MCSA, MCTS, MCITP

    Maybe you are looking for

    • Stop randomly T530

      T530 (model 2394 -! 1) stops after staying only for a few minutes. Shutdown is not dependent on the OS just with basic install Windows 7, when you run PC Doctor CD and boot Linux Live CD diagnostics. Have used different batteries, power supplies and

    • X 220 + dell ban series 3 + ultrasharp U3011

      Hi, I have a X 220 and the 3 series ban. I'm trying to find out if the 3 ban can support the maximum resolution to a Dell Ultrasharp 30 '' external monitor with a resolution of 2560 x 1600. Should I avoid to use the VGA cable, but buy a new cable to

    • LabVIEW 2010 will not install on Win XP SP3

      I have made several attempts to install LabVIEW 2010 on Win XP SP3. I already have LabVIEW 2009 installed and working. On each attempt, I accept the default installation options and do not put in a serial number. The first attempt got stuck at 2% ful

    • I can't send a file when I send a link - nothing happens.

      I see a file from a magazine I want to send to some people.  I go to the file and press send a link and I cannot send anything.  What can I do?

    • Permutation of the storage processors

      Hello We have a customer who has a group of several Member. Recently a PS6510e was added, but it is necessary to replace the 10GbE, 1GbE controllers. Don't ask! I know this as your way of thinking. Is the best way to do this in order to evacuate the