Request for relief for the script code

I would like to help with this script in our field of personalised calculation of adjustment:

Get the field values as numbers

var goals = + getField("Goals").value;

var GA1 = + getField("GA1").value;

var GB1 = + getField("GB1").value;

var = GC1 + getField("GC1").value;

var GD1 = + getField("GD1").value;

Set this field value

switch (goals) {}

case 1:

Event.Value = GA1;

break;

case 2:

Event.Value = (GA1 + GB1) / 2;

break;

case 3:

Event.Value = (GA1 + GB1, GC1) / 3;

break;

case 4:

Event.Value = (GA1, GB1, GC1 + GD1) / 4;

break;

by default:

Event.Value = "";

break;

}

It was written when 'Goals' our form had the numbers 1 to 4 in option.  Now we have between 0 and 4 in option - so there should not be a 'case 0' is added to this?

Thanks for any help you can give.

Change these two lines:

switch (Goals) {
case 1:

TO:

switch (Goals) {
case 0:
    event.value = 0;
    break;
case 1:

Tags: Acrobat

Similar Questions

  • Windows has stopped this device because it has reported problems. (Code 43) A request for the USB device descriptor has failed.

    Separated from this thread.

    Hello

    I'm faced with the same question. I went to settings of your laptop and ran the recovery, but it did not help. I went to Device Manager and I noticed an error: Windows has stopped this device because it has reported problems. (Code 43) A request for the USB device descriptor has failed. Tried to fix that with an alternative of Microsoft Community (http://support.microsoft.com/mats/hardware_device_problems/?wa=wsignin1.0), but the issue could not be resolved. I don't know if they are related, but I think so. Spent so much time trying to solve this problem and would be really grateful for the help. Have had the computer for less than 3 weeks...

    Ewa

    Hi Ewa,

    Thanks for the reply.

    I suggest you to update the drivers for the chipset of your computer and check if it helps. You can use the link below. Select the appropriate component and the operating system from the list. The link given below is for Lenovo 11 2 yoga, if you have any other device then please provide us with the exact model number or select the correct model number.

    http://support.Lenovo.com/us/en/products/laptops-and-netbooks/Yoga-series/Yoga-2-11-notebook-Lenovo?c=1

    As you mentioned that the other two USB ports work correctly, according to me is not a problem with the driver. It seems to be a hardware problem.

    Let us know the status.

  • How to prevent "a request for the item is now underway."

    Hello guys,.

    Im getting this error very often, is there a solution to this?

    Error: Requested Item is not available. A request for the item is now underway.
    at mx.data::ConcreteDataService/resolveReference() [C:\depot\DataServices\trunk\frameworks\pr ojects\data\src\mx\data\ConcreteDataService.as:2203]
    at mx.data.utils::Managed$/getProperty() [C:\depot\DataServices\trunk\frameworks\projects\dat a\src\mx\data\utils\Managed.as:183]
    to sgrh::_Super_Empresa/actividade() [C:\wlcds\sgrh\src\sgrh\_Super_Empresa.as:198] get
    at mx.data.utils::Managed$/internalCompare() [C:\depot\DataServices\trunk\frameworks\projects \data\src\mx\data\utils\Managed.as:648]
    at mx.data.utils::Managed$/arrayCompare() [C:\depot\DataServices\trunk\frameworks\projects\da ta\src\mx\data\utils\Managed.as:696]
    at mx.data.utils::Managed$/internalCompare() [C:\depot\DataServices\trunk\frameworks\projects \data\src\mx\data\utils\Managed.as:608]
    at mx.data.utils::Managed$/ http://www.adobe.com/2006/Flex/MX/Internal: Compare () [C:\depot\DataServices\trunk\framewor ks\projects\data\src\mx\data\utils\Managed.as:522]
    to mx.data::ConcreteDataService / http://www.Adobe.com/2006/Flex/MX/internal:getDataListWithFillParams ([C:\depot\DataServi ces\trunk\frameworks\projects\data\src\mx\data\ConcreteDataService.as:3751])
    at mx.data::ConcreteDataService/internalFill() [C:\depot\DataServices\trunk\frameworks\projec ts\data\src\mx\data\ConcreteDataService.as:7178]
    function / < anonymous > () [C:\depot\DataServices\trunk\frameworks\projects\data\src\mx\data\C oncreteDataService.as:1317]
    at mx.data::ConcreteDataService/fill() [C:\depot\DataServices\trunk\frameworks\projects\data\ src\mx\data\ConcreteDataService.as:1336]
    at mx.data::DataManager/fill() [C:\depot\DataServices\trunk\frameworks\projects\data\src\mx\d ata\DataManager.as:1560]
    to _Super_FuncionarioService / getByEmpresa () [C:\wlcds\sgrh\src\sgrh\_Super_FuncionarioService .as:341]
    at mz.mysoft.sgrh.telas::ListaFuncionarios/reset_clickHandler() [C:\wlcds\sgrh\src\mz\mysoft\ sgrh\telas\ListaFuncionarios.mxml:58]
    at mz.mysoft.sgrh.telas::ListaFuncionarios/__reset_click() [C:\wlcds\sgrh\src\mz\mysoft\sgrh\ telas\ListaFuncionarios.mxml:84]

    Kind regards

    Marie Pierre

    Errors of ItemPending means that the customer of data services will look for an item that has been marked as lazy or load on request.  This should be an event waited and managed by the code of any ACE that touches a collection of table who has lazy elements in it.  Eg the AsyncListView in Flex component automatically manages these errors, as the DataGrig Halo (mx:DataGrid).

    See the documentation on the mistakes of ItemPending here: http://help.adobe.com/en_US/LiveCycleDataServicesES/3.1/Developing/WSc3ff6d0ea77859461172e 0811f00f6f6de - 7ffcUpdate.html #WSc3ff6d0ea77859461172e0811f00f7045b-7f4aUpdate

    Tom

  • How to get the date of deployment for the RT code?

    I'm using LabVIEW 8.5 and MAX 4.4.1f0 and cFP-2110. I want back the date of the deployment. Is it possible to recover the date of deployment for the RT code?

    Thank you

    Martine

    Hi John,.

    You must be able to FTP into your PSC 2110 from a Windows Explorer window and check the date of 'Change' of the startup.rtexe/or-rt/startup folder.

    Aaron P

    National Instruments

    Technical sales engineer

    http://www.NI.com/support

  • What are you doing for the era code 80151012. I spoke with Xbox live support could not fix it.

    What are you doing for the era code 80151012. I spoke with Xbox live support could not fix it.

    What are you doing for the era code 80151012. I spoke with Xbox live support could not fix it.

    Hi, Jason.

    the only way to fix this is to talk to xbox support, if they suggest you to do something you have already been told and they will suggest something else.

    phone numbers:

    * In the United States, to the Canada or Puerto Rico: 1-800-469-9269 or 1-800-4MY-XBOX

    See also this forum account issues:

    forums.Xbox.com/.../12.aspx

    Have you tried using another browser?  Google Chrome, Firefox?

    Contact for chat

    http://support.Xbox.com/en-us/contact-us?XR=footnav

  • Windows cannot check for the error code 80070424 updates.

    I have windows vista premium x 64
    Windows Update stopped working and when I they do it manually it says windows cannot check for the error code 80070424 updates.
    I searched everywhere for an answer... Please help

    ----

  • Problems installing drivers for printer EPSON L110. Error message "Windows could not determine the language to use for the installation: CODE of ERROR: 0x80004005.»

    Original title: trouble installing the drivers for my printer.

    Hello

    I am trying to install an EPSON L110 and eveytime I try to run the CD, it appears this error message.

    Windows could not determine the language to use for the installation: CODE of ERROR: 0x80004005.

    I have windows 7 32 bit OS. What I'm doing. A quick response will be very useful.

    TKS

    Gerard

    Hi, Germain,.

    This problem could occur due to corrupted files. We will try to download and install the latest printer driver on the site of the manufacturer of the printer. Check if it helps.

    http://www.Epson.co.in/epson_india/ink_tank_system_printers/product.page?product_name=Epson_L110&tab_index=4

    See the articles for more information.

    Install a printer

    Find and install printer drivers in Windows 7

    Hope this information helps. Answer the post with an up-to-date issue report to help you further.

  • need of support code for the challenge code

    need of support code for the challenge code

    Since this is an open forum, not Adobe support... you must contact Adobe personnel to help

    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    Don't forget to stay signed with your Adobe ID before accessing the link below

    Creative cloud support (all creative cloud customer service problems)

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

  • After using the iphone app, I get error: "unable to get labels for the script.

    Hello

    I think that this is related to the iphone app for Adobe Story. I added some comments on my script using the application, now when I try and open my script, I get an error; "Unable to get labels for the script.

    I tried Internet Explorer 9 and the desktop application. Both produce the same error.

    The script is completed to 55 pages, so I really don't want to lose...

    Thank you

    Hi Chris,

    We have fixed the problem and shared the document with you back. You can accept the notification, copy the document into a new (to be an owner) and work on it now. Meanwhile, we will also investigate why the problem occurred at all.

    Sorry for the inconvinience.

    Kind regards

    Sunny

  • I'm looking for the Pin Code of the card UMTS Vodafone

    Hello

    I bought Lenovo T400s and was surprised to find a Vodafone SIM inside!

    Now I want to use a seaching for the PIN Code, dose sombody knows where I can find?

    I only find a card with a no. P. and an ICCID Code, it not there no manual or any other information.

    Thanks for the help!

    larsspo, welcome to the forum,

    the PIN code for the previously inserted in Germany SIM cards is 0000.

    Hope this helps

  • I installed the free age of empires online play and its request for a key code? Why is it if it's free?

    Download the age of play free online empires site microsoft Web and its demand for a key code? How is it so if it's free?

    Hi Joe_2011,

    I suggest that ask you this question on the forum of the Age of Empires. Here's the direct link:

    http://Forum.AgeCommunity.com/

    hope this helps

    B Eddie

  • solution for the script error and what it

    I'm not very tech savy, so I need details on how to solve this problem and what he does. I got a script error the reads as follows:

    Online: 52

    Char: 2

    Error: Cannot move the focus to the control because it is invisible, not enabled, or of a type that does not accept focus.

    Code: 0

    URL: file:///C:/Program%20Files/HP/Digital%

    20Imaging/skins/HP1/UL/js/unload_startup.js

    Please be gental with the solution, as I said I'm not a programmer at all. I recently had a virus and my computer "cleaned" and had reinstalled it. So this might help explan the problem. I have also problems with Windows media player.

    When I encountered this problem I have installed software from a disc to a new digital camera.

    Thanks in advance for your help

    Hi famcole1,

    1. do you have an Antivirus installed on the computer software?
    2. what questions do you have with Media Player?

    Disable the script debugger, and then check the issue.

    a. open Internet Explorer, click Tools and then click Internet Options.

    b. in the Internet Options dialog box, click the Advanced tab.

    c. Click to select the script turn off debugging (Internet Explorer) and disable script debugging (other) check boxes, and then click to clear the display a notification of every script error box.

    d. click OK to close the Internet Options dialog box.

    Review the links below, I'm sure that this will help solve your problem better:

    How to fix script errors in Internet Explorer on Windows computers?
    http://support.Microsoft.com/kb/308260

    To keep your computer safe in the future, you can useMicrosoft Security Essentials , which is a free software from Microsoft, which provides coverage in real time to your PC at home that protects against viruses, spy software and other malicious software.

    Kind regards
    Manasa P - Microsoft technical support.

  • MrFixIt of E0434F4D program for the error code does not work because of this error

    When you install the update for Microsoft .NET Framework 1.1 SP1, I get the error E0434F4D code.  MrFixIt program does not work because of this error. I can't run applications because of this corruption. Including most Microsoft applications, as soon as I try to run an application, I get a window saying 'a problem caused blocking the program works correctly. Windows will close the program and notify you if a solution is available. "I recently got this used pc and I looked at the history of the update, and it was apparently a failed update for the past two years. This will also prevent me to update other software and drivers on my computer and prevents even me to install new drivers.

    Hello

    1 have had any changes made on the computer before the show?

    2. when exactly you get the error message?

    3. what happens when you try to run Microsoft Fix it?

    4. What is the full and exact error message?

    I suggest you check the thread with a similar problem, and a fix:

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-windows_update/error-code-e0434f4d-what-to-do-to-fix-this/10ac1da2-25AC-495a-a8a5-6dbe2809f7a0

    If you are having problems with Microsoft Fix it tools, I suggest you to send your request in the Microsoft Fix it forums for assistance.

    Microsoft Fix it Forum

    http://social.Microsoft.com/forums/en/fixitcenter/threads

  • Upgrade for the WLC code questions

    We 6.0.132 (lastest) WCS and our controllers are on 4.2.130, we now to upgrade to deal with sometimes, but don't want to capwap yet.

    Question 1: what is the last exit LWAPP code?

    Question2:Whats the differences between 4.2.207 (support page for cisco said it's the latest version), but it has same releases with ie 6.0 how it works it is very confusing workout a way to upgrade to higher versions

    See you soon

    Hi Tyrone,

    I'm not an expert on the management of versions, but here are some basic in response details

    at your request

    4.2.207 is the last version on the Train of 4.2 and is without doubt an excellent choice

    If you are avoiding CAPWAP for now. You will see in the link below which

    There are several 'simultaneous' for the WLC Trains (and most of the Cisco product). People

    were not big fans of the first Trains 5.x (quite buggy) and was introduced to CAPWAP

    in 5.2 and the attacker thus is why 4.2.207 seems to be a good choice for you

    In the later version or 5.2 controller software version, Cisco lightweight access points use the IETF control and commissioning of Access Points (CAPWAP) standard protocol to communicate between the controller wireless and other points of light access on the network. Versions software controller before 5.2 use the Lightweight of Point access (LWAPP) Protocol to these communications.

    CAPWAP, which is based on LWAPP, is a standard and interoperable protocol that allows a controller manage a collection of wireless access points. CAPWAP is implemented in version 5.2 software controller for these reasons:

    *

    To provide a path for upgrade of Cisco products that use LWAPP generation Cisco products that use CAPWAP
    *

    To manage RFID readers and similar devices
    *

    To allow controllers to interoperate with third party access points in the future

    LWAPP compatible access points can discover and join a CAPWAP controller, and conversion to a controller of CAPWAP is transparent. For example, the process of discovery of controller and firmware download process when using CAPWAP are the same as when you are using LWAPP. The only exception is for layer 2 deployments, which are not supported by CAPWAP.

    You can deploy CAPWAP and LWAPP controllers on the same network. The CAPWAP compatible software allows access points join to be a controller running CAPWAP-LWAPP. The only exception is the Access Point Cisco Aironet 1140 series, which takes in charge only CAPWAP and joined so only controllers that run CAPWAP. For example, 1130 series access point can reach a controller running CAPWAP or LWAPP considering that access of series 1140 point can join only a controller running CAPWAP.

    http://www.Cisco.com/en/us/products/ps6366/products_qanda_item09186a008064a991.shtml

    4.2.207 was released on July 24, 2009 which makes the new second version available on any train.

    http://www.Cisco.com/en/us/products/ps6366/prod_release_notes_list.html

    See you soon!

    Rob

  • The use of .vas and for the script .lst files.

    Hello

    I'm working on a script about tiara for the treatment of the channels (involving Crash module). I saw a few scripts using *.vas and *.lst files to define variables and measures for different cases and all.
    I would like to understand more about the features of said make use in my scripts. I looked on the internet for explanations about the same but do not have something useful.

    It would really help me if there is some links or examples for them.

    Thanks in advance,

    Kind regards
    Fazil Shah.

    Hi faz_mah,

    In this case I recommend using two objects dictionary, TypeDict, and PriceDict, like I showed you above.  Or color you use the object than a dictionary and store and array values (type, price, etc.) with each name of the search.  Enumeration style variables "A" in the *.vas file have a static list of enumeration values and variables for enumeration of type 'G' in the file menu of *.vas their dynamic list of values from the file * .lst - which means that you would have to add rows at the end of the file list to add rows to the table of the above possibilities.  It would be faster and more easy to avoid the hard drive and use a dictionary object or two.

    If you're still not convinced, I can send you an example of creating a variable of type *.vas 'G '.

    Brad Turpin

    Tiara Product Support Engineer
    National Instruments

Maybe you are looking for

  • 10.11.3 patch totally destroyed my M Pro how can I restore.

    10.11.3 patch totally destroyed my MacBook Pro! Apps say they are corrupt and don't start, dock 4 (out of 30) shows only apps with generic icons, all other icons are missing, finder blocks just try to list files and folders, how can I restore. I cann

  • Tecra M9 PTM91E: WLan Intel 4965AGN disconnect every few minutes

    I have a laptop M9, model PTM91E. The wireless connection keeps disconnecting (then again in reconnecting) every few minutes. This happens on all the wireless networks in that I try to connect. Here what I have on my laptop: -. Intel Wireless WiFi Li

  • ReadyNAS NV + v1 does not start

    Hello We ran a ReadyNAS NV + v1 for 2012 and now it won't turn. The unit is programmed to automatically power off during the night and power over the other morning, but this morning it was not on and will not start. After reading the forums a bit, it

  • HP Pavilion Elite HPE-540me: adding an SSD (SATA III) for HP Elite desktop computer. Is this possible?

    Dear Experts... I want to upgrade my computer by adding an SSD as a master drive and move the original 2 TB drive to be a slave. I found several coices of SSDS, but almost all of them are SATA III interface. Is my office supports this interface? as i

  • XP spooler error.

    Problems after update servicepac2.   Used the MS tool kit and still no results.   Started manually in the Services but the kicks after trying to print. Start the service every time and wait so that he can treat each page and come back then, restart t