How to find an average percentage of 3 fields

I am new to Livecycle DDesigner ES and I would really appreciate the help.  Could someone please tell me how scripts (JavaScript or FormCalc) what follows?

Field 1 (digital) that is the percentage of

Field 2 (digital) a second number

Zone 3 is where the result of the calculation is displayed in percentage (%)

Fields 1 and 2 are input by the user fields.

Thanks for any help!

FormCalc

Form1.Page1.Subform1.percent::calculate - (FormCalc, client)

If (hasValue (form1.page1.subform1.number1) & hasValue (form1.page1.subform1.number2)) then

Form1.Page1.Subform1.Number1/Form1.Page1.Subform1.number2

endif

JavaScript

Form1.Page1.subform2.percent::calculate - (JavaScript, client)

If (form1.page1.subform2.number1.rawValue! = null & form1.page1.subform2.number2.rawValue! = null) {}

this.rawValue = form1.page1.subform2.number1.rawValue/form1.page1.subform2.number2.rawValue;

}

I use display templates, below. You can change them according to your needs.

Number1 and number 2 num {zzzz9.99}

percentage num {zz9.9999}

Steve

Tags: Adobe LiveCycle

Similar Questions

  • How to find the real width of a field (number of characters) for a particular font

    Hello

    Is there a method to find the number of characters that can fit in a field label or a BasicEditField for a particular font.  Font.getAdvance (str) gives the width in pixels.   Based on the width of the screen, I want to calculate the length of the label field number that is, characters that it can take.

    Thank you.

    Well, I did a deeper look at your code. It is a way to walk around a division, true.

    But why not work with integer values?

    int screenWidth = Display.getWidth ();

    int largestCharacterWidth = defaultFont.getAdvance ("W");

    Now you can work with these integers.

    int fieldLength;

    {}

    fieldLength ++;

    } While (filedLength * largestCharacterWidth)<=>

    It would be a little more efficient.

  • How to find the brief description of the field

    Hello

    Do you know what record to store the brief description of the fields? I don't find it.

    Thanks in advance!

    PSDBFLDLABL is the table that contains the field descriptions

    On PC, you can use object field method GetShortLabel .

    Ex:
    Local domain &FIELD;

    & FIELD = GetField (RECORD. MYFIELD);
    & FIELD. Label = & on the GROUND. GetShortLabel ("LABEL1");

    Published by: user9538086 on April 7, 2011 02:14

    Published by: user9538086 on April 7, 2011 02:15

  • How to find a substring of a data field and use it in a Group By expression?

    Hi all

    Please provide me with the syntax where I perform the substring of ITEMNAME database with the starting position 7 field and length of 3.

    I must use this value of substring in a group by clause within a group to another clause.

    Thanks in advance.

    If suppose that your date is 07/05/2015

    use

    -get 2015

    also get this done in the database if the report is large but in small case use this.

    Let us know if you have questions more.

    Thank you

    ~ KKT ~.

  • How to find the last update date, time and user of the file field peoplecode

    How to find the last updated date time fields of peoplecode records?

    Thank you.

    We can check the update date-time using the following query

    SELECT LASTUPDDTTM IN THE PSPCMPROG WHERE OBJECTVALUE1 LIKE "RECNAME" AND OBJECTVALUE2 AS "FIELDNAME".

  • average of k: how to find the data clustred; : or how to assign number t0 each data group

    Hi Member

    I have download the LabVIEW Machine https://decibel.ni.com/content/docs/DOC-19328 learning package

    I want to run the K average algorithm to group the image in a group of two or three or more

    the problem is how to find the result I mean the image of clustred', the image that contain 2 or three threatened value only

    or how aasign a 1 value for all the intesity who

    belong to the cluster a and 255 for data that belongs to group 2

    for the look of the image as binary image?

    a my vi below

    Best regards

    my post before shows how to set the threshold manually using the slider of the graph.

    Here is the version k-means automated help .vi box tools

    Alex

  • It says after effects download now... but there is no bar to download. How can I find out what percentage of its establishment?

    Screen Shot 2016-01-12 at 6.29.51 PM.png

    It says after effects download now... but there is no bar to download. How can I find out what percentage of its establishment?

    You have the required 64-bit computer?

  • How to find the mobile average for perticular time step for the same time series

    Hi all

    I'm new in labview and I have a question. I have a huge text with the value of different pressure of various ports.

    I do the VI in which all first I read the text file and identify the column of perticular port. In this column, there is pressure value 32768.

    Port of Port 102 times Num Port 101 103... Port 532

    0         1

    2 0.001

    .          .

    .          .

    50 32768

    And reading this all takes 50 sec and I divide this reading in 4.5 sec... There are in all 4.5 sec 2969 values...

    Now, please check the attached VI... I am able to find the average value in step 12 2969 value time...

    Now, I want to do is to find the average value of 2969 (2970 to 5938) values with time of 12 steps and so on up to 32768. It is 11 times in the series...

    So anyone can change my VI?

    Thank you

    Hello

    Thank you very much. It's the perfect VI that suits my needs.

    Thank you again... Have a great day ahead.

  • Find the average value of a buffer

    Hello

    In my VI Panel, I have a digital control, a button and a digital display.

    When the user, enter a number in numerical order and press the button, the digital display should show the average value of all the past 5 values entered in the digital control, for example:

    1st entry: 10-online average = 10 (as sum = 10)

    2nd type: 0-online average = 5 (as sum = 10 + 0 = 10)

    3rd enter: 5-online average = 5 (you get the idea...)

    4 enter: 1-average online = 4

    5 enter: 14-online medium = 6

    6 enter: 2-online average = 4.4 (sum = 0 + 5 + 1 + 14 + 2 = 22, because the 1st value is thrown)

    How to write this VI?

    Thank you!!

    You can also use arrays to hold the data in a registry change and find the average value of the last five items.

    Good luck

  • How to calculate the average of the 1 d array?

    Could someone please help me, how can I calculate average of the 1 d array? For example, if the table 1 d - is [2, 3], I would get average = 2.5. Thank you very much!

    Use the average function. You can use the search or the quick menu to look for where you don't know where to find.

    Norbert

  • How to find the size of the virtual server?

    Hello

    We intend to pass our applications 4 virtual servers has 2 physical servers. In this process, we need to identify the size of the current virtual servers to use as a starting point to configure or add the size in physical server. can anyone provide information on whats stats to be noticed and how to find the size of the current virtual servers?

    Thank you

    Hi Sekhar, there.

    in general, it is a fairly complex task if you want to size the new platform correctly, i.e. not to oversize it and have very low use below, i.e. spend too much on equipment.

    In fact, it's the first thing to consider the level of use of the new platform. Most likely your organization (HW and infrastructure) has targets to a minimum. optimal and maximum usage levels.

    In the case where you do not have this as a starting point, and then you continue with load average and the current peak (CPU, RAM, NW). To these basic lines, you can use the statistics of WLS Admin Console, where the use of CPU and memory statistics are presented since the server was last started. For more detailed statistics, you can use WLDF to capture measures key at regular intervals, and then base your analysis of these data.

    Finally and above all, the size of FS, but I've seen some comments above related to the size of the FS.

    HTH,

    A.

  • How to check the "average time WAITED.

    I find huge "log file sync" v$ session events.
    and I want to check the «average time waited to review»
    but where and how to find the total "wait time" event? (time waited way = time / waiting time)

    Query V$ SYSTEM_EVENT where event = "synchronize file journal." However, this gives you cumulative statistics (TIME_WAITED, TIME_WAITED_MICRO, TOTAL_WAITS, AVERAGE_WAIT) since the Instance was started.

    For hourly statistics, look at the AWR reports, if you Pack diagnosis.

    (Or write your own scripts to retrieve v $ SYSTEM_EVENT and compare the numbers every hour)

  • What is an xml file and how to find a missing one?

    What is an xml file? How to find one that is missing?

    In short, an XML file is a file structured data - in other words, it stores the data in a way that is easy for a computer scan and read, but it is also easy(-ish) for a human to read, too.

    Generally, XML can be used for configuration or preference data, or for the exchange of data between applications, but there are a multitude of possibilities.

    This means that, with regard to the resolution of your problem is concerned, that was no help. The whole point of XML is that it is easy for any application store some data he needs, so you need to be more specific on what application you are using and what XML file it is looking for. Only then can someone (possibly) steer you in the right direction.

  • IOS 10 - new map app - how to find written directions

    IOS 10 - new map app - how to find guidelines for travel written car =

    Hello jsalm,

    Thank you for reaching out to the Community Support from Apple. I would be happy to help you find the instructions written in the Maps app.  Once you enter your destination and started browsing, slide up from the bottom of the screen and select "Details". You will find a list of indications turn-by-turn for your itinerary.

    If you have problems, let the community know. We are all here to help.

    Best regards

  • says that there is an update of firmware available for my 3 t time capsule. I get "an error occurred when downloading". How to find the problem?

    I said that there is an update of the firmware available for my 3 t time capsule. I get the message "an error occurred when downloading". How to find the problem? I have elcapitan 10.11.6 and capsule version 7.7.3

    Try temporarily, connect your MacBook Pro to your Time Capsule using an Ethernet connection... If not already, then try downloading the firmware again.

Maybe you are looking for

  • I can't open new tabs by clicking on the sign more, or in a new tab file

    Whereas previously it was possible to open a new tab by clicking on the "plus sign" to the right of the last open tab, or by clicking on 'file' and 'new tab', none of these options work. New tabs will open a new Web page, but a 'white' will not appea

  • Is my 2011 macbook pro the neck of the bottle in my LAN slow transfer speed?

    Hello I have a macbook pro 2011 and I recently bought a buffalo LS 520 NAS, but when you try to transfer data through my wifi network that speeds are painfully slowly. WiFi area speeds as follows: Upload: 0,6906480 MB/s DOWNLOAD: 6,2196480 Mbit/s And

  • The mouse stop working after the installation of updates

    Have Windows Vista on laptop. Important Windows Update installed today. Have not installed the optional updates. Restarted the computer. The mouse no longer works. Control Panel - mouse shows only Synaptics touchpad installed.  How to operate the mou

  • CD/DVD not working not not in windows

    After you have installed the dates, I've lost my CD/DVD drive under windows use. I chkd in the BIOS and it has been detected by the system, but when I rebooted back to windows it was not seen in the device or the System Manager. I even restored a few

  • HTMLLoader test

    I ran the code below as an AIR, using FlashBuilder 4 application 4.1 the Flex SDK with the AIR 2.5 kit. Then, I created a new project with BB SDK.9 actionscript and created a debug configuration, using the address IP of PlayBook simulator.  The code