Subforms in subforms add the problem of the Instance

Hello

I am new to Adobe Livecycle Designer (I use version 8.2.1) but I managed to almost all elements of the long form that I need to produce, with the exception of a section, I'm having trouble getting it to work properly. In the example, I have a subform extensible "organization" subform "Membership" page, which has buttons add and remove instances, which are working properly. But within each instance of this "organization" subform is another subform instance stretch "ExpertNames" with the buttons add and remove instances.

The 'Body' form allows an organization to be named and the subform 'ExpertNames' allows several members of this organization to be named and associated with each organization. The user should be able to list several organizations of each with one or more members. I can successfully add several instances of the 'Body' form using one after another

Membership.Organisation.instanceManager.addInstance(1)

and remove the instance selected using

Membership.Organisation.instanceManager.removeInstance(this.parent.index)

I have the following text together on the button to add a new instance of the form 'ExpertNames '.

Membership.Organisation.ExpertNames.instanceManager.addInstance(1);

and the following to delete the instance selected in the form 'ExpertNames '.

Membership.Organisation.ExpertNames.instanceManager.removeInstance(this.parent.index);

However when I add a second instance of the form 'Body' which is a new organization and try and add additional members to the Organization of the 2nd it adds them to the organisation ofst 1 rather than the second! I have an example in the form of problem I can send if necessary.

Hope someone will be able to help with this.

Thanks in advance

Lara

Send the form to [email protected] and include an explanation of the question and I'll have a look when I get the chance.

Paul

Tags: Adobe LiveCycle

Similar Questions

  • Cannot add the instance ID

    I'm working on a flash AS2 file that contains drop-down list boxes.

    When I start the program I can right click on a button and add instance code it is to say the current selection is the button.

    After working on the file for a while, I can't do that.

    When I right click on the new buttons and objects and select actions the current selection shows as a frame not the
    object I want to add code too.

    It's very frustrating because I can not add the instance code.

    Any help would be greatly appreciated

    Alfred

    I think the problem was the button pin of current script. Some how I clicked on it and little matter I have a click right on it should always be the last script that I used before I hit the button.

    Thanks for your quick response.

    Alfred

  • Add the instance before existing instance

    Hi all

    is it possible to add a new instance of a subform to show in a top of the existing subform? the way it works now when you add a click on the button to add a subform, the new subform appears under the exisitng subform and so on, each time that I add a subform there goes down. I want the opposite to happen where new subforms, always appear at the top of the old subforms.

    It depends on where you want the subform actually go.

    Suppose that you have a button inside a subform and you still want the new subform to go on top of the entire stack of subforms:

    this.parent.instanceManager.insertInstance(0);
    

    If you want to add it right above some instance that you are working on, and then copy the following code will work:

    this.parent.instanceManager.insertInstance(this.parent.index);
    

    Note: You must add or remove reference points depending on what you use to raise the event, of course.

  • Could not add the instance VO in the AM data model

    Jdev version: 11.1.2.4

    Steps to follow:

    (1) created a VO based on the SQL query.

    (2) when you try to add the VO instance in the AM data model, "Add an Instance" arrow (right arrow) is disabled.

    Please advise.

    Found resolution - Metalink Note 1530486.1.

  • 11g RAC Installation fails add the instance on windows 2003 Server

    I am install 11g RAC on windows server 2003.
    Finished creating House of CRS and it looks good.
    Tried to create the database using DBCA it gives me below error. Help, please.

    D:\ > srvctl add instance d mgrpdb-i mgrpdb1 - n mgrpcluster-1
    PRKO-2010: error in adding instance to the node: mgrpcluster-1
    PRKR-1008: adding the instance mgrpdb1 on the mgrpcluster-1 node to the cluster database
    mgrpdb failed.
    PROC-27: error in authentication layer authentication failure [ALS error informat
    ion: category: operation [1234]: [scls_iddb_get_privgrp_id_by_name] location: [L
    [ookupAccoun] others: [LookupAccountName failed] Dep: [1332]] [1]

    concerning
    Musaddaq

    Salvation;

    Please check below and see its useful for your question:

    Upgrade to 10204 CRS cannot start Instance resource to aid native group 'dba' [603667.1 ID]
    PRK % error - Cause and Action required [ID 178435.1]
    Bug 3584146 - PRKR-1008 instance adding to SIR via SRVCTL [3584146.8 ID]

    It may be useful

    Respect of
    HELIOS

  • Could not add the instance of a hidden subform

    I use Adobe Designer 10 and have used the Action feature to set up my buttons.

    Here's the problem:

    The user is presented with a question:

    You eat apples? Yes/No.

    If the user selects the 'Yes' box, then the subform, 'WhatKindofApples', is set to Visible and appears.

    If the user eat more than one kind of apple, the user must be able to add additional instances of 'WhatKindofApples' by clicking on the button 'add additional apples '.

    If the subform, 'WhatKindofApples', is set to Visible the button 'Add additional apples' works very well.

    If the subform is set to Hidden, then the Add button does not work.

    So, it seems that there is some kind of conflict between being able to add additional instances of subforms hidden once they become visible. I have included my form Javascript code.

    Here is the Javascript code for the Add button:

    Form1. WhatKindofApples.AddAddlApples::click - (JavaScript, client)

    + PRODUCT - CHANGE (ID:0482B39E - E8D0-4F08-B 313-E142D733EE1F CRC:2782582760)

    + Type: Action

    + Result1: AddInstance ("$Node2")

    + Node2: form1 [0]. WhatKindofApples [0]

    + Node1: form1 WhatKindofApples [0] [0]. AddAddlApples [0]

    + Condition1: Button ("$Node1", "click")

    + ActionName: AddlEntityPrivate.click

    this.resolveNode('form1._WhatKindofApples').addInstance (1);

    If (xfa.host.version < 8) {}

    XFA. Form.Recalculate (1);

    }

    //-

    Any help would be greatly appreciated!

    Hello

    I suspect that the addInstance() is trying to work. Keep in mind that the addInstance() will create a new instance of the object that is repeated in its original state. So if the extensible object has hidden, then if new instances are created they will be also hidden.

    A work around would be to establish the presence of the subform to visible in design mode (object > field palette). Then, in the object > range of binding the value the number Min 0. This means that when the form is rendered, the subform will not appear. Finally, the script in the click event of the button would add an instance, rather than make it visible.

    Hope that helps,

    Niall

  • Add the Instance

    In the first picture under the user can click "AC" to add additional lines for comments. When they finished they have to click on "Add line" to add a new instance of this line. In the 2nd picture the 2nd line is accidental, only to add additional comments to the 1st line. How to position the line two additional lines occur inside additional comments (1 comment or 5 +)

    Also I need more two buttons

    1 will add line and copy the contents of the top line

    `    2. Move line - through the button that allows the user to rearrange the entries.

    Thank you in advance for your help!

    image1.jpgimage2.jpg

    Hello

    Looks like you have the page set in a positioned subform provision > range of paging.

    It takes a Flowed layout, so new instances appear below preceding objects. Take a look at the various tables presented here that appear construction of a static disposition towards a provision flowed / Dynamics: http://assure.ly/gk8Q7a.

    Hope that helps,

    Niall

  • Dynamically add the instance of a class

    Im trying to dynamically add instances of a class. I need to do it in a loop. How would I go to do something of this nature?

    Basically...

    for (var i: uint = 0; i

    var newInstance:YourClassName = new YourClassName();

    addChild (newInstance);

    }

  • Delete the instance of DMZ

    Hi, I made a mistake when adding an instance of the demilitarized zone on Beehive application tier server and all web services now do not work (zimbra, bcentral, etc.). I would like to delete this instance of the dmz, but I run in trouble with the following command:
    delete_dmz_home_instance - id servername.domain.com

    I get the following error:
    Object System (id = 467..., type = oracle.ocs.management.model.Server) cannot be converted to type oracle.ocs.management.model.UnmangedBeehiveInstance.

    So I think that the - id option that I use is not valid. How can I determine the instance id of the demilitarized zone that should be used when you remove it using this command? There is nothing in the documentation that I could find which indicated how can I get this code.

    Thank you.

    What went wrong in the addition of the DMZ instance? There was an error when adding, it, or is - it just the post-config which had problems? You remove to add it again, or simply not want you that it all?

    What is the behavior that you see with the customers, exactly? Note that you will access clients via the DMZ instance, after installation of the DMZ and virtual server names will want to match this name of instance of DMZ (or virt name that you have linked to it). Which may require an update VIRTUAL server ServerName property.

    The ID is the ID of the component of the instance of DMZ, which resemble 12345678-9abc-Catherine-hijk-lmnopqrs and is using "beectl list_components", subject installation of DMZ was enough success to add the instance of DMZ for the configuration:

    beectl list_components - type UnmanagedBeehiveInstance

    Note that you should be able to remove the DMZ instance using the configWizard of the hive, too.

    Thanks for the pointer wrt the docs, we'll make sure that it is updated.

    Kind regards
    Was

    Published by: tamccart on May 27, 2009 11:14

  • Problems adding multiple instances of the Subform subform

    I would like the button to «add a line Prosecutor...» ' to add lines in the subform procSet for each click.  Currently, the button adds only a single instance.  I'd appreciate any help with javascript.  I tried various code examples, but I think the problem is that I need to add pages, then the instances (I think), in any event, I can't fully functional code beyond one case.  Thank you.



    https://files.Acrobat.com/a/preview/62a361cd-fc1e-49F2-BE2A-50d7e18ea98f

    Hello

    replace the current script of the addAttorneyRow button with:

    _attorneySet.addInstance(1);
    

    And don't forget to allow breaks page for procSet :-)

  • Problem with Instances of subform at the first opening

    Hi all

    I have a complex form with multiple subforms that I need to have zero cases for the first time the form is opened. Most of these subforms that I put the initial case = 0 on the palette object do exactly this - they behave and open with zero cases! However, I have a subform that always starts with an instance (instance 1 instead of zero cases). I really want to get around this, as I did in the past when it has heppened. I want to solve it.

    I tried

    • Unpack the subform and repacked in a new subform
    • Manual change of the < occur / > element in the XML file for the subform.
    • several times to try different things in the object palette - the check box of the original meter always comes back to disabled and the County empty - I see actually it unchecking itself and removing the '0', just after I go back to Design view of the preview. This occurs even after I manually put the values in the XML file. I recheck the object palette to see that my changes are reflected there (they are) and then he comes back... to the return of the preview, and my < occur / > edit disappears.
    • I looked for the scripts that could be the cause - without a bit of luck.

    I met this kind of thing before and finally abandoned and used the property of 'presence' as a workaround. Subforms not always get used by the user and they should only exist when the user needs them. I plan to export the XML data in this form and exporting a lot of just empty elements presents another problem, I would like to avoid.

    Any suggestions are welcome. I hope that someone knows a solution - I spent too much time on it.

    See you soon,.

    Stephen

    I'm sorry. did you or did you not reproduce this with a simplified version of your form?

    Player will perform the initial design layout as you see in Designer, unless changed via the script at run time.

    I can't reproduce what you ask in a simplified example. I suggest you log a ticket with the help of Adobe Enterprise, so that your form is open to the public (since you can't share in a public place).

  • Repeating subforms after the application of usage rights

    Hi guys,.

    I was going crazy trying to get this problem solved in recent weeks. No unfortunately I cannot post the PDF because of privacy issues, but I hope you might be able to point me in the right direction for what could be causing the problem.

    The problem

    We lack a problem once the LiveCycle PDF is opened in Acrobat Pro and enabled usage rights. Once save us the PDF file, then open, Extensible subforms start behaves badly. By example, when we re - open this document, rather than the subform with 1 instance (as it should be by default), it opens with several instances of 2, 3, 6, or 20).

    This problem occurs only one time use rights have been activated on the document, and it's always the same number of instances is repeated.

    Details of the document

    The PDF document was created in Indesign and then imported into LiveCycle to apply interactivity. There are a total of 17 pages

    There are several subforms in the entire file on the different pages. Each of these subforms has a button below them which allows the user to add additional instances of the subform (using the built-in script that generates LiveCycle). Each subform has a minimum number of limit 1 and maximum 20. The "original" counter has been set to 1, but it seems that LiveCycle removes this value if it is the same as the minimum number.

    This document does not tie into any database. It is simply an interactive document that allows users to show/hide the pages based on the boxes they check on the first page (some page visibility changes). The idea being, the customer can save the form once they have filled in the required fields, and then send it back, so recording feature is necessary (this is why we need the rights to use).

    What I've tried so far

    I did a lot of reading on the subject, and I've seen mention of people with non-unique names subforms or empty subforms may cause the problem. I checked the document and subforms all have a unique name and there is no form under vacuum.

    As a way to try to identify what elements might be the cause of the issue, I've resorted to deleting several pages of the document to track a specific item which could be causing the problem, however, I didn't have much luck with this. The removal of most of the pages other than the unique repeating subform has resulted in the subform repeat 6 to 8 times (don't remember exactly, but it's already repeated 20 times)

    Any ideas?

    I know it's a bit difficult without being able to see the document directly, but I hope someone might have a suggestion for what I can remember. Is it just screwing things up usage rights, or is potentially something in my code which comes into conflict with the rights of use. The thing I find most confusing on this scenario is the seemingly random to see how many instances. The first subform before loads the available maximum limit, but the rest of the forms more load with only 2 instances (when they also have a maximum limit of 20 pieces).

    I have read a few forums where people suggested Reader Extensions, but according to Adobe system requirements, it does not correspond to what we are trying to reach. There is no database interaction at all - we demand that the ability of users to save the PDF locally.

    If anyone can offer any suggestions for where I might need to look at the issue, I would be very grateful. Thank you!

    Hello

    Your description of the problem is very detailed. Send me a private message if it is possible to send the form to a person instead of posting publicly.

    Here's a thread repeating subforms that can help: registration complete form duplicates subforms I used a line of script console.println to try to help identify the problem.

    I try and minimize the number of subforms flowed and don't use them only where they are required for the content of this subform. In all other cases, use positioned subforms.

    Minimum number serves only one purpose when you have a button that allows you to remove instances. Minimum number of 1 means that the user can delete instances, but not the last remaining instance. Unless you need to, you could take this.

    I don't think that the problem is because the form is activated. There must be something else in the background.

    Try to open the Javascript Console in Acrobat/Reader (by pressing command + J) and see if errors and warnings. Also, put in a console.println script to display the nodes in the console.

    Good luck

    Niall

  • Remove the instance and hiding the subform

    Hello world

    I have a problem with the instance Manager.

    I have a subform repeated containing a button Delete. The delete action works great until I have remove the last instance I want action, not only to remove the last instance, but also to hide the entire subform.

    I use this script on the click event:

    _Person1.removeInstance (this.parent.parent.index);

    I tried to put this on the MouseUp: (found here: http://forums.adobe.com/message/4137110#4137110)

    if (this.parent.parent.instanceIndex == this.parent.parent.instanceManager.count 1) { }

    form1. Personer.Presence = 'hidden';

    xfa.host.messageBox ("what it was");

    }

    else {

    form1. Personer.Presence = 'present';

    xfa.host.messageBox ("" Hello, more cases "");

    }

    If I have multiple instances and delete number one or two, everything works fine. But if I start by removing the last instance that all previous instances are also deleted and the subform "Guests" is hidden. I wanted to just remove one instance at a time.

    Hope there's help out there

    I think what happens is that when you check the Instance Manager for the count, there is nothing to count because there are no bodies. That and try to do it from the object that is removed, there is probably something there too.

    To access the Manager of the Instance of non-existing objects, you must use the shortcut of underscore.

    Then try this on the layout event: loan of the guests subform:

    If (_Person1.count == 0) {}

    This.Presence = 'hidden ';

    }

  • I had a problem with slow, so I used "reset". The popup ran forever so I stopped it. Now I can not remove or add the program.

    I had a problem with slow, so I used "reset". The popup ran forever so I stopped it. Now I can not use, remove or add the program. How should I proceed?

    TIA,
    BWSwede

    Try to create a new profile.

    See "create a profile":

    If the new profile works then you can transfer files from a profile in the new profile, but make sure not to copy corrupted files.

    What problems do you have that you want to reset Firefox?

    Firefox creates a new folder of old data of Firefox on the desktop?

    If reset you Firefox and a new profile is created and some of your data (bookmarks, passwords, cookies, form data) is automatically imported and your current profile will be moved on the desktop (old data of Firefox).

  • The user interface related problem: cannot add the status buttons

    Hello

    I'm developing a screen where I need the header and status with controls like buttons and the EditFields. Please take a look at this code

    editField = new EditField();
    
          updateButton = new ButtonField("Update");
    
           cancelButton = new ButtonField("Cancel");
    
          /**        * set up Status manager       */       VerticalFieldManager statusVerManager = new VerticalFieldManager();       HorizontalFieldManager statusManager = new HorizontalFieldManager();
    
            /**        * Add fields in status manager        */       statusManager.add(editField);     statusManager.add(updateButton);      statusManager.add(cancelButton);
    
            statusVerManager.add(new SeparatorField());       statusVerManager.add(statusManager);      /**        * Set status as status manager        */       setStatus(statusVerManager);
    

    Here I can see my edit of the status field but may not see a Cancle and update buttons.

    Previously, I have tried with subLayout() for both the Manager but could not display buttons.

    Waiting for your comments on my code. Atleast help me understand what it is wrong.

    Thanks in advance people.

    Hello

    Solved the problem myself.

    Here's the summary I've done.

    1 removedStatusVerManager. In fact, it has been used only to a separator above the horizontal management of State.

    2 called sublayout inside the statusManager and delimited the height and width.

    3. called setLayOutChild() to do my fiedl edit fixed width and height.

    (I had followed procedure until 3 before I had done new is in step 4)

    4. calls the setPositionChild() method. In fact when I throw a child I have defined his position and the position of all the children who will be added in the same manager. So also set the position of other controls of BROTHER with her.

    5. Add the controls in the Manager.

    He spent setStatus. And I am able to make the desired screen.

    Thank you @ekansh for your answers.

Maybe you are looking for