Help with table calculations

Hi, everyone, I am working on a form that has been previously done in Excel. I wanted to redo this in a pdf that is expandable to fill so that I can add the accessibiltiy information to the form. The first link is to the static pdf converted from Excel here:

https://Acrobat.com/#d=lIGyn * lpuWSQ-Qzkklml6w

The second link is what my brain tense has recreated form. I don't know there's probably a better way that I chose and I am open to any suggestion. But I can't get the table altogether.

In the first table, all Calc works properly, IE 11, 12, 13, 14 and 14 total is displayed in 15. but I need 17 to show the amount after discount (#16) is deducted. Looks like something simple would do the trick, as Subtotal - Discount. It does not work.

Column 19 should in total in the footer next to 21 line. This isn't. And the column 23 should total in space #24. I tried for hours to come both with the magic script to get this form to work but... now, I decided to crawl for help.

https://Acrobat.com/#d=mzovRUkKit7JnPVebPKgZw

Hello

Here is your form you: https://acrobat.com/#d=a06D-SL7SK58ZulXCKNSuw. Please note that all scripts are FormCalc, we use the sum function and the wildcard character. Any of these will work in JavaScript.

Take a look at this post on how to reference objects, in particular the deomonstration of Ctrl + click:

http://www.assuredynamics.com/index.php/2011/05/som-expressions/

Also with buttons with linear gradient I would change the behavior of click to reverse to the outline or None. It will be a little easier on the eyes. I changed the two buttons Add. I also think that you found problems of readability with the contrast between the background of the button and the black legend. I recommend reading this post, which presents an approach for primary buttons (like the lines to add) and the secondary buttons (as delete lines):

http://www.assuredynamics.com/index.php/2010/12/buttons/.

Maybe this discussion on the colors:

http://www.assuredynamics.com/index.php/2011/02/any-colour-as-long-as-its-black/

Hope that helps,

Niall

Tags: Adobe LiveCycle

Similar Questions

  • Need help with tables

    Hi, I'm trying to do something in flash, but since I'm a beginner I can't do it alone.

    If the thing is, I'm trying to move the mouse and check how many pixels I "walked" by comparing the positions of each image, my idea did with tables, but I don't really know how to do it. Could someone help me? Or could make a simple .fla where I can learn?

    Thank you!

    I know that you'll probably have more questions, but maybe with a bit of play you will be able to start to discover things yourself.  Here are some basics on the tables...  To create a table, you must declare it...

    var coordinatesArray = new Array();

    and to add values to it, you can use the push() method, which will add what you indicate at the end of the table.

    corrdinatesArray.push (something);

    You should look to the top of the Array class in Flash AS2 support documents to see all the properties and methods that can be used with a table.

    This is where it will get a little more complicated that you were intending probably because you said you wanted to store the coordinates.  There are two contact information related to the position of the mouse, _xmouse and _ymouse.  So if you want to store, it is probably best done as a whole.

    Flash has a special class for the coordinates called the Point class.  You should read about this as well because it includes methods and properties that can be useful for what you say you want to do, for example to determine the distance between two points.

    So, to add a new set of points in the table, you can use...

    coordinatesArray.push (new Point (_xmouse, _ymouse));

    but to make use of the Point class, you must import it into the file.

    Here's a bit of code that you must experiment and try to understand what is happening.  Just open a new file and place this code in the timeline panel.  Then run the file and start clicking anywhere around the stage... try to see what each line is right for you...

    to import flash.geom.Point;

    var coordinatesArray:Array = new Array();

    this.onMouseDown = function() {}
    coordinatesArray.push (new Point (_xmouse, _ymouse));
    for (i = 0; i
    trace ("x:" + coordinatesArray [i] .x + "y:" + coordinatesArray [i] there);
    }
    trace("");
    }

  • help with table in spreadsheet string

    Hello

    I need assistance to format my 2D in a string table.

    I have a 2D DBL like this chart:

    and I want it in a format string like this "0.12 0, 1 0.34, 2 0.11.

    Line 0 pass 0 0 Col 1 Row line 1 Col 0 line 1 Col 1 line 2, column 0 line 2 Col 1... and so on

    Is this feasible with 'Table to a spreadsheet string' function or do I have to use a loop for format in this way?

    Thank you

    Ritesh

    Here are 2 ways to do it without loop.

    Ben64

    EDIT: just realized, you want a comma to separate lines, and replace the tab with a comma in solution 1. (2 will not work in this case)

  • Help with automatic calculation field


    I'm doing a form to include an automatic calculation for feet cubes (Lxwxh/1728).

    Even if this is possible in the simplified field notation I need to automatically round up for and decimal point. I tried to use the custom calculation script, but I have no experience with java.

    Event.Value = Math.ceil (this.getField("LENGTHRow1").value * this .getField ("WIDTHRow1") .value * this 1728/d("HEIGHTRow1")) .getFiel;

    It's like I had with Googling but I believe that there is some sort of error with the calculation. I would be very happy if someone can show me what should be the script.

    You are missing the part 'value' after the second getField command.

  • Need help with this calculation

    Hi members,

    Im trying to do some logical columns for calculations. It is a very simple calculation, but I can't seem to make it work in the repository.
    The data upon which I make eyes of calculation as follows.

    Issue Nr. | Question | Meet Nr. | Response | Answers (number of responses)
    1. | Job satisfaction | 1. | Very good | 8
    1. | Job satisfaction | 2 | Good | 2
    1. | Job satisfaction | 3 | Bad | 5
    1. | Job satisfaction | 4 | Very bad. 0

    It is an example of the data. Now, I want to make a logical column to calculate the 'happiness factor '. The formula looks like:

    (Very good + good) / (very good + good + good + bad) * 100 = happiness

    So it would be 10 / 15 * 100 = 66.66.

    Very simple, but I have no idea on how to accomplish this formula in the repository. What I was aiming for in my head, it was something like:

    Select the answers where [answer] Nr. (3,4) / select responses where [answer]. Nr in (1,2) * 100 = :)


    Does anyone know how to do this in the repositroy? It would be highly appreciated.

    Erik.

    Hello

    This happens when we don't know all the facts and we create our scenarios and responses only what we know...

    Now you can do if you do not use 'no opinion' or 'Empty response' in our 'answers' but again to tuition assistance box...

    'All answers worth calculation' =
    case when answer in ('list of what answers I want to aggregate', ((Very) Happy... (Very) Unhappy))
           then 'my new All answers'
           else 'answers I need to ignore'
    end
    

    and our dimmnesion should look like:

    'Type of survey' -> 'Question' -> 'All answers worth calculation' -> Happiness -> Answer
    

    in this case the levels should be no to the 'Question' but to our new "answers a calculation value..."

    So, for an issue with 21 responses it is only 6 entries ((very) happy, (very) unfortunate, Blank, do not know)
    A separate account solves your problem...

    In addition, in your last post I don't understand how you can sum UP non-numerical data (Happy/headaches)
    No aggregate data not digital (Happy/headaches)
    you aggregate your fact group by happiness(Happy/Upset)

    sum ('Table'.) ("' #Answers" by BOX WHEN in Answer (' very good ',' good ') THEN ELSE 'Evils' END 'Happy' *) *.

    I think you've got the ideea of how play with several groups on the same Assembly and how to manipulate BI...
    All you have to do is to play with your data to add or exclude what you need
    If the data is not there you want you allways can create a view in the database or in physical layer so it can help you more.
    On another thing... There is a way to filter data at the logical level at the source of the logical table, the content tab, where clause. Don't say you use here, just give it a shot

    Best regards and fun of it
    Nicolae

  • Need help with table 2D

    Hi all

    I work with a 2D array that stores numerical values. Let me explain my problem with an example.

    Consider a 2D table as shown in the picture (input.png) attached. elements of the 2nd row are already present

    in the 1st row. How can I get a new 2d array in which the rows, which already are one subset of another

    rank, are not present, that is, each line has unique elements only. (output.png)

    Thank you very much for the help.

    Concerning

    Aveo


  • need a little help with time calculation

    Hello

    I tried to implement oauth2 and youtube api. I can connect and can recover the access_token and other oauth required as expires_in json values.

    What I'm trying to do is drive if my access token is valid or not before making another call to their api - youtube gives a value - expires_in that normally contains 3600, which I suppose is seconds. I'm trying to add this time now using clock_gettime(), but I don't get correct values for my calculation - nowTime + expiresInt.

    Anyone can point out the problem with my code please? It could be a bad way to do it, but I thought that I spent a few hours on this subject before asking for help.

    Thank you.

    token = c.value("access_token").toString().toStdString();
        refreshtoken = c.value("refresh_token").toString().toStdString();
        saveValueFor("access_token", QString::fromStdString(token));
        string expires = c.value("expires_in").toString().toStdString();
        saveValueFor("refresh_token", QString::fromStdString(refreshtoken));
        struct timespec* start;
        clock_gettime(CLOCK_REALTIME, start);
        int nowTime = start->tv_sec;
        std::stringstream str(expires);
        int expiresInt;
        str >> expiresInt;
        nowTime += expiresInt;
        stringstream nowTimeString;//create a stringstream
        nowTimeString << nowTime;//add number to the stream
    

    Now you install milliseconds and seconds.

  • help with tables nested plsql

    Hi all
     DECLARE
       TYPE ty_valid_prfx_sfx_list_nt IS TABLE OF VARCHAR2 (3);
    
       t_vld_prx_sfx_list ty_valid_prfx_sfx_list_nt
             := ty_valid_prfx_sfx_list_nt ('JR',
                                           'SR',
                                           'I',
                                           'II',
                                           'III',
                                           'IV',
                                           'V',
                                           'RN',
                                           'MD',
                                           'MR',
                                           'MS',
                                           'DR',
                                           'MRS',
                                           'PHD',
                                           'REV',
                                           'ESQ') ;
       v_index      NUMBER;
       v_curr_val   VARCHAR2 (10);
       v_prev_val   VARCHAR2 (10);
       v_next_val   VARCHAR2 (10);
    BEGIN
       v_index := t_vld_prx_sfx_list.FIRST;
    
       WHILE v_index IS NOT NULL
       LOOP
          v_curr_val := t_vld_prx_sfx_list (v_index);
          v_prev_val := t_vld_prx_sfx_list.PRIOR (v_index);
          v_next_val := t_vld_prx_sfx_list.NEXT (v_index);
          DBMS_OUTPUT.put_line ('v_prev_val = ' || v_prev_val);
          DBMS_OUTPUT.put_line ('v_curr_val   = ' || v_curr_val);
    
          DBMS_OUTPUT.put_line ('v_next_val = ' || v_prev_val);
          --DBMS_OUTPUT.put_line (t_vld_prx_sfx_list (v_index));
          v_index := t_vld_prx_sfx_list.NEXT (v_index);
       END LOOP;
    END;
    Output:

    v_prev_val =
    v_curr_val = JR
    v_next_val =
    v_prev_val = 1
    v_curr_val = SR
    v_next_val = 1
    v_prev_val = 2
    v_curr_val = I have
    v_next_val = 2
    v_prev_val = 3
    v_curr_val = II
    v_next_val = 3
    v_prev_val = 4
    v_curr_val = III
    v_next_val = 4
    v_prev_val = 5
    v_curr_val = IV
    v_next_val = 5
    v_prev_val = 6
    v_curr_val = V
    v_next_val = 6
    v_prev_val = 7
    v_curr_val = RN
    v_next_val = 7
    v_prev_val = 8
    v_curr_val = MD
    v_next_val = 8
    v_prev_val = 9
    v_curr_val = MR
    v_next_val = 9
    v_prev_val = 10
    v_curr_val = MS
    v_next_val = 10
    v_prev_val = 11
    v_curr_val = DR
    v_next_val = 11
    v_prev_val = 12
    v_curr_val = rsam
    v_next_val = 12
    v_prev_val = 13
    v_curr_val = PhD.
    v_next_val = 13
    v_prev_val = 14
    v_curr_val = REV
    v_next_val = 14
    v_prev_val = 15
    v_curr_val = ESQ
    v_next_val = 15


    I'm getting an unexpected exit, please check and correct my program.
    expected output :
    'JR'
    'SR',
    'I',
    'II',
    'III',
    'IV',
    'V',
    'RN',
    'MD',
    'MR',
    'MS',
    'DR',
    'MRS',
    'PHD',
    'REV',
    'ESQ'
    
    fitst iteration :
    
    v_prev_val  = 
    v_curr_val  = 'JR'
    v_next_val  = 'SR',
    
    second iteration
    
    
    v_prev_val  = 'JR'
    v_curr_val  = 'SR'
    v_next_val  ='I'
    
    Third iteration:
    
    v_prev_val  = 'SR'
    v_curr_val  = 'I'
    v_next_val  ='II'
    
     .
     .
     .
     .
     .
    any help in this regard is highly appreciated




    Thank you
    Prakash P

    Published by: prakash on August 30, 2012 22:01

    An example:

    SQL> declare
      2          type TStringArray is table of varchar2(10);
      3          array TStringArray :=
      4                  new TStringArray( 'Tom', 'Commander', 'Harry', 'Sally' );
      5  begin
      6          for i in 1..array.Count loop
      7                  DBMS_OUTPUT.put_line( '***************' );
      8                  DBMS_OUTPUT.put_line( 'current='||array(i) );
      9
     10                  --//can also use: if array.Exists(i-1) then
     11                  if (i-1) >= 1 then
     12                          DBMS_OUTPUT.put_line( 'previous='||array(i-1) );
     13                  end if;
     14
     15                  --// can also use: if array.Exists(i+1) then
     16                  if (i+1) <= array.Count then
     17                          DBMS_OUTPUT.put_line( 'next='||array(i+1) );
     18                  end if;
     19
     20          end loop;
     21  end;
     22  /
    ***************
    current=Tom
    next=Commander
    ***************
    current=Commander
    previous=Tom
    next=Harry
    ***************
    current=Harry
    previous=Commander
    next=Sally
    ***************
    current=Sally
    previous=Harry
    
    PL/SQL procedure successfully completed.
    
    SQL> 
    

    The Exist() method is also one that is usually used with associative arrays. Here is an example of associative array. Note that the table is sorted according to the index value. And the index value is a string - not a sequential integer.

    SQL> declare
      2          type TStringArray is table of varchar2(10) index by varchar2(20);
      3          array   TStringArray;
      4          i       varchar2(20);
      5  begin
      6          array('Intel Officer') := 'Tom';
      7          array('Mission Lead') := 'Commander';
      8          array('Radio in Head') := 'Harry';
      9          array('Military Officer') := 'Sally';
     10
     11          i := array.First();
     12          while array.Exists(i) loop
     13                  DBMS_OUTPUT.put_line( '***************' );
     14                  DBMS_OUTPUT.put_line( 'current: '||i||'='||array(i) );
     15
     16                  if array.Exists( array.Prior(i) ) then
     17                          DBMS_OUTPUT.put_line( 'prior: '|| array.Prior(i) );
     18                  end if;
     19
     20                  if array.Exists( array.Next(i) ) then
     21                          DBMS_OUTPUT.put_line( 'next: '|| array.Next(i) );
     22                  end if;
     23
     24                  i := array.Next(i);
     25          end loop;
     26  end;
     27  /
    ***************
    current: Intel Officer=Tom
    next: Military Officer
    ***************
    current: Military Officer=Sally
    prior: Intel Officer
    next: Mission Lead
    ***************
    current: Mission Lead=Commander
    prior: Military Officer
    next: Radio in Head
    ***************
    current: Radio in Head=Harry
    prior: Mission Lead
    
    PL/SQL procedure successfully completed.
    
    SQL> 
    
  • Help with table...

    Hi all

    I have a nice photo gallery that uses a table like this:

    pictures = ["portraits/1.jpg", "" portraits/2. ""] jpg"," "portraits/3."» jpg"," "portraits/4.". " jpg"," "portraits/5."» jpg"," "portraits/6."» jpg"];

    All is well in the world, but now I need to import the data in table form a .txt file that was created by php.

    He writes the data exactly as it is above (without "photo ="). It creates the hard brackets, commas, lack the last comma

    and inserts a hard surface and semi colon. (cool php to an image folder change dynamically...)

    The string in the .txt file is:

    ["portraits/1.jpg", "" portraits/2. ""] jpg"," "portraits/3."» jpg"," "portraits/4.". " jpg"," "portraits/5."» jpg"," "portraits/6."» jpg"];

    On the main timeline (need to add a lot of code thereafter make the gallery works) how can I set the variable

    'photos' and then import the chain into the .txt file as its value?

    I use Flash 8 and AS2 (but I guess that the player load 2 & 3 mixed)

    Any help much appreciated

    Best wishes

    Tony

    You won't be dressing the table up as if you intend to assimilate it to the table in code.  All you have to do is get data into Flash using the LoadVars class, as a single string of file names with commas separating the names and then act on the string using the split method...

    Portraits/1.jpg,portraits/2.jpg,portraits/3.jpg,portraits/4.jpg,portraits/5.jpg,portraits/ 6. jpg / / content of the file

    Let's say the data string is set the variable Txtdata(3))

    pictures = txtData.split(",");

    Look in the documentation for AS2 LoadVars. It should be easy for you to implement.

  • Need help with table

    I have a spreadsheet that has about 40 different sheets with each of them being a person that lists information about each of them and if they participated in a given event.

    Is there a way to create a table that spans all of the leaves and can show participation based on the event? A bit like a portal into a database. My struggle is to be able to drag the formula down to automatic change sheets. I don't want to have to individually type an if then formula with offset to connect the number for each field.

    You mention a portal on a database. I think you're on the right track. It is easier to gather information in a table that it is from the dozens of tables. Why not keep your data in a database table and 'extract' information for a person of this table.

    If you could give more details one you are trying to do someone here will be able to give more specific suggestions.

    SG

  • help with table 1 d research

    Hey guys,.

    IM extracting data from a database and store it as a cluster of tables 1 d and now I want to find an element in a table using the table. After completing the two individual tables I try and seek help search 1 d table comparing to a fourth value has already generated. I was hoping to use the index of table 1 d search to enter something at this level since the other table.

    Table im trying to look for a currently a single element, the element im trying to find, but I get a - 1 return.

    can you see what I'm doing wrong here? is there something I don't understand not all table 1 d search?

    Thank you guys

    A common problem here is white space (spaces, tabs, and newline characters, etc.).  Try to use Whitespace Trim on the search string and the elements of the array before the search.

  • Help with the calculations of time

    I tried several searches but can't seem to find what I need to do. I need to read a file with two columns, the first column is the time of an event. Then I need to calculate the time between each event (row). I know I have to use a loop to read the file but I cannot find any information on what the best way to calculate the time between each event so that I can get statistics such as average time per cycle, time since the last cycle, etc.. The only way that I can think is to read the file as a string and then parse time, but that doesn't seem like an effective way of doing things.

    example: data.csv

    08:00 10

    08:12 8

    10:00 2

    11:12 3

    Use '% <%H:%M> t' as format string instead. Capital T formats time as an absolute time, which according to your format is not what you are working with. The tiny t he reformatted as a relative timestamp and you should be able to calculate your time between events of.

    Hope this helps,

    Rob

  • Help with the calculations of the form

    I have a form with fields 4R, 4W, 4 p and 4 M.  I want the sum of all the numbers in one of these fields and multiply the total by 6 to get 6 (4R + 4W + 4 P + 4 M) how this enter a calculated field?  I tried several ways and they simply return 0.  Thank you.

    Yes, because then you can use the option of rating Simple field integrated and just enter:

    (R4 + W4 + P4 + M4) * 6

  • help with custom calculation / boxes

    Hello.

    I'm trying to link the boxes for a total of overall points as follows:

    Question1 [] yes [] no

    Question2 [] yes [] no

    1 point if either 'Yes' is selected. (Max 1 point only)

    Question3 [] yes [] no

    Question4 [] yes [] no

    2 points in total for each '' Yes. '' (Maximum 4 points)

    I set each box to a value of exports of 1.

    I have a score box "box2".

    // first section questions
    // set vars
    var points = this.getField("YesOne").value + this.getField("YesTwo").value;
    // if then
    if ((points > 0)) {this.getField("box2").value = 1} 
    else {this.getField("box2").value = 0};
    

    I got stuck on the first part, because it doesn't work as I said above, any help would be appreciated.

    I am trying to post the actual PDF, but I can't find a way to put it in this ad...

    Thank you!

    Here is an example with all 3 approaches and the display of the value of each field:

    Boxes amount

  • Need help with custom calculation Script

    Hey everybody.  I'm using Acrobat X Pro and stumbling a bit on the syntax of the following equation.  I need to add the value of "Cell1" & "Cell2" then add the value of "Cell3.  However, the value of "Cell3" is entered by the user and specifies a percentage of the sum of "Cell1 &"Cell2".  For example: If the user enters "3" in "Cell3" I need the value returned at 3% of the sum of "Cell1" + "Cell2".  If the user enters "9" in "Cell3" I need the value returned for "Cell3" 9% of the sum of "Cell1 and Cell2" and the end result should be the sum of "Cell1 Cell2 + Cell3.  In more detail:

    If "Cell1" = "Cell2" $ 500 = $500 and "Cell3" = '3' then I need the returned value to be $1030,00.

    I hope this makes sense. Here's what I have so far, but alas, it does not work.  Any help would be GREATLY appreciated.

    Get the first value in the field, as a number

    var v1 = + getField("Cell1").value;

    Get the second field value, as a number

    var v2 = + getField("Cell2").value;

    Get the value of a field, a number transformation

    var v3 = + getField("Cell3"/100).value;

    Calculate and set the value of this field for the result

    Event.Value = v3 + (v1 + v2);

    Thank you

    Solan

    I have posted a reply, but realized that it wasn't what you wanted. There is some confusion about what you want for Cell3. A hand, you say that the user enter a vaule in the area, but them you say you want its calculated value based on what the user has entered and two other field values. It seems to me Cell3 should be the domain that the user enters the percentage, and the calculated field (Cell4) script could be:

    Get the first value in the field, as a number

    var v1 = + getField("Cell1").value;

    Get the second field value, as a number

    var v2 = + getField("Cell2").value;// get treatment field value, as a number

    Get the percentage

    var v3 = + getField("Cell3").value;

    Calculate and set the value of this field for the result

    Event.Value = (1 + v3 / 100) * (v1 + v2);

Maybe you are looking for