Question about scripts in the form under repeatbel objects

Hello

I'm working on the creation of a form that has a secondary form that can be repeated as many times as the user wants. There is a button 'Add' that creates an instance of the secondary on the form form, when you click on it.

The secondary form I have 5 numeric fields say a1 - a5 and 1 field b1 which is the sum of all these 5 fields.

On the main screen, I have a 2 fields - say t1 and f1.

The requirement is t1 = f1 + b1 + (instance sous-forme 2 B1) + (sub-form instance 3's b1) + and so on... .depending on as many instances sub-shape there that the user adds.

I created actions using the Action Builder such as when none of the a1 to a5 fields are out, b1 will be updated with the sum of a1 - a5. At the same time t1 will be updated with the sum of f1 and b1.

This works very well for 1 instance of the form under. But when click on 'Add' and a second instance of the secondary form is added, then the script does not work as it did for the first instance of the secondary form. So for all instances of the subshape added, when values are added to a1 - a5 and the fields are exist, b1 not updated.

How can I fix?

See attached form that I create for clarity.

"The total number of hours worked this week" are the t1 I was talking about. See how it is updated when values are entered in all areas of the time. It works great with the default instance of the form on T100/strategic/advantage customer information as well. But when I click on the button "Add Customer" to add another instance of the form sub, it does not work as expected.

Please let me know if it is still is not clear and I can explain the problem.

Hi Ameeth,

Please find below the link that has your document.

https://workspaces.Acrobat.com/?d=OEkwisQ99LXgJ4e9GrCnZg

Hope it works very well...

I don't know why you created these functions?

Let me know if you need any clarification.

Thank you

Sofiane

Tags: Adobe LiveCycle

Similar Questions

  • Looking to run a script when the form gets focus

    Hello all flexers out there...
    I have an application that uses a tab navigator control that is embedded inside a tab navigator control. Basically, it gives me two rows of browsers tab which is really cool. My problem, well my flex related question, is that I want to trigger a code when I select one of the tabs in the browser built-in tab control.

    I tried to use the indicator of activation in the header tag but who does not have the first time the form is opened, more it will always fire when the browser loses focus. I tried the indicator initialization, but this event only fires when the form is created first and before all the data is passed to the form. The creationComplete triggers once and it was after that the form is created the first time, but before that any data sent to it.

    Grrr... I need to initialize a few combo boxes, but I only want to run the Action Script when the form gets the focus and I need to have the data available before running the script. Any ideas?

    Thanks in advance for the help!

    Have an ordinary day...
    KomputerMan ~ |  :-)

    Thanks for the tip of Tracy, but the change event fired off so many times, I stop counting until I killed my debugging session.

    After reviewing all the events in the model itself, I finally started to recede in the code. It turned out that the show in the canvas that called the 2nd tab navigator works best.

    There is one thing about Flex that makes me just batty. The way in which things are called and the number of times where things sometimes called in Flex doesn't make much sense at all. I think we should clean up the sequence of events in Adobe Flex! I keep seeing all kinds of events fire off several times and I can't understand why. Well the show solved this problem for me!

    Have an ordinary day...
    KomputerMan ~ |  :-)

  • Questions about scripts in ai2

    Hello

    Two questions about the new install script.

    (1) where to find documents on the "object model" which is available for use during the writing of scripts. There the Javadocs available to all classes, getters, setters, etc that can be used?
    For example, I want to write a custom rule to detect foreign keys "without columns. For some reason, this error occurs during generation DOF, but I have not found a standard rule of prior design detect these problems before the generation of DDL. So, I'm interested in knowing how to navigate through the object model to create a rule of mine (IE is it a table.getFK (.getColumns ()) use?).

    (2) is it possible to use Groovy as a scripting language? If Yes, does anyone have the docs (or even draft notes) on how join as a script engine in the Data Modeler?

    Thank you, BP

    Hi BP,.

    to detect foreign keys "without columns. For some reason, this error occurs during generation DDL

    What version did you use to create these cases? There was such a problem in one of the pre-production versions published two years ago.

    Meta definitions, you can watch datamodeler\datamodeler\xmlmetadata directory.
    In fact, it is preferable to define the rule of index/constraint - you will get a clue that is used to represent the PK, UK, the FK constraints and indexes.
    So for your rule, you select index/constraint as object and the next Java scrip will be your rule:
    var index;

    {if (index.isFK () & {index.getElements () .length == 0)}
    fake;
    } else {}
    true;
    }

    If you remove index.isFK (control) then the rule will be valid for all PK, UK, the FK constraints and indexes.

    For script engines - you can start here - https://scripting.dev.java.net/
    I see groovy is supported - http://groovy.codehaus.org/JSR+223+Scripting+with+Groovy
    How to install it - you can follow the instructions in the first link above, it's much easier just to copy related jar in the "ext" directory - for groovy I copied "groovy - 1.7.5.jar" (I downloaded 1.7.5 version)
    in the "D:\jdk1.6.0_20\jre\lib\ext" directory on my computer. You must restart the Data Modeler - I engine script groovy as a choice in the engine drop-down list box.

    You must test how Groovy will return true or false for the Data Modeler - generally ordinary (not library), it is strange that you see in the example. If the library is used then the standard return is used.

    Philippe

  • where to post a question about iTunes on the iPhone?

    I have a question about a problem with iTunes on the iPhone (iOS), but I do not see a 'Community' with this title (or anything close;  I have no idea what "iTunes U" means).

    For lack of a better idea, I just posted to the community "iTunes for Mac", but I don't think that's true.

    Please let me know where I should post to an iTunes on iPhone issue.  Thank you.

    It should probably be posted in the community Using iPhone Apple Support communities. I'll ask a host spend your question in iTunes for Mac, if it has not already been moved.

    EDIT: Just read your message, and I think it's probably better where it is (because you need help syncing your songs via iTunes on your Mac). He should be fine here, but if the moderators believe that he should be somewhere else, they will move for you.

  • QUESTION about to connect the calling WinsCard.dll drive

    could not get the list of player and connect the player successfully by call winscard.dll under C:\Windows\system32 folder in my local PC, but the other PC could do that.

    My PC environment: 2002 XP, SP3
    the version of winscard.ll is August 4, 2008

    Hi Yang Yu,

    1. Is the issue with the computer recognizes the card reader or the card reader can't read the card?
    2. What is you receive the exact error message?
    3. What is the number and the model of the card reader?

    Refer to the article below and try the steps mentioned, if you use Windows XP Professional x 64 edition.

    A universal serial bus smart card reader that is connected to a Windows Server 2003-based computer may not detect the smart card

    http://support.Microsoft.com/kb/919922

    Your question does contain all the required information necessary for us to help you. Please provide more relevant information to continue troubleshooting as a result.

    How to ask a question

    http://support.Microsoft.com/kb/555375

  • Question about ActionBar on the first screen of the application

    Hi, I have a question about the actionbar behavior in the first screen of the application

    index.htm pushes immediately main.htm with actionbar. ActionBar clicks and responds correctly until I have add overflow on some buttons.

    When I click on the button of overflow, the overflow is displayed at the bottom of the page, the top of the overflow is put in correspondence with the upper part of the actionbar so buttons actionbar overflowing content is not visible.

    I reproduce this problem with the sample application.

    This is expected behavior? Is there a way around it?

    I was able to reproduce the problem and have connected it

    https://github.com/BlackBerry/bbUI.js/issues/329

  • Not able to compile the form under Linux

    Hi all

    I use oracle Forms 11 g [32 bit] Version 11.1.2.2.0.

    I have developed a form in my local system (32-bit Windows) and now trying to compile the form to the server (Linux)

    I get the error message when compiling "FRM-91500: unable to start/complete construction.»

    The form (MODULE1.fmb) that I am trying to compile is in my directory on the server.

    What I did:

    Export ORACLE_HOME = / / oracle, Oracle, Middleware, Oracle_FRHome1

    Export ORACLE_INSTANCE = / / oracle, Oracle, Middleware, asinst_1

    Export FORMS_PATH = / / oracle/Oracle/Middleware/Oracle_FRHome1/forms: / u01/oracle/Oracle/Middleware/asinst_1/FormsComponent/forms

    using the command line to compile the form below:

    Oracle/Oracle/Middleware/Oracle_FRHome1/bin/frmcmp userid = module_type module = MODULE1.fmb < username > = form compile_all = yes window_state = minimize

    Thank you

    Lucile Dutta.

    (1) create new folder in unix

    2) put your FMC to this folder

    (3) copy $ORACLE_HOME/forms/templates/scripts/frmcmp_batch.sh to this folder

    4) add to frmcmp_batch.sh:

    Export TERM = vt220

    Export ORACLE_TERM = vt220

    (5) brand: chmod + x frmcmp_batch.sh

    (6) set your env variables: TNS_ADMIN ORACLE_HOME, ORACLE_INSTANCE,.

    (7) compile form you in this folder with:

    userid = set./frmcmp_batch.sh = no module = module_type = window_state = minimize compile_all = yes

    for example:

    lot of userid=scott/tiger@hr de./frmcmp_batch.sh = no module_type module = test.fmb = form window_state = minimize compile_all = yes

    Concerning

  • Save the form under? IOS, Iphone

    In Acrobat DC mobile app... (Version of IOS, iPhone)

    Is it possible to fill out a form and save it as before you send it?
    If so the app would be useful in my world.

    Other than works perfekt.

    Interaction with Soonr. That works perfectly!
    But I can´t record the name of the Send dokument i´m in Acrobat DC

    Help, please!

    .. .or should I just forget about using this app like that

    Duplicate the file before completing the form. Find the duplicate.

    To duplicate a file, click on the... (top right). Choose the selection command. Select the file to reproduce. Click the 4th icon from left to right at the bottom, choose duplicate.

  • Question about to browse the lines of a viewobject

    I want to iterate over the lines of a viewobject. So, I use the following code snippet to do:

            String amDef = "model.service.TestAM";
            String config = "TestAMLocal";
            ApplicationModule am = Configuration.createRootApplicationModule(amDef, config);
            ViewObject vo = am.findViewObject("EmployeesView1");
            RowSetIterator iterator = vo.createRowSetIterator(null);
            iterator.reset();
     while(iterator.hasNext())
            {
                Row currentRow = iterator.next();
      System.out.println("Value: " + currentRow.getAttribute(1));
            }        
            
     iterator.closeRowSetIterator();
     Configuration.releaseRootApplicationModule(am, true);
    

    Now, I had a question about this code snippet. He get all records from the table of data to the model layer, that is, to the application server? If so, what part of the code for this? vo.createRowSetIterator maybe?

    Your example of code appears that I wasn't there. The default iterator and one that you get by vo.createRowSetIterator are different.

    And do not forget to close the iterator, you created as you lose in other resources.

    Timo

  • Question about backing up the Lenovo factory

    Hi, I have an E530, I have a question about the Lenovo factory back, I'm a little unsure of the difference between the bootable media and just backup data.

    Is the bootable media just the equivalent to a disk of windows 7?

    the option data backup all currently installed on your laptop?

    I tried with the two checked options the other day and I got to the point where he solicited for disc DVD - RW 6 so I cancelled because I didn't know how much in total he would do, would be nice if he told me so I could better prepare.

    Also, if I was ever to use the data disks, would you boot from the startup disk you did first then also boot from CD 1 of the data disks?

    Hi James,

    We create these disks to customers of all time.  In our case we have Win 7 Pro, pre-loaded.  Win 8 discs are already included with the device.

    The process of factory recovery disks will create a set of disks [the E530 in the USA, to 4 DVD - Yes it would be nice to know how much to advance] will allow you to restore your machine out of the box.  The first disc it creates is a boot disk - you start from this when you start the recovery process - that's all it is. No file data/images for the restore process.  Other disks contain image files needed for restoration.  This does not save the user data. It is a different process.

    Since you started & cancelled the process, I'm not sure that it will allow you to re - burning the discs.  Because of the MS license restrictions, you are allowed to burn discs once.  We got all the way on the last drive and had the process fail [we don't know why - maybe bad disc?] and we cannot redo records because he thinks that we have successfully created their.  So, we have to call Lenovo support and ask them to send us a set of disks in Windows 7.

    I hope this helps...

    Al

  • FRM-40010: cannot read the form under Linux

    Hello

    During the race, the f60desm gives error below command

    FRM-40010: cannot read the form /d01/oracle/prodappl/au/11.5.0/forms/US/PROJECT.fmx

    I've defined the following path

    (1) customPROD_A.env

    # Custom top PROJECT #.

    PROJECT_TOP=/D01/Oracle/prodappl/project/11.5.0
    export PROJECT_TOP

    (2) APPSPROD_A.env

    CustomFile=/D01/Oracle/prodappl/customPROD_A.env
    If [f $customfile]; then
    . /D01/Oracle/prodappl/customPROD_A.env
    FI
    . /D01/Oracle/prodora/8.0.6/PROD_A.env
    . /D01/Oracle/prodappl/PROD_A.env


    Environment:

    Oracle Applications: 11.5.10.2
    RDBMS: 11.2.0.1.0
    OS: OEL5


    Please help solve the problem.

    Thank you
    Concerning
    GSM

    Hello

    How to do the same thing in OEL5.

    The above applies to Windows (if you want to open the file on the Windows client machine fmb and compile - generate the fmx file). If you are on Linux, you need not to do the same thing, just the env file source application and compile the form (question "echo $FORMS60_PATH" to make sure that all the relevant directories are in the path).

    I created the directory of the root OEL5 ABC & copied all the pll, TEMPLATE.fmb & APPSTAND.fmb files in $AU_TOP/resources directory ABC but how to add ABC to FORMS_PATH in OEL5?

    As mentioned above, it is not required on Linux. However, if you want to add the ABC directory you issue:

    $ export FORMS_PATH =: $PATH

    Thank you
    Hussein

  • Script of the form docReady event!

    Hello

    I have a simple form with 1 box (off by default) and Textfield 1. The two are distinct forms. I'm trying to make the visible presence of TextField when the box is checked. Script works great for the event box change but not for the Docready event.

    Can see the form in pdf here: http://DL.dropbox.com/u/5141935/ErrorInVisibility.PDF

    In summary:

    ErrorInVisibility.jpg

    I also checked the same on the shape ready, ready layout event... (just for the hit & trial) but no work with either.

    There is a big version of form, this is just a version boiled down the problem.

    Pls tell what I'm doing wrong!

    Thank you.

    -

    Afonso

    Hello

    Here's the back of the form: https://acrobat.com/#d=lVnQIhP4B4t0A-N9prn4hQ

    I would use the click event of the checkbox to change the visibility of the subform. Then in the box docReady event, you can run the script in the click event.

    At the time of the design, you can also set the presence of the subform to hidden or invisible. In this way, that you would not need the docReady event script.

    Hope that helps,

    Niall

    Ensure the dynamics

  • Question about mismanagement of the effects in the construction of sequence

    Hi all

    I read the BPEL 2.0 document and met a question about management failures and the normal flow of control in the < sequence > construction.

    For example, in the following code fragment:

    <>sequence
    < call...
    < catch faultName = gt; a.
    < / call >
    < receive... >
    < / sequence >

    If fault one is taken and processed by error handler, when the fault handling ends at will are receive > activity start or jumped?

    According to the document: < receive > will begin when < call > complements, but the 'complete' includes the 'ends in vain", (i.e. a fault is stuck inside the < call > and dealt with)?

    Hope you can help me and thank you very much.

    Published by: user8301699 on April 9, 2009 19:04

    Hello

    You have reason, 'full' includes the 'ends in vain", (i.e. a fault is taken inside the and treated).

    Hope this answers your Q.

    See you soon
    Rémy Pucha

  • Question about graphics on the Satellite A200-1VO card memory

    Hello
    How do you assign more memory to the graphics card on laptop Satellite A200-1V0?
    Thank you

    Hello

    in your case it s not possible to change the size of graphics by yourself, memory as graphics memory in your machine is shared with main memory, so if you upgrade main memory and graphics memory should increase. But this question is governed by the chipset and the user has no influence on it.

    Welcome them

  • Question about vMAC on the DLR LIF

    Hello

    Based on the design of NSX Guide: "every LIF has assigned an IP address, which represents the default IP for the logical segment L2 bridge, it connects to a vMAC address. The IP address is obviously unique by LIF, then that same VMAC is attributed to all LIF defined"

    This test in the HOL laboratories, I started a ping from 172.16.10.11-> 172.16.20.11.  I configured a mirror port with source such as app-sr-01 a (172.16.20.11) (not available on servers web/app HOL tcpdump!). Looking at the MAC addresses on the package 'in' GRE encapsulated packet (see below cliché) I have a few questions:

    1. whence the source MAC on the 00:50:56:f1:f7:a2 of ICMP request packets? What cli command would show this MAC address?

    2. If each LIF must have the same vMAC, "arp - a" output on the corresponding servers shows different MACs for 10.1 and 20.1 LIF.  Is this expected or a Nested lab thing or did I miss something?

    vmac-question.png

    1 MAC SRC in the query is almost certainly a pMAC for the ESXi server where the web-sv-01 has. You should be able to see in "net-vdr - C-l" running on this host.

    2. "arp - a" output for your web-sv-01 a don't look right, you should see VMAC (02:50:56:56:44:52) for all DLR LIF. What version of NSX do you use?

Maybe you are looking for