JS calculations are not filling in the fields, help!

Hello

I use Acrobat X Pro on Win7 to create a form to fill out (not livecycle).

The link to my file = https://www.dropbox.com/s/ghbla7mmpvc74er/Adobe_Support.PDF

I filled the column "December" for testing.

Under the column 'Part', bpM.1 of bpM.8 domain names are not get filled.

bpM.0 and bpM.9 have the same JavaScript (like bpM.1, bpM.2, bpM.8) in custom calculate script, and they work fine.

If I check the code in the debugger, and press enter by selecting the script, then only, these fields (bpM.1) download populated (search results).

Sub_Total and HST are calculated and display very well.

My questions - wise priority - are:

1. why these fields do not display the results of the calculations? How to fix the problem/bug/logic?

2. what other programming logic can I use to improve performance and can be minimize calculations (javascript), called in when there is a change in all areas.

3. is it possible to have such calculations on thousands of fields in a single PDF file? If this is not the case, what are the alternatives.

Thank you

Rizwan

Instead of code like this:

f = this.getField ("bpM.0");

f.Value = (sum2 * this.getField ("craM") .value) / 100;

It should be:

Set the value of this field

Event.Value = (sum2 * this.getField ("craM") .value) / 100;

Tags: Acrobat

Similar Questions

  • Data are not filled in the Dimension according to the hierarchy

    Hi all

    I have a DIM_ITEM table with the following structure,
    ITEM_KEY      NUMBER(10,0)
    ITEM_NAME     VARCHAR2(50 BYTE)
    ITEM_SHORT_NAME     VARCHAR2(25 BYTE)
    ITEM_CATEGORY     VARCHAR2(50 BYTE)
    ITEM_TYPE      VARCHAR2(50 BYTE)
    ITEM_BRAND     VARCHAR2(50 BYTE)
    Below the data are met
    insert into dim_item values (1, 'Samsung 42 LED Television', 'Sam 42 LED', 'Electronic', 'Television', 'Samsung');
    insert into dim_item values (2, 'Samsung 530L Double Door Refrigerator', 'Sam 530L DD Ref', 'Electronic', 'Refrigerator', 'Samsung');
    insert into dim_item values (3, 'Samsung 32 LED Television', 'Sam 32 LED', 'Electronic', 'Television', 'Samsung');
    insert into dim_item values (4, 'Samsung 57 LED Television', 'Sam 57 LED', 'Electronic', 'Television', 'Samsung');
    insert into dim_item values (5, 'Samsung 75 LED Television', 'Sam 75 LED', 'Electronic', 'Television', 'Samsung');
    insert into dim_item values (6, 'Sony 32 LCD Television', 'Sam 32 LCD', 'Electronic', 'Television', 'Sony');
    insert into dim_item values (7, 'Sony 42 LCD Television', 'Sam 42 LCD', 'Electronic', 'Television', 'Sony');
    insert into dim_item values (8, 'Samsung 175L Single Door Refrigerator', 'Sam 175L SD Ref', 'Electronic', 'Refrigerator', 'Samsung');
    insert into dim_item values (9, 'Samsung 230L Double Door Refrigerator', 'Sam 230L DD Ref', 'Electronic', 'Refrigerator', 'Samsung');
    insert into dim_item values (10, 'Samsung 230L Single Door Refrigerator', 'Sam 230L SD Ref', 'Electronic', 'Refrigerator', 'Samsung');
    insert into dim_item values (11, 'Whirlpool 530L Double Door Refrigerator', 'WP 530L DD Ref', 'Electronic', 'Refrigerator', 'Whirlpool');
    insert into dim_item values (12, 'Whirlpool 1110L Double Door Refrigerator', 'WP 1110L DD Ref', 'Electronic', 'Refrigerator', 'Whirlpool');
    insert into dim_item values (13, 'Royal 3+2 Sofa Set', 'Ryl 3+2 sofa', 'Furniture', 'Sofa', 'Royal');
    insert into dim_item values (14, 'Royal 4+4 Sofa Set', 'Ryl 4+4 sofa', 'Furniture', 'Sofa', 'Royal');
    insert into dim_item values (15, 'TMT 3+2 Sofa Set', 'tmt 3+2 sofa', 'Furniture', 'Sofa', 'TMT');
    insert into dim_item values (16, 'TMT 4+4 Sofa Set', 'tmt 4+4 sofa', 'Furniture', 'Sofa', 'TMT');
    insert into dim_item values (17, 'TMT 4 Person Dinning Table', 'tmt 4P DT', 'Furniture', 'Dinning', 'TMT');
    insert into dim_item values (18, 'TMT 10 Person Dinning Table', 'tmt 10P DT', 'Furniture', 'Dinning', 'TMT');
    According to these data

    Samsung has TV and fridge
    Sony has only TV
    Whirlpool's refrigerator only

    I created the hierarchy in AWM

    1. all items
    2 article category
    3 point mark
    4. item type
    5. name of article

    When I keep my Dimension and display data, it displays as
      - All Items
        - Electronic
          - Samsung
          - Sony
            - Television
              - Samsung 42 LED Television
              - Samsung 32 LED Television
              - Samsung 57 LED Television
              - Samsung 75 LED Television
              - Sony 32 LCD Television
              - Sony 42 LCD Television
          - Whirlpool
            - Refrigerator
              - Samsung 530L Double Door Refrigerator
              - Samsung 175L Single Door Refrigerator
              - Samsung 230L Single Door Refrigerator
              - Samsung 230L Double Door Refrigerator
              - Whirlpool 530L Double Door Refrigerator
              - Whirlpool 1110L Double Door Refrigerator
        Furniture
    Nothing is there under Samsung. But the result to expect is,.
      - All Items
        - Electronic
          - Samsung
            - Refrigerator
              - Samsung 530L Double Door Refrigerator
              - Samsung 175L Single Door Refrigerator
              - Samsung 230L Single Door Refrigerator
              - Samsung 230L Double Door Refrigerator
            - Television
              - Samsung 42 LED Television
              - Samsung 32 LED Television
              - Samsung 57 LED Television
              - Samsung 75 LED Television
          - Sony
            - Television
              - Sony 32 LCD Television
              - Sony 42 LCD Television
          - Whirlpool
            - Refrigerator
              - Whirlpool 530L Double Door Refrigerator
              - Whirlpool 1110L Double Door Refrigerator
        Furniture
    When I change the hierarchy as

    1. all items
    2 article category
    3. element type
    4 point brand
    5. name of article

    AWM displays data such as,
      - All Items
        - Electronic
          - Television
            - Samsung
              - Samsung 42 LED Television
              - Samsung 32 LED Television
              - Samsung 57 LED Television
              - Samsung 75 LED Television
              - Samsung 530L Double Door Refrigerator
              - Samsung 175L Single Door Refrigerator
              - Samsung 230L Single Door Refrigerator
              - Samsung 230L Double Door Refrigerator
            - Sony
              - Sony 32 LCD Television
              - Sony 42 LCD Television
          - Refrigerator
            - Whirlpool
              - Whirlpool 530L Double Door Refrigerator
              - Whirlpool 1110L Double Door Refrigerator
        Furniture
    But the result expected for this hierarchy is,.
      - All Items
        - Electronic
          - Television
            - Samsung
              - Samsung 42 LED Television
              - Samsung 32 LED Television
              - Samsung 57 LED Television
              - Samsung 75 LED Television
            - Sony
              - Sony 32 LCD Television
              - Sony 42 LCD Television
          - Refrigerator
            - Whirlpool
              - Whirlpool 530L Double Door Refrigerator
              - Whirlpool 1110L Double Door Refrigerator
            - Samsung
              - Samsung 530L Double Door Refrigerator
              - Samsung 175L Single Door Refrigerator
              - Samsung 230L Single Door Refrigerator
              - Samsung 230L Double Door Refrigerator
        Furniture
    What exactly I'm missing here? Could someone please help me on this?

    NOTE: The data I used here are just fake and learning goal

    Thanks and greetings
    M trehout

    The problem is that the definition of parent is ambiguous to some of your members. A good example of this is the 'Refrigerator' Member, appearing under the Samsung and whirlpool in your data set. There will be only one member named refrigerator in the AW, and it can have only one parent. In practice, is to choose the Whirlpool code, but my guess is that the choice is arbitrary and you might get different answers every time.

    The solution is to make the Member have unique names-'Refrigerator-Samsung' and 'Refrigerator Whirlpool' say. You can do it in the data set itself or in the map. Of the to in the mapping, you can map the level of "Item_Type" corresponding to an expression like that.

    DIM_ITEM.ITEM_TYPE || '-' || DIM_ITEM.ITEM_BRAND
    

    (Make sure you get the size before reloading with new data, since otherwise, the former members will remain).

  • The calculations are not automatically - populate weird quirk?

    I've set up a table with 4 columns pricing: price / quantity / total / percentage of donation.

    The calculations are very good WHEN they eventually fill... which is at this moment... say... IF another entry is entered + tab.

    The problem I have is the time WHERE the calculations by filling in the fields - why isn't the field automatically filled AFTER?

    If I had to work on a document/form excel... it's like randomly filling formulas vs instantly...

    make sense?

    problem solved via another Adobe forum

  • What are the security settings to lock a form with fields to fill and still allow someone drive to fill in the fields as as to save the form and print it?

    What are the security settings to lock a form with fields to fill and still allow someone drive to fill in the fields as as to save the form and print it?

    You want to allow someone to open your document and fill in the form (the fields that you have created), but not change or edit the form, right? Here is the answer - assuming you use Acrobat Pro and someone will open the PDF with the Acrobat Reader 9 minimum and more:

    Tools > Protection > encrypt< encrypt="" with="">

    Select YES to change security.

    Opens in a new window:

    Do not select NOT open the Document (or will require a password to open the document.)

    SELECT: Permissions (check the box next to ' Restrict editing and printing of the document. ")

    Change the following 2 settings in the drop-down list box:

    Printing allowed: select high resolution

    Changes allowed: select commenting on, fill in the fields on the form and signature of signature fields
    Selected leave: "enable access text for playback devices to screen for people with visual impairments.

    Change password Permissions (insert a password)

    Leave all the other settings alone in 'Options '.

    OK - OK

    Again enter the Permissions password (the one you entered above)

    OK - OK

    Save the PDF file to apply security [notice that (SECURED0 will appear after the title of the document]

  • Error: Accounting information is not complete. Some required fields are not filled out correctly.

    Before I left to go on vacation, my Acrobat Pro XI worked perfectly. No hiccups, no errors, etc. Now that I'm back and I need to print a PDF in it, I constantly get an error message appear when I hit the "print" key.

    The accounting data are not complete. Some required fields are not filled out correctly.

    I don't know what this message means because I went through all imaginable areas in the menu printing, nothing helps. I checked tools, sign, comments, everything I can think of to try and see what the field is not filled correctly, but nothing fits. From now on, I can't print anything at all of Acrobat Pro and I really need to get this print for a meeting later today. So if someone could try to help, I appreciate it. Thank you.

    If the problem comes from the printer driver. While IT worked on my machine Friday, they have updated the driver and it automatically sets the posting to Enabled. Now that he is set to disabled, I can print without problem. So I guess it's fixed for now and if it comes back I know exactly what to look for.

  • typed letters are not visible after the end of the custom field in editfield

    class CustomEditField extends EditField {}

    CustomEditField (String text) {}

    Super("",Text);

    }

    public void layout (int width, int height) {}

    Super.Layout (getPreferredWidth (), getPreferredHeight ());

    setExtent (getPreferredWidth (), getPreferredHeight ());

    }

    public int getPreferredHeight() {}

    Return super.getPreferredHeight ();

    }

    public int getPreferredWidth() {}

    return (Display.getWidth () * 2/3);

    }

    }

    It's my edit custom field.

    When I type on this field and reached end of the field, can't see the letters after that, but I can type (the only thing is to type letters are not visible after the end of the field)

    What is the solution

    I'm sure that you must explicitly enable scrolling. See Manager javadocs.

    In addition, you limit the scope of your field, which may also fail to scroll.

  • cannot copy pictures or my movie for flash player files more. Flash player is not filled to the top. Used last 3 weeks ago. You are using windows xp, media center edition 2005.

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas:

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    cannot copy pictures or my movie for flash player files more. Flash drive
    is not filled to the top. Used last 3 weeks ago. Using windows xp, Media Center
    Edition 2005.

    ===================================
    Maybe there is a small slider that changes the drive to
    read-only?

    And... There may be a limit to the number of files that can
    Add in the root directory of the drive. This can be
    fixed by adding a few folders to sort the files.

    John Inzer - MS - MVP - Digital Media Experience - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • Fill in the fields on the page loading

    The loading of the page, I like fill some fields to the result of a function and some fields to a sql query like

    SELECT LOGIN_DATA FROM APEX_TABLE WHERE LOWER(LOGIN_NAME) = LOWER ( NVL(V('APP_USER'), USER) ) ;
    

    I tried with processes and calculations. The calculation was before footer, but the fields are not filled.

    I use Apex 4.1 with the db 11 GR 2.

    Hi Wucis,

    Try a process "After Header".

    Write your "select into", something like:

    Select login_data

    in: P1_LOGIN_DATA

    of apex_table

    where the...

    Of course your page P1_LOGIN_DATA Articles needs to exist.

    I also suggest writing your process (PL/SQL) as a PL/SQL block, then beginning by BEGIN and ending with the END. This gives you the ability to make exceptions...

    It will be executed before the page is rendered, but after on the parameters that you have (possibly) linked through another page (through a URL).

    I hope this helps...

    Roeland

  • Calculations - how to manually enter the fields

    In a pdf form, I need to add all the values in a row. There are 32 lines, I would like to enter the field values rather than 'choose' on the calculations tab.

    (Like that I can do a search and replace in the word program and just enter the new values of row field.)

    If there is a way to better / more short, please let me know.

    Since I was 15 columns and 32 rows need separately "calculations", to "choose" from a list of 480 fields is cumbersome at best.

    (I read somewhere that javascript must be enabled, which it, although I don't use java script, trying to fill in the fields in the first box.)

    The latter is what you would have to do for the simplified field notation option and it should work.

    The JavaScript option might be something like:

    (function () {}

    Get the field values as numbers

    var A4 = + getField("A.4").value;

    var = B4 + getField("B.4").value;

    var = C4 + getField("C.4").value;

    var D4 = + getField("D.4").value;

    Set the value of this field to the amount

    Event.Value = A4, B4, C4 + D4;

    })();

  • event when the text does not fit in the field

    Hello

    When there is not enough room for the text in a field. Player will show a little "+". Is it possible to listen to this as an og event something similar?

    I have a field with room for 3 lines. If the user enters several. I need to supplement in anoter field.

    I sense that looking for the number of lines - I do a split for '\r' and get each row in a table. BUT the lines can be long, so just som enter 1 long line, my logic does not work. My policy is NOT monospaced, so I know how long a line!

    Let me hear if someone solved a case like this

    Thank you

    Thomas Groenbaek, Jyske Bank, Denmark

    If you check the box 'Time limit to the Visible area' on the ground, the complete event fires once the user fills out the field. You can put in a script like:

    xfa.host.setFocus (form1.subform1.overFlowTextField);

    in the complete event of the field with room for only 3 lines. Be aware though, that the focus change is not instantaneous and that a character or two could get lost, especially if the user is a fast typist. To make this work, you need to be "Limit length for area Visible" checked.

  • How to fill in the field on the page with the value of the primary key of the previous page

    I am trying to create a patient monitoring system for a group of doctors. There is a patient form add based on the Patient table (which has Patient_Id as primary key) which branches off toward an preoperative evaluation form. I would like to fill in the field of Patient_Id of pre-surgical assessment with the Patient_Id generated by the page add Patient during treatment, which comes from the Patient_seq sequence. How can I do this? I tried to use a calculation on the pre-operative evaluation form, but no matter what I put, the field remains empty.

    Hello

    If I understand you correctly, once the patient record is created you branching to the next page (preoperative assessment form). First create a static hidden point in the form of patients *: PX_PATIENT_ID_COPY *.

    Create a process on submit after the calculation and validation patient form to get the inserted patient_id of patient table. Here's the code-

    SELECT patient_id into :PX_PATIENT_ID_COPY from patient_table where rownum=1
    
    order by patient_id desc
    

    I would not use the sequence to get the present value, because if the record inserted was removed from your patient table, the current value of the sequence would be invalid to find this record in the patient table.

    Basically when the inserted record, the process of getting the value and put into the hidden element.

    Pass the value of the item hidden on the next page by defining them in the direction of the page. Under the section of the Action in the branch of the page, set this items field type - *: PX_PATIENT_ID * (page the order of the day for patient_id). Type * & PX_PATIENT_ID_COPY.* in the with the field of these values. Make sure that include you the dot (.) after * & PX_PATIENT_ID_COPY *.

    Try it now. Hope that it would help.

    Kind regards

    Djelloul

    Blog: http://aspblog.whitepagesbd.com

    Web: http://tajuddin.whitepagesbd.com

  • It is no longer possible to fill in the field "year" (Dutch: "jaar" with a date "1600" or an earlier version.)

    I used to fill in the field "jaar" with the date of origin of a piece of classical music. Many years before 1600 original parts. I spent many hours to fill the years because I have som 35000 tracks in my library. 2015 they was tgo is no longer possible to fill a date prior to 1600. Even worse: all already filled dates are missing.

    I ask reinstall the opportunity.

    lvhout wrote:

    I used to fill in the field "jaar" with the date of origin of a piece of classical music. Many years before 1600 original parts. I spent many hours to fill the years because I have som 35000 tracks in my library. 2015 they was tgo is no longer possible to fill a date prior to 1600. Even worse: all already filled dates are missing.

    I ask reinstall the opportunity.

    Lvhout,

    You seem to be the first person to notice him, but I just tried with iTunes 12.3.2 and found the same problem.

    You can send comments directly to Apple at this link:

    http://www.Apple.com/feedback/itunesapp.html

  • Hi all, I have attached to an external vendor bank in an OU to the site account and provider is global. This RIB is not filling at the fatcure level when creating invoice in the same OU

    Hi all, I have attached to an external vendor bank in an OU to the site account and provider is global. This RIB is not filling at the fatcure level when creating invoice in the same OU

    Hello

    Is the defined account currency and the currency of the same as the currency of invoicing supplier site? It will not default if they are different currencies.

    Cheryl

  • I edited an online form that is already on a live Web page. Why my changes are not reflected in the live page?

    Work in Adobe Business Catalyst. I added a choice to a created previously (drop-down list) field on an online form. This form is already active on a page. Why isn't my new choice reflected on the live page?

    Inline shape in HTML format in the/template/layout rather than a module probably so any changes made on the web form, an administrator be reflected.

    Different situations may occur depending on the implementation of this form, you will need to look at the issue. Could be a module and you are not updated to the more custom option code disks, it may be liquid and as an inclusion... Can be a few things, probably the first good.

  • Fill in the fields in a menu drop-down

    Hello world

    I managed to fill in a field in a context menu, but what I'm trying to do is:

    a context menu with groups, for each group a series of names & surnames

    If "name 1 1' is selected for example

    the two fields would be filled separately by "family name 1' and «name 1'"»

    what I've done so far: http://cjoint.com/13dc/CLfpNDrfwDA_test.pdf

    could you please help me understand what could be the solution

    Thank you very much

    This is the kind of thing I thought. It is coded for clarity, not efficiency, but it should help you get started.

    Script mouse upward to a button

    var aParams =]

    {cName: "Lincoln", oSubMenu: []}

    {cName: "Abraham", return: "Abraham |"} Lincoln"},

    {cName: "Mary Todd," return: ' Mary Todd | "} Lincoln"},

    {cName: "Robert Todd" back: "Robert Todd |"} Lincoln"},

    {cName: "Edward Baker", return: "Edward Baker |"} Lincoln"},

    {cName: "William Wallace", return: "William Wallace |"} Lincoln"},

    {cName: 'Thomas' return: "Thomas |"} Lincoln"}

    ]

    },

    {cName: "Buffett", oSubMenu: []}

    {cName: "Jimmy", return: "Jimmy |"} Buffett"},

    {cName: 'Jane', return: "Jane |"} Buffett"},

    {cName: 'Savannah Jane,' return: "Savannah Jane |"} Buffett"},

    {cName: "Sarah Delaney", return: "Sarah Delaney |"} Buffett"},

    {cName: "Cameron Marley", return: "Cameron Marley |"} Buffett"}

    ]

    }

    ];

    Prompt the user to select a name

    RESP = app.popUpMenuEx.apply (app, aParams) var;

    Fill in the fields with the values selected

    If {(RESP)

    var names = resp.split("|");

    getField("name").value = names [0];

    getField("surname").value = names [1];

    } else {}

    getField("name").value = "";

    getField("surname").value = "";

    }

Maybe you are looking for