Calculating total in checkboxes

I am trying to create a pdf form which can calculate the checked boxes predefined values in to a TOTAL field. I tryed to upload the pdf file sample but forum not allowing it. Please refer the screenshot.
Kind regards

Hi,
Assuming the airconditioning checkbox is called AirConditioning and the number of hours called AirConditioningHours and the project system checkbox is called ProjectionSystem.
Try this JavaScript code in the calculation event of the total field;
var total = 0;
if (AirConditioning.rawValue == 1)
    total += AirConditioningHours.rawValue * 4;
if (ProjectionSystem.rawValue == 1)
    total += 15;
this.rawValue = total;
Regards
Bruce

Similar Messages

  • I am using a PC with window 7 and adobe photoshop 12. I have followed Photoshop Elements Help and I still have the same problem. When I try to backup Photoshop 12 it has stop on7% when calculating Total Media size. What can I do?

    I am using a PC with window 7 and adobe photoshop 12. I have followed Photoshop Elements Help and I still have the same problem. When I try to backup Photoshop 12 it has stop on7% when calculating Total Media size. What can I do?

    Hi Prabhuram and falez,
    This issue appears where there are any inconsistencies in your catalog (generally for video files). This issue may be due to offline files, missing files, video scenes. The recommendation here would be to fix these inconsistencies and try again. If that doesn't solve the issue, please follow steps mentioned in email by me.
    ~Surendra

  • Calculating total memory in oracle RAC environment

    I have to calculate total memry in RAC environment.
    For shared and buffer pool I execute show sga.
    For UGA and PGA I execute statement that have two different values.
    This is my two different methot for calculating total memory in oracle RAC environment.
    Why I have very different value in this 2 statements on pga values?
    first stat
    with vs as
    select 'PGA: ' pid
    ,iid
    ,session_pga_memory + session_uga_memory bytes
    from (select inst_id iid
    ,(select ss.value
    from gv$sesstat ss
    where ss.sid = s.sid
    and ss.inst_id = s.inst_id
    and ss.statistic# = 20) session_pga_memory
    ,(select ss.value
    from gv$sesstat ss
    where ss.sid = s.sid
    and ss.inst_id = s.inst_id
    and ss.statistic# = 15) session_uga_memory
    from gv$session s)
    union all
    select 'SGA: ' || name pid
    ,s.inst_id iid
    ,value bytes
    from gv$sga s
    select distinct iid, pid, sum(bytes) over (partition by iid, pid) bytes from vs
    IID PID BYTES
    1 PGA: 196764792 <=====
    1 SGA: Database Buffers 318767104
    1 SGA: Fixed Size 733688
    1 SGA: Redo Buffers 811008
    1 SGA: Variable Size 335544320
    2 PGA: 77159560 <=====
    2 SGA: Database Buffers 318767104
    2 SGA: Fixed Size 733688
    2 SGA: Redo Buffers 811008
    2 SGA: Variable Size 335544320
    second stat
    with vs as
    select 'PGA: ' pid
    ,p.inst_id iid
    ,p.pga_alloc_mem bytes
    from gv$session s
    ,gv$sesstat pcur
    ,gv$process p
    where pcur.statistic# in ( 20 -- = session pga memory
    ,15 -- = session uga memory
    and s.paddr = p.addr
    and pcur.sid = s.sid
    and pcur.INST_ID = s.INST_ID
    and pcur.INST_ID = p.INST_ID
    union all
    select 'SGA: ' || name pid
    ,s.inst_id iid
    ,value bytes
    from gv$sga s
    select distinct iid, pid, sum(bytes) over (partition by iid, pid) bytes from vs
    IID PID BYTES
    1 PGA: 342558636 <=====
    1 SGA: Database Buffers 318767104
    1 SGA: Fixed Size 733688
    1 SGA: Redo Buffers 811008
    1 SGA: Variable Size 335544320
    2 PGA: 186091416 <=====
    2 SGA: Database Buffers 318767104
    2 SGA: Fixed Size 733688
    2 SGA: Redo Buffers 811008
    2 SGA: Variable Size 335544320

    I'm sorry but it is not clear to me.
    - From v$session (1th stmt) I have
    nearly 196MB of PGA mem on instance 1
    and
    nearly 77MB of PGA mem on instance 2
    - From v$process (2th stmt) I have
    nearly 342MB of PGA mem on instance 1
    and
    nearly 186MB of PGA mem on instance 2
    then...
    342+186 - 196+77 = nearly 255MB of memory allocated by oracle processes but free?
    if I want calculate the total thing of the amount of the allocated memory from Oracle...It is more correct 2th statement that query v$process...it is true?

  • Calculating Total Ending Inventory

    Hello BW Gurus,
    I have a reporting question for you. Please reply back as soon as possible as I am nearing the deadline.
    The scenario is as below:
    I need to calculate the Total Ending Inventory and the formula is as below:
    Total Ending Inventory = ‘A’ – ‘B’ – ‘C’ + ‘D’ + Last Period ‘Total Ending Inventory’
    How would I calculate the Last Period ‘Total Ending Inventory’? Total Ending Inventory is just a Calculation and is stored no where in BW.  Since I am running the report for the first time this month, Last period 'Total Ending Inventory' would be Zero for the current month. But current month's Total Ending Inventory would become next month's Last Period Total Ending Inventory. To acheive this, I need to store the Calculated Total Ending Inventory somewhere in BW so that I can pull this information when I am calculating next month's Total Ending Inventory.
    Please let me know the solution and the steps involved as soon as possible.
    Thank you very much in advance.
    Best Regards,
    Rajiv.

    Hi Anil,
    Thanks for your reply. The problem here is Total Ending Inventory is not a KF that is stored in a Cube. It is a calculated Key Figure. When I am calculating Total Ending Inventory I need to add last period's Total Ending Inventory to the calculation. Any idea on how to achieve this?
    Thanks in advance.
    Best REgards,
    Rajiv.

  • Calculated (Read-Only) checkbox  is missing

    Hi,
    I am trying to create a new field via AET.
    i want to create a calculated field but i dont see the Calculated (Read-Only) checkbox in field details while creating.
    Could any one please let me know why is that checkbox not seen? does this has anything to do with version?
    Thanks,
    Rajini A.

    Did you try by enabling the Expert Mode?

  • Calculating Totals for a column in ALV Grid Display

    Hi All,
      I frustrated with the problem of simple calculating total for a column. I wrote the following code:
      LW_CATALOG-TABNAME   = P_GV_STRUCT.
      LW_CATALOG-FIELDNAME = 'ZSUMMS'.
      LW_CATALOG-DO_SUM    = GC_X.
      APPEND LW_CATALOG TO G_FIELDCAT_TAB.
      CLEAR LW_CATALOG.
    It is not working. Could you please suggest the solution?
    It would be great help to me.
    Advanced Thanks,
    Phani Kumar

    Phani,
    Did u try playing around with any of these layout fields ?
    no_sumchoice(1),       " no choice for summing up
    no_totalline(1),       " no total line
    no_subchoice(1),       " no choice for subtotals
    no_subtotals(1),       " no subtotals possible
    no_unit_splitting  " no sep. tot.lines by inh.units
    totals_before_items,   " diplay totals before the items
    totals_only(1),        " show only totals
    totals_text(60) ,      " text for 1st col. in total line
    subtotals_text(60) ,    " text for 1st col. in subtotals
    b. Addtionally... not a solution.. but u know...
    just try the same code iwth reuse_alv_list_display and see if the total gets displayed properly ?

  • Organizer 12 backup stops while calculating Total Media Size

    I have not successfully completed a backup with PS Organizer 12.  It stalls at 16 or 17 % calculating Total Media Size.  My Photo folders are about 180 GB.  I have 287GB free on my data drive.  My Apps drive is a 100GB SSD  with 36GB free.  When Backing up I am given the choice for full backup of the partial.  I chose full.  It does not ask for a folder.  Do not know why.  I transferred my photo folders from my previous PC, then transferred my USER PSE files and all worked fine, all attributes were transferred.  In addition I have optimized my catalog; cleaned the thumbnail CACHE by changing the .dat files to .old and restarting; set my Registry for maximum file size in Organizer to 1.5GB, my largest file size is 1.2GB;
    deleted files from the Catalog larger than 50MB and all files and imported them back in.  The Adobe help has help topics of either Back up your catalog to an external hard drive or Back up your catalog to a CD or DVD (Windows Only).  They do not mention a thing about backing up onto your PC, they do not say you cannot.  Well, oh, I have 8GB RAM and an Intel Core i7.  Suggestions appreciated.

    I identified the problem as to why PSE 12 Organizer was freezing during backup procedures.  The problem of freezing during backup calculation of the file size is caused by the existence of *.MOV file types.  Both my Nikon camera and my Kodak digital cameras save video recordings in *.MOV file formats.  This is likely a rare case, as only users who have Kodak or Nikon Cameras would be affected.
    I had to select, filter, all files with *.MOV formats and delete them from my catalog.  After the catalog was backed up successfully on my hard drive, same drive, different folder, I had to drag and drop the videos to get them back into the catalog.  All tags and locations and people were lost.  I could not search them and import from folder.  So the catalog is backed up successfully.  This is likely a rare case, as only users who have Kodak or Nikon Cameras would be affected.
    Case Solved.
    Elements 12 backup failPhotoshop ElementsProblem with backing up catalog in Elements Organizer 12 - help please@

  • When I try to backup my catlaog the program locks up at "Calculating Total Media Size" 33%?

    When I try to backup my catlaog the program locks up during the "Calculating Total Media Size" process at 33%?

    I have seen this before and it is probably a bad video. There is no great solution. To determine if this is the cause I would remove all your videos from PSE and try to do a backup, if the backup works, one of the videos is bad. It is trial and error to determine which video. When you remove your videos from PSE make a note as to where you have put them so you can reload them..

  • When I try to backup my files from photoshop elements 12 the "calculating total media size" box will only get as far as 46% and then freeze, how can I make it go to 100%

    When I try to backup my files from photoshop elements 12 the "calculating total media size" box will only get as far as 46% and then freeze, how can I make it go to 100%

    hi barbara
    thank you for your response, i appreciate it.  there's definitely nothing wrong with the mouse or trackpad, both work fine in every other application....i can also easily change size dimensions in other programs on my computer so it doesn't seem to be that either.  it seems like there is something weird going on in the way that pse and my mac are interacting with each other, just wish i knew what it was.    thank you again, wish me luck!

  • Redisplay calculated total

    Hi,
    I need some help.
    I have a simple 'query/single selection result' page. You select a row and go to a 2nd page where you can make changes to the details.
    One of the changes you can make is a quantity attribute which is part of an EO/VO. If quantity changes, the total amount is re-calculated and updated on a different VO. Total amount is a transient field of a VO without EO.
    The problem is I can't seem to redisplay this new calculated total when the 'apply' button is pressed even though I've updated the VO with the new value. It still shows the old value and I have to go back to the query page and redisplay to see the new value.
    I've tried the following but nothing is working:
    pageContext.setForwardURLToCurrentPage (playing with retain AM)
    ClearCache
    pageContext.putParameter(totalAmount)
    Any help or ideas is greatly appreciated.

    pageContext.putParameter(name,value) worked. I just had the wrong name.
    Thanks for your time.

  • Acrobat Pro 9: Calculating Based on Checkbox Value

    Hi!
    I am a novice and I purchased Adobe Acrobat Pro 9. Can
    someone help me figure out how to do calculations of checkboxes? I
    am trying to do the following:
    I want to create 2 columns of 10 check boxes each. I want to
    keep a running total of how many are checked in Column 1 and a
    running total of how many are checked TOTAL (in both columns). Now,
    the document has 3 pages, and on each pages - there are 2 columns
    of 10 check boxes. I want the running total to include all boxes
    from the 3 pages.
    I hired a freelancer who did this in LiveCycle (using Acrobat
    Pro 8). It worked on her blank page, but when we copied and pasted
    the check boxes into my document (a pre-made PDF exam I have to use
    for work; my school would not allow me to give it to her to work
    with); the calculations wouldn't work. We went into LiveCycle and
    each time we opened up my document with her calculations, the
    language changed automatically from FormCalc to JavaScript.
    Can anyone give me advice or tell me what to do? (We do have
    two read only boxes that do calulations [total checked in Column 1
    and total checked] so it really should work...)
    Thank you for considering and taking the time out to help!
    Alisa

    Hello,
    I'm sorry I'm not able to address your question. These forums
    are specific to the
    Acrobat.com website and its set of hosted services, and do
    not cover the Acrobat family of desktop products.
    Any questions related to the Acrobat family of desktop
    products would be best suited in the Acrobat User Forums:
    Link to
    Acrobat Forums
    Thanks!
    Michelle

  • Custom calculation script for checkboxs

    Hello,
    Can anyone help me out with custom calculation script for this?  I have two mutually exclusive checkboxes that, when checked, I want to populate data into other text fields.
    If Checkbox1 is checked:
    Company1=Warehouse Alpha
    Address1=1234 Any Street
    City/State/Zip1= Los Angeles, CA 90020
    Contact Name1= Mr. Nice Guy
    Phone Number1= 213-854-8565
    Email1=[email protected]
    If Checkbox2 is checked:
    Company2=Warehouse Beta
    Address2= 5678 Awesome Blvd.
    City/State/Zip2= San Bernardino, CA 96545
    Contact Name2= Mr. Handsome
    Phone Number2= 909-824-8265
    Email2=[email protected]
    Thanks,
    Bryan

    So one has two check boxes and one wants them to be mutually exclusive. Name them the same and change the export value of the field. Try it and observe what happens as you check the different check boxes.
    You have described what happens if either box is checked but what happens when a checked box Is unckecked?
    One can place scripts in many locations. I would use a mouse up action for both the check boxes, use the same script for both check boxes.
    I would assume you are using the following names for the fields to populate:
    Company
    Address
    CityStateZip
    ContactName
    PhoneNumber
    Email
    // Mouse up action for both check boxes;
    // initial value for the fields:
    this.getField("Company"),value = "";
    this.getField("CityStateZip"),value = "";
    this.getField("ContactName"),value = "";
    this.getField("PhoneNumber"),value = "";
    this.getField("Email"),value = "";
    // test for check box value for selected box;
    if(event.value == 1) {
    this.getField("Company"),value = "Warehouse Alpha";
    this.getField("CityStateZip"),value = "1234 Any Street";
    this.getField("ContactName"),value = "Los Angeles, CA 90020";
    this.getField("PhoneNumber"),value = "213-854-8565";
    this.getField("Email"),value = "[email protected]";
    if(event.value == 2) {
    this.getField("Company"),value = "Warehouse Beta";
    this.getField("CityStateZip"),value = "5678 Awesome Blvd.";
    this.getField("ContactName"),value = "San Bernardino, CA 96545";
    this.getField("PhoneNumber"),value = "Mr. Handsome";
    this.getField("Email"),value = "[email protected]";
    // end Mouse up action for both check boxes;

  • My calculation "Total" box adds sum of all text fields whether they are visible or not, do I change

    I have check boxes that show and hide text fields. (Thanks to Gilads Java script). In options I have a default value for each text field.
    My "Total" Field field adds all fields even if they are not checked and visible. Need to have it only include them if they are checked and visible.

    You can't attach forms by email, or any other means, so it didn't come through.
    Since your fields have default values and aren't calculated based on the state of the corresponding check box, you will have to use a custom calculation script for the Total field that can check to see if any of the fields are hidden, and if so, don't include their values in the sum. For example:
    // Custom calculation script
    (function () {
        // Set up an array of field names to include in the total
        var aFields = ["text1", "text2", "text3", text4"];
        // Initialize variables
        var i, f, sum = 0;
        // Loop through the fields an calculate the sum
        for (i = 0; i < aFields.length; i += 1) {
            // Get the current field
            f = getField(aFields[i]);
            // Add the value of the current field to the sum if the field is visible
            if (f.display == display.visible) {
                sum += +f.value;
        // Set this field value to the sum
        event.value = sum;
    You can send me a PM if you want help offline.

  • Calculating Total Hours

    Has anyone had any experience calculating hours for a work schedule in numbers? I would like to figure out how to calculate total hours worked for a week on a work schedule. I am struggling to find the best way to do so. I would like to not have to use military time. What is the best way to add up the total time worked when I'm inputting the time as 7a to 5p (star time and end time in different columns). I need to have the columns formatted for time and date so it can be viewed with ease as well, does anyone know a formula to add up the hours worked each day.

    Hello
    This question was responded so much times that I don't wish to search in the old threads for you.
    Click the "more options" button,
    select the forum dedicated to Numbers
    enter a keyword like "total hours" or Duration which is a word often used in my responses about this question.
    Yvan KOENIG (from FRANCE jeudi 24 janvier 2008 21:39:08)

  • Running calculation totals when adding pages

    http://www.funkylogic.co.uk/equity.pdf
    In a nutshell what I want to achieve is this: a cleint may own several properties, and have different percentage holding on each. Each property has a separate page of questions (the PDF above is that page). The first part of the equation is to calculate up the total equity in the property (TotEquity), and then based on the percentage holding (TotInterest), work out the individuals equity share for that property (TotalB). The form has the option to tell us about another property (addInstance), and we then have a second page with its own calculations and a new TotalB. This TotalB then becomes a running total for all pages added. Please can anyone help??

    Hi,
    Here is a version of the form: https://acrobat.com/#d=b*01ko6g2gn8Jqns9D1Hhg
    It shows how to loop through the instances of Page1. It does not appear to be working correctly (by my eye anyway). I am not convinced of multiplying the two values in the script.
    Hopefully it will give you a direction.
    A couple of things: I would not be inclined to name pages with a capital 'P' (Master pages are 'Page1'), I tend to name design pages as 'page1'. The font you are using is adding to the file size. Something like Myriad Pro is much smaller.
    Niall

Maybe you are looking for

  • I changed internet providers forcing a change for my apple id but now I cant update because old id pops up asking for password which no longer valid

    I have an ipod and had to change my internet provider. because my previous apple id was part of that providers email I had to change my apple id. Since that time I cant update my ipod because it pops up with the old apple id and password which is no

  • Enabling Windows Server 2008 R2 Built-In Administrator Account

    The properties box for my Windows Server 2008 R2 built-in administrator program says the account is disabled.  Even the primary user account has virtually no priveliges.  How can I, with a mere primary user account available at logon, enable the buil

  • Wi-fi difficulty

    When I first started using my Ipod Touch I had no difficulties connecting to my local Wi-fi connection. It then asked me to create my Apple ID, but I kept getting a server error, so I put it off for a bit. Since then, I have not been able to reconnec

  • CF data source timed out

    I have a Win 2008 64  bit server with CF9 32 bit.  I have 2 ODBC socket data sources that were working just fine.  A change of a static IP address of one of the 2 remote networks caused me to change the IP address of the TelemateSC data source. I use

  • Syslog triggered fetch config

    Hi, I have an issue with syslog triggered fetch config feature. The problem is that LMS expects Sub-facility to be a part of the syslog message. I have set the Facility to be SYS and severity 5. Result? Nothing is happening, because none of our devic