Simple calculation - no shown result

Hello

I'm a complete newbie to Livecycle Designer and I have no idea on JavaScript or FormCalc... Good start, eh? !

What I would do:

I am currently working on a form where I add two values simple Cell1 and Cell2 to my form. (I thought even if I could handle it... it turns out I can't!)

My problem:

I had a glance through the pages of the forum as well as YouTube videos on how to do this. Unfortunately, the result field never actually displays a result of calculation...

That's what I entered the script editor (by selecting 'Calculate' and FormCalc) based on youtube videos.

topmostSubform.Main.Top.Table3.Row2.Cell3::calculate - (FormCalc, client)

Cell3 = Cell1 and Cell2

I double checked that all fields are set to Numeric, checked value parameters, as well as the parameters of the cell, but I don't know where I'm wrong and why the result field displays no value at all.

I tried to add the script in the result cell, in the subform, the cell is currently sitting, tried to add at the end of each cell name .rawValue... Nothing works.

I tried to create a completely new document, thinking maybe something in my form is bad, but always in the new blank form with only three cells inside, there is no event calculation.

I'm maybe just lack a bit in the script or incorrectly the cell?

I would be very grateful for any help that you could give me.

Thank you

Susanne

I change the script to do this and it worked:

But you said that you already tried? So I wonder which version of Adobe Reader / Acrobat you use to preview your form.

Tags: Adobe LiveCycle

Similar Questions

  • Simple calculations is not not so simple (Fahrenheit to Celsius)

    CS3

    I don't often get to the math class but have tried to refresh some practice lately and I'm lost.

    I did a small calculator, but he does not have the correct value. My Celsius to Fahrenheit works fine but not the opposite. Flash I want to just give me a negative value.

    To complicate further although it should not be, that is I have an input field where to enter value then I want to be converted. The text is num1 here is a short part of the code:

    Celsius to Fahrenheit that works very well: (entry 1) - 32 5;

    Fahrenheit to Celsius, that is not the math right: input (1)-32 * 5/9;

    I read a few posts, but it took hours and the forums are left and right expire this morning. I read that I should put it as follows: ((100-32) * 5/9). That works very well but for 100 or a specific value is not of any value, and I can't seem to read my string in this format ((input1-32) * 5/9)

    I tried parseInt, I convert toString etc, but now my code is 10 x more time that I started just get this simple calculation to work and nothing so far.

    Also what I consider to be the biggest problem, is where in the help he learns one they must follow the ' ((100-32) * 5/9) "rule? I have read everything I can find in the help all morning and not once saw something like that. It works of course, but obviously I'm looking in the wrong place to begin with or search Help index dislikes me and in both cases not being not able to find what I'm looking for is a problem that any issue could cause never.

    This

    fcRes is parseInt (input1) - 32 * 5/9;.

    stll is incorrect. It is supposed to be:

    fcRes = (int (input1) - 32) * 5/9;

    Calculations in parentheses are done first. If there is no media - multiplication and subtraction are done first, and then the result is subtracted from the input numeric value 1.

  • Basic Help with Flash v10 (creating a simple calculator)

    I have Adobe CS4 Pro with Flash v10.  I am trying to create a minimal and simple calculator that adds 2 numbers.  I followed the tutorial at http://layersmagazine.com/flash-design-calculator.html.  Initially, I was unable to name the variables to all objects, but got this cleared up by selecting ActionScript 2.0 (was set to 3.0).  At this point, the calculator accepts two numbers, but when I select the button 'Add' the associated code, as shown in the tutorial, nothing happens.  Does anyone have a suggestion as to what I might hurt?  Thank you.

    Remove all the variables in the textfield of the properties panel.  If you have also done the same for the total textfield instance name there, use:

    {We (Release)}

    total.set_Text = Number (firstnumber.text) + Number (secondnumber.text);

    }

  • Simple calculations

    It's been a while since I've fiddled with flash. I'm doing some very simple calculations, and I completely lost my senses.

    I have 2 input text boxes... Value1 and value2

    I got a call from the dynamic area 'RESULT' to display the result of: value1 + value2

    It is very simplified for what I need to do- but what is the solution?

    Thank you

    If v1 and v2 are instance names, use v1.text and v2.text instead of v1 and v2 inside the Number() function. If v1 and v2 are variable names make you or your active html textfields and they haven't checked auto kern.

  • How to create a simple calculated measure?

    Hello

    I'm having problems creating a very simple calculated measure within the OBIEE administrator. Let's say I have a dimension 'product' with the 'product price' attribute and a measure "number of sales. I'm trying to define in the layer of "Business Model" of the measure calculated 'total sales. To do this I have defined as as a logical column with the phrase 'product price' * 'number of sales.

    But OBIEE isn't calculating what I expect, this makes a Cartesian product of the products and the grand total of the sales, which makes no sense. To relieve that I tried to define the measure as partners at the product level, then I correct the calculations but sales per product are not added together in a total.

    In any case it seems to be a very simple thing to do, but I was not able to find any documentation about it; 'Help' internal documentation is extremely limited. Is there another source of documentation that I don't know?

    Thanks for your help,
    Chris

    Calculate the physical level itself at the logical level

    I would be more careful with possible calculations on the physical columns since the results are different
    But in this case, it seems a good approach,

    -> chris3110.

    If you want to try with physical columns, you can find detailed instructions in the tutorial (http://download.oracle.com/docs/cd/E10352_01/doc/bi.1013/e10312/repository.htm), Section 4.6.3 OBI 'Create a calculation measure using physical columns'

    It will be useful,

  • Simple calculation

    I want to do a simple calculation. A body of numbers (quantity), multiplied by a specific amount for a total cost.

    Is there a Java Script for that?

    Yes. For example:

    Event.Value = Number (this.getField("Quantity").value) * 5;

  • Rookie Flash needs help with error messages when you perform a simple calculator in AS3.

    I'm doing a simple calculator I followed this guide:

    http://www.YouTube.com/watch?v=5k3h37YKZJI

    It's my code.

    var Hnum:String;

    var PCnum:String;

    var calc:Number = 25;

    var Total: String;

    NUM1. Restrict = "0-9";

    num2. Restrict = "0-9";

    Est_btn.addEventListener (MouseEvent.Click, Calculate);

    function calculate(event:MouseEvent):void {}

    Hnum = num1.txt;

    PCnum = num2.txt;

    Total = parseInt (Hnum) * calc;

    Total.toString ();

    Total_txt. Text = String (Total);

    }

    I get 3 errors:

    Scene 1, Layer 'Actions', frame 1, line 141067: constraint implied a value of type flash.text:TextField to a type unrelated to a String.

    Scene 1, Layer 'Actions', frame 1, line 151067: constraint implied a value of type flash.text:TextField to a type unrelated to a String.

    Scene 1, Layer 'Actions', frame 1, line 161067: constraint implied a value of digital type to type String unrelated.

    I have two areas named num1 and num2 and box input text and dynamic text named Total_txt.

    This should be so simple, I don't really know what im doing wrong?

    Any help would be really appreciated.

    MrB

    If you look at the tutorial, I think you will see that you are using "txt" where "text" is needed.  'text' is a property of a textfield, identify the text that contains the textfield object.  I don't know if you're doing something where the num1 object contains another object named txt, but I think that my first sentence catches the problem.

  • simple calculation in SS8

    I'm putting a simple calculation with an exception if

    if(Field2>field3) then field1 =(Field3-Field2)

    I can't get this fundamental thing to work and I'm not a programmer.

    Thanks for any help!

    If they are digital fields that the following FormCalc applies to field1.

    Form1.Page1.field1::calculate - (FormCalc, client)

    If (Field2 > field3) then

    field3 - Field2

    endif

    Steve
  • simple calculation in a form

    I'm trying to creat a calculation simple javascript in LiveCycle and I'm completely lost.

    I have 3 numeric fields (A1, A2, A3) and a calculated field. When the input of users numbers in one of the first three fields, I want the calculated field ('cost') to automatically populate. I tried to restore the javascript code to reading the other posts, but I can't get my form to deal with the calculation. (The field is left blank.) Any help would be greatly appreciated.

    Here is the calculation I'm doing:

    (A1/A2) * A3

    The event calculate of the field that will contain the result of this calculation, you add this line of javascript code:

    this.rawValue = (A1.rawValue/A2.rawValue) * A3.rawValue;

    Hope that helps

    Paul

  • Need help with a simple calculation.

    I will apologize to the front. I have no knowledge of writing Javascripts. I can use them if someone writes to me, but that's all. I created a simple form with money dealing. I have boxes of different text for the user to enter a number based on what type of coin it is.Currency.jpg

    In the left column, they will enter a number. I would like for the right column counting from that. However, the quantity of money (ie. 100, 50, 20, etc.) is not a text field. It is simply the text entered in another program. I'm looking for is a way to do this without having to do the amounts in currency a text field. Something along the lines of X * 100 is.

    If you can give any help or suggestion, I'd be very happy.

    Thank you.

    You will have to hard code the quantity of money in the script.

    In the first line, create 2 text, Text1 and Text2 fields. Use what the calculation script personalized to Text2:

    If (this.getField ("Text1") ".value! == ' ') {}
    This.getField("Text1").value = Event.Value * 100;
    }

    Clears Text2 if nothing is in Text1
    else event.value = «»

    The second pair of text fields would be "50" instead of "100" in line 2, etc.

  • dbms_sqlhash and online md5 calculator return different results

    Does anyone know how dbms_sqlhash.gethash () works?
    I get the same result for string 123456.
    Md5 (http://md5-hash-online.waraxe.us/) online calculator returns e10adc3949ba59abbe56e057f20f883e.
    DBMS_SQLHASH. GETHASH() returns 7E8FEB2276322ECDDD4423B649DFD4D9.
    --the second parameter value 2 means MD5 hash.
    select DBMS_SQLHASH.GETHASH('select 123456 from dual',2) from dual;

    Hello
    >
    I get the same result for string 123456.
    Md5 (http://md5-hash-online.waraxe.us/) online calculator returns e10adc3949ba59abbe56e057f20f883e.
    DBMS_SQLHASH. GETHASH() returns 7E8FEB2276322ECDDD4423B649DFD4D9.

    --the second parameter value 2 means MD5 hash.
    select DBMS_SQLHASH.GETHASH('select 123456 from dual',2) from dual;
    

    DBMS_SQLHASH. GETHASH returns the hash of the SQL statement in the first parameter Select 123456 of double, not 123456

    To get the MD5 hash of the 123456 you should use DBMS_OBFUSCATION_TOOLKIT or DBMS_CRYPTO packages. The latest is preferable and more recent.

    Kind regards

  • Hours additional very Simple calculation

    I have no experience with JavaScript and need help for a calculation of a simple timesheet of Acrobat.

    I have a form of timesheet which adds and fills an area of "Total hours", and I would like to automatically fill a box of "Normal hours" and a box of "Overtime" (based on a standard 40-hour week).

    ex: If "Total hours" = 55, "Regular hours" should read 40, "Overtime" is to be read at 15.

    ex: If "Total hours" = 30, "Regular hours" should read 30, "Overtime" should read 0.

    Use this code as the code for calculating custom regular hours:

    = Event.Value + this.getField ("Total Hours") .value > 40? 40: + this.getField ("Total Hours") .value;

    Use this code as the code for the custom calculation of overtime:

    = Event.Value + this.getField ("Total Hours") .value > 40? (+ this.getField ("Total Hours") .value - 40): 0;

  • VERY simple calculation - "Script Failed' unknown value

    Hello people. I'm not new to LCD (I used this product for a period of time to create graphic documents), how ever I am new to use the LCD screen to create documents that make mathematical calculations... This is exactly why I'm having this problem. Sorry grrrrrrr...

    I have a simple document with a few tables/rows. Each line has a value simple condition (if something is checked there is a numeric value), it works fine. What I try to do is just the total value of all the rows in each table, and that the bombs (errors) with "Script Failed (language is formcalc;» context is..) then identifies all the field names as 'unknown '. I'm tempted to test a little differently and I still get this error, in fact I can't get this form to just add to the simple numbers without a similar error.

    Novel I don't know it's me - has been less-than-smart, I didn't belive there is an error with the LCD itself.

    Any direction would be most appreciated. Thank you very much!

    http://www.chnwi.info/test/wellness_scorecard_final.PDF

    Two things:

    1. the sum command has capital S Sum() not sum() is

    (2. There is no space between the sum and the)

    3. When you reference other fields, they are in a different subform that the total amount, so you have to way to the fields. The best way to do this is in the Script Editor, the place the cursor where you want the reference to appear, then hold ctrl and move the cursor over the desired field. The cursor turns into a version V. the mouse when you're on the ground and the correct reference will be written in the script editor.

    4. you can not split the order through two lines... .in all on a single line.

    I have included my modified version. I only did 1 table.

    Paul

  • How can I perform this simple calculation?

    Hi all

    I rarely dabble in Acrobat script and Javascript is completely foreign to me, so I'd appreciate any help on this.

    I have a PDF form to order Christmas cards. I have already created fields so that people can enter a quantity for each card, and a field called "TotalPacks" which summarizes these fields.

    I need now to create calculations in two areas:

    1 CardCosts

    Each pack 4 costs, so all I have to do is to create a Javascript script that automatically gives the answer to this simple equation:

    TotalPacks x 4 =.

    2 PostageCosts

    I need a separate field to see the shipping cost, along these lines:

    IF TotalPacks = 1-6, PostageCosts = 2.5

    IF TotalPacks = 7-12, PostageCosts = 4.5

    IF TotalPacks = 13 >, PostageCosts = 6.5

    How can I automatically do this in Javascript? I know a language exist to achieve this, but is not a language I know, so I'm completely lost. Any help or advice would be very welcome. Thank you all.
    Best wishes
    BBT

    When you create a text field, you can assign the number of properties for the field, including the format and calculation. I if I had to design the form fields for each item of ' description # ', ' packs # "," cost # "," TotalCost # "and fields of totals for 'totalPacks', 'total', 'port', and 'totalDue '. The "#" should be replaced by the line number of detail.

    The description will have a format of none, the 'packaging' and 'total Packs' as a 'number' and 0 decimals. For the "TotalCost', 'total', 'port' and 'totalDue' use a format of 'number with 2 decimal places, the monetary unit is optional.

    For the calculation for the TotalCost ' # ', can be used is the "product of" and select the "packs #" and "cost #" for the line input. The "sub-total" field will be ' the sum of ' and select all fields ' TotalCost # The 'totalPacks' will be ' the sum of "all fields" packs # Postage will require a custom calculation script:

    calculate the form of shipping costs higher in the smaller number of packs
    If (this.getField('totalPacks').value > 12) {}
    Event.Value = 6.5
    }
    If (this.getField('totalPacks').value< 13)="">
    Event.Value = 4.5
    }
    If (this.getField('totalPacks').value< 7)="">
    Event.value = 2.5;
    }
    If (this.getField('totalPacks').value< 1)="">
    Event.Value = 0;
    }

    The totalDue ' "is" the sum of ""subTotal","port"and"totalDue ".

  • Simple calculation problem

    minutes = hours_txt.text * 60 + minutes_txt.text;

    If I enter text in hours_txt of 5 and 10 minutes_txt, why that is the result of the calculation is 30010 no 310?

    Flash is concatenate a string, because one of the operands is a string, and + is a valid string operator.

    If you want a number try this:

    minutes = hours_txt.text * 60 + Number (minutes_txt.text).

    or

    minutes = Number (hours_txt.text) * 60 + Number (minutes_txt.text).

Maybe you are looking for

  • Restore the system to the original settings

    I'm trying to restore my computer to original settings to overcome a Trojan horse that has hijacked my Internet browser. When I use the restore option, it only allows me to come back in 3 months and then tells me that the parameters are then the same

  • I can't open the photos

    Recently, I was not able to open all the images without having this error message: 'Adobe Reader cannot open 103_1052.jpg, because it is not a supported file type or because the file has been damaged (for example, it was sent as an attachment & has n

  • Use of OpenCV project examples

    Hi all, I am interested in using OpenCV in my project, I also downloaded from https://github.com/blackberry/OpenCV. But since I have no experience before using, I would like to know if anyone has a sample project that uses OpenCV... Thankss

  • Oracle 11g memory usage request

    Hi guys,.Version: 11.0.2.4Platform: HP - UXI have a server with 10 GB physical memory game and Memory_Target and Memory_Max to 2g.Understand that this memory_target consists of SGA and PGA.With memory_target set to 2 GB, Oracle may use the > 2 GB?In

  • I am unable to download photoshop trial cc

    I keep getting disconnected * somehow * representatives and its starts to really bother me. I NEED HELP. I installed creative cloud and tried to get photoshop and it keeps pausing for a long period of time at 42%, finishing and then telling me that h