controlling nested subforms

Hi I have a form that contains several nested subforms (mainForm > subForm1 (mainForm.subForm1) > subForm2 (mainForm.subForm1.subForm2) > subForm3 (mainForm.subForm1.subForm2.subForm3)).

In each subform there is a drop-down list object only when you select an item, it allows a form of void, the first level works without problem (javascript:change, for the drop-down list) that is

mainForm1.DropList::change - (Javascript, client)

var newValueA = this.boundItem (xfa.event.newText);

Switch (newValueA) {}

case '1 '.

mainForm1.subForm1.presence = visible;

case '2 '.

mainForm1.subForm1.presence = hidden:

}

However when the next shape void (subform1) preparing to be hidden or visible above:

mainForm1.subForm1.DropList::change - (Javascript, client)

var newValueA = this.boundItem (xfa.event.newText);

Switch (newValueA) {}

case '1 '.

mainForm1.subForm1.subForm2.presence = visible;

case '2 '.

mainForm1.subForm1.subForm2.presence = hidden:

}

nothing happens and when I debug using the javascript debugger, I get: invalid assignment left.

Is it not possible to have 3-4 deep subforms that appear or are hidden according to user input? or I use the wrong code to refer to this dynamic form of appearing void?

any ideas would be fantastic,

Keith

In my original form I used hyphens instead of scores and that was why the form was not working.

Tags: Adobe LiveCycle

Similar Questions

  • Dynamic nested subforms

    Is it possible to have a dynamic nested subform?

    What I do is create that will have a dynamic table that will be duplicated by the user as required. However within each PivotTable I hope have dynamic sections as well. Is this possible or should I re - plan my form?

    In your script, you dynamic._ "maintable".addInstance (1);

    You just need to remove the quotes from maintable all about.

  • You can control several subforms (6) show/hide drop-down list

    Hi, I'm trying to get a drop-down menu to control the 6 options of subform

    List values

    1 = no value = 1

    2 = 1 value = 2

    3 = 2 = 3 value

    4 = 3 value = 4

    5 = 4 value = 5

    6 = 5 6 = value

    five forms

    codno1, codno2, codno3, codno4 (each a numeric / date)

    and codno5 (a notice of revision)

    I want javascript to the output/change of difficulty? event from the drop-down list

    something like that...

    but I'm not a programmer and not sure how to structure properly - any help/pointers please!

    I can get it to do the premiera with { }

    if (this.rawValue == '2')

    cod1date. Presence = 'visible '.

    }

    {

    if (this.rawValue =='3')

    cod1date. Presence = 'visible' & & cod2date = 'visible ';

    but when I try to control several subforms that it breaks...

    I thought that something like below makes sense...

    If this.rawValue is 6

    codno1. Presence & & codno2.presence & & cono3.presene & & codno4.presence & & codno5.presence = 'visible ';

    otherwise if

    this.rawValue == 5

    codno1. Presence & & codno2.presence & & cono3.presene & & codno4.presence & & 'visible' = & & condno5.presence = 'hidden ';

    otherwise if

    this.rawValue == 5

    codno1. Presence & & codno2.presence & & cono3.presene = 'visible' & & codno4.presence & & condno5.presence = 'hidden ';

    ElseIf... And so on...

    The syntax of your function that is not correct. You missed the quotation marks around the value of test and the break statements.

    var A = this.rawValue;

    Switch (A)
    {
    case "5":

    break;

    case "6":
    cod4date. Presence = "visible";

    break;

    case '4 ':
    cod3date. Presence = "visible";

    break;

    case '3 ':
    cod2date. Presence = "visible";

    break;

    case '2 ':
    cod1date. Presence = "visible";

    break;

    /*

    You can also have default parameters too:

    */

    by default:

    }

  • Populating a table with values of nested subforms / instances

    Hello

    Newbie desperate here...

    I have a purchase order which is adjustable by the user.

    First, they introduce a main category. (such as software, hardware, spare parts...)

    Each category can have several categories (like Adobe, Microsoft...)

    Each main category is placed on a new page (made like that just to make it better)

    At the bottom of each category, there is a subform total (TOTAL Software, Hardware TOTAL...)

    orderform_01.gif

    Everything works like a charm and looks great.

    But now I want a (SUMMARY) list that shows all TOTAL in each category.

    Since I did not now how many categories are met I think I need a dynamic table in full growth.

    And that's where I blocked for 3 days...

    Would you please someone so nice and give me a small sample...

    Thank you very much for your help.

    Jixin

    I think that's what you're after. I put the code on a button at the end of the doc so it would be easier to debug. For example, you can merge a data file to the form (under Preview) in the properties of the form so that you do not have to import each time.

    in any case, take a look and tell me what you think.

    Paul

  • How to create a nested local variable control custom?

    I inherited code which has a cluster of CTL control nested inside another group of control CTL.  If I drag the control nested outside the border of the other, I can right-click to create a local variable, I need to connect to the bundle name.  However, as soon as I drag the inside the limits of external control, it breaks the local variable.

    How can I create a local variable in a cluster THAT CTL nested in a second group CTL?

    Is there some kind of reference OuterCluster.InnerCluster, that I can use if I do a local variable of the external group?

    It turns that I need a local variable for the cluster internal.

    JPG attached shows that I created a local variable for the external cluster (ParametersCluster), used a Unbundle based on the name to access cluster internal (EmptyParmeters) and can access one of the elements through an another Unbundle by name.

  • How to structure subforms

    I'm confused August the correct way to structure subforms.

    When my form has several subforms, some ran, some positioned, should they be nested within a subform page or is it the individual page subforms?

    I read the book of "Creating dynamic forms with Adobe LiveCycle designer" by J.P. Terry and he mentions that too many nested subforms can slow down form rendering time.

    What is the best practice?

    ~ Gift

    I don't know if it of good or not, it really depends on what you're building. I think you must have a lot of nested before its performance impact to a notable extent subforms.

    I tend to put everything in a main subform with items divided into several subforms. Especially if there are many display and hide and flowed layouts, then I don't have to worry about how things are going to take - it's just a big subform sank with all what it. I also use subforms to group objects that I find the function grouping of the designer to be painful to use.

    But it may be useful to have more subform of a high level according to what you do, as with static pages. I had a few projects where the main part of the form is casting, but it is followed by static pages help or that sort of thing, so I kept static pages separated from the subform flowed.

    Having a main subform helped a few times when I've added controls for JavaScript or Acrobat version, then you can hide or go and see the entire form in one.

    -subMain (cast)

    -KN (positioned)

    -subInfo (cast)

    -subHidden1 (positioned)

    -subHidden2 (cast)

    -subFooter (positioned)

    -subStaticPage (positioned)

  • nested entity collection interface suggestions

    So in the OPA, entities can have entities. In our case, both are the containment (One to Many). I feel that we have all data correctly, but we wanted a hard time to come up with a good maintenance. Ideally, I think that we should be able to have entity collect controls nested within a parent entity. But this is not allowed.

    Suppose we collect people, and each person has instances of work. Collection of information on instances of people is fine. But how do we get information on instances of work for each person in a way that makes sense to the user? It seems that we must implement a selective collection for the jobs screen. So, which causes a new screen fired from work must be created for each instance of a person. It wouldn't be ideal for us. There could be a lot of work out fresh screens and tabs that could be a source of confusion. Can we define the collect screen job that can collect and properly assign jobs to people?

    The interview goes like this: enter data for the first person, enter more information and then enter jobs for the first person. Then return to the person information page and add a second instance of person. Enter the information for the second person, and then add instances of work for this second person. Then return to the person information page and add another person... etc.

    I'm not thinking about this the right way? Is there a demo there interview which collects information for nested entities?

    I'm new to OPA and uses the version of may 2015. Thanks for any help.

    One possible option is to have a job just being another entity content by global.

    Create a relationship of work to anyone.

    First collect people.

    Then, collect jobs and their relationship to the people on one screen...

  • Page subform must be sunk for the content on the page other subform extend over a page break?

    I have content problems span page breaks.  For example, I ran a positioned subform encapsulated in a subform.  I tried different combinations of the parameters "Allow page in the content breaks" for subforms.  However, I can't get content in subforms extend across a page break, if I set the page itself to slur subform.  I prefer not to do, because it requires substantially more work on the page of design.  It is essential that the page itself subform the value passed for the content span a page break?  If there is a resource that deal with this specific subject please report it me.  Thank you.

    If an object should allow page breaks then all parents direkt Hat also for this purpose.

    For example: If the nested subform 'subform1_2_1' should allow pauses while her parents must be passed and allow page breaks too.

    Form1

    pagesand

    MasterPage1

    page

    Subform1

    subform1_1

    subform1_1_1

    subform1_2

    subform1_2_1 (allow page breaks)
    subform2

    subform2_1

    subform2_2

    I hope this helps!

  • Hide repeating them subform

    I have a subform that is nested inside a repeating subform (Q1). I wish I could click on a button to hide all instances of the nested subforms. It is called Subform3.Capture.PNG

    I tried this script:

    LPA. FormButtons.HideButtons::click - (JavaScript, client)

    this.resolveNode ("Q1 [*]. Subform3 [*]') .its presence = "hidden";

    Use this option if Subform3 has only one instance and if Q1 does not need to be specified in its index (if it breaks, use the second loop)

    for (var i = 0; i)< this.resolvenode("q1").instancemanager.count;="">

    this.resolveNode ("Q1 [" + I.ToString + "].") Subform3') .its presence = "hidden";

    }

    Use this if 3 subform has only one instance and Q1 must have indicated its index

    for (var i = 0; i)< this.resolvenode("q1[0]").instancemanager.count;="">

    this.resolveNode ("Q1 [" + I.ToString + "].") Subform3') .its presence = "hidden";

    }

    Use this option if Subform3 has more than one instance

    for (var i = 0; i)< this.resolvenode("q1[0]").instancemanager.count;="">

    for (ii var = 0; ii)< this.resolvenode("q1["="" +="" i.tostring()="" +="" "].subform3").instancemanager.count;="">

    this.resolveNode ("Q1 [" + I.ToString + "].") Subform3') .its presence = "hidden";

    }

    }

  • How to use javascript or formcalc to reference the child controls (no name)

    Hello world

    I've created a ton of reports in the past, and I am now looking to create some reusable objects so that other people can use features of advanced form without having to learn to use scripts.

    A lot of the coding was done using this, .parent, etc. so that they can rename controls and subforms without having to worry about breaking the scripts. A question that I have is that some of my code looks at the child controls and refers to their name (for example, I have a code that uses setfocus to move the user to the first field of a subform).

    In most languages, there are ways to refer to child controls through an indexer or an array of elements or children. i.e. Subform.items [0] .rawValue.

    I know that this would cause some problems, but I think I could sort it out, if I only knew where to start. Is it possible to reference a child control without a name?

    Thanks for your help!

    -Scott

    Hi Scott,.

    The subform has a collection of nodes, you can run a loop though, as you suspected him.  If could show more than you want, but you can test the className to see if it is a field, then ui.oneOfChild.className to the type of the field. Then;

    for (var i = 0; i)< subform1.nodes.length;="">

    {

    var n = Subform1.nodes.item (i);

    Console.println (n.className + "" + n.name + "" + n.ui.oneOfChild.className);

    }

    I hope this helps.

    Bruce

  • How an element of the specific instance of control/get "from outside"?

    Hello

    I use a function in my script object to control my subforms flowed and reproducible.

    Each subform contains a checkbox

    structure of the form:

    Page 1

    mysubform 1 (subform flowed, repeatable)

    Checkbox

    mysubform 2 (instance number "2")

    Checkbox

    mysubform 3 (instance number '3')

    Checkbox

    ...

    mysubform n (instance number "n")

    Checkbox

    // click event on CheckBox
         doProcessOnSubForm(this):
    
    
    
    
    // scripting object
    function doProcessOnSubForm(CheckBox){
         var InstanceOfMysuborm = CheckBox.parent._mysubform;
    
         console.println(InstanceOfMysuborm.count); // Outupt = 3, so I have 3 mysubforms
         
         // make only instance number 2 invisible
         InstanceOfMysuborm.SOMEmagicCODEtoGETitemNUMBER2.presence = "hidden";
    
    
    }
    

    Anyone have an idea how I can get the number of 'point' 2 of mysubform?

    p.s. I'm not removeInstance; )

    Thank you

    solved by myself

    xfa.resolveNode ("... pathToSubform...") [ » + 2 + «] ") .its presence is hidden;.

  • Definition of the attribute of the presence of a repeating subform

    I have a repeating subform with work, add and remove controls from subform instance. In other words, until I have change the presence of the repeating subform.

    The subform is set to "hidden" under initialize (event) and still depends on the outcome of the click of two radio options.

    If the user clicks on no, then the subform remains invisible. End of story, it will not be used.

    If the user clicks Yes, however, then the repeating subform then should appear and have the buttons 'Add' and 'remove' functioning.

    As it is, I can't get the subform to repeat if I have not defined it as 'hidden' on initialize (in other words, I have no script attached to the subform hide until the radio options are enabled/disabled) otherwise it appears as said to, but then repeated using the instance Manager.

    I tried to use the presence = "hidden"; attribute under different events of scripts with similar end results. I guess because the original repeating subform has presence is hidden until the 'Yes' box is clicked, then each additional subform added by using the instance controls add subform will be stuck in 'hidden '...

    catch 22-ish. What I'm trying to do is not possible, or I forget something.

    Any suggestions would be helpful.

    Thank you in advance.

    Here is the updated form which is adding lines when you click them...

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

    Instead of setting the subform presence property to hidden in the Properties palette, I did it in the Initialize event of the subform NAnimalExposure.

    I would like to know if that helps...

    Thank you

    Srini

  • How to create dynamic arrays parallel/side-by-side in Adobe cycle

    Is it possible to create dynamic arrays parallel/side-by-side in Adobe cycle?  If so, how?

    Given that the tables have different sizes, in that I am running wrapping issues with running adjustment of Western characters and characters from the pagination with checkpoint.  Any other ideas?

    In fact, I had tried this solution ("wrapping the tables in a subform of position and set to automatically adjust the height and allow page breaks"), but it did not work.  Something to do with nested subforms of position within a subform control flow etc.  So to make it work, I set the page to be a subform of position and the auto-hauteur value and allow page breaks and I unpacked the paintings while they were only 'wrapped up' of the page itself.

  • What is the best way to build a customizable list of questions?


    Hello world

    I have a pool of questions, divided into groups of different subjects, - they are used in telephone interviews. The interviewer selects only the questions he or she wants to ask before the interview takes place and hiding the rest (in general, about half of the pool of questions will be used). During the interview, the interviewer recording his thoughts in a multi-line below each question text box and then as soon as completed prints or saves the PDF file.

    I did what I mentioned above in the form of a crude Web page here at work, using a javascript show/hide to manage the masking and the display of the questions to ask. The problem is, it is not very easy to use and don't hold up well when printing. My manager says it's too ask the interviewer to go to their browser settings to activate during the printing background colors.

    Enter LiveCycle. After watching and playing with it for a week, I wonder if I can use it to build something better? I realized the masking with nested subforms and adjustment of the flow rate accordingly, but I would appreciate really any input regarding: (A) LiveCycle is a good choice for what I'm doing? and (B) is an easier, more elegant method to add/remove questions from the "pool"? I always try to get through what LiveCycle can do. For reference: here is a screenshot of my web version (I would like a link to it, but it's on my company's intranet).

    Thank you all very much for your time and any ideas you may have,

    Chris

    question.gif

    Have you tried of repeating subforms? You could start the form with an xml file, and then allow the interviewer to delete unwanted questions. Look at this article:

    A form to create a form

  • Data binding for Idiots (myself)

    Hey everybody,

    I was asked to create a form that is much more complex than anything I've done in the past. I just wanted to ask a few questions to the experts here before I'm begins, to make sure that I don't make any huge mistakes.

    The complexity of the form lies in the multiplicity of repetitive nested subforms, the fact that it is three forms (which projected form depends on a selection in a drop-down list), and the fact that the form must be designed to export its data such as xml.

    The extent of the building, the form will, I'm comfortable with everything except for export in XML format. I've done a few times, but I'm not sure that the assumptions I made are correct. I tried to read the help files, but I'm not sure I want to come.

    Roughly, I use a ton of subforms to ensure that the layout of the form works dynamically. I don't want all these subforms is displayed in the xml import. The way I do it is to affect the data binding on the subforms "No data binding." Does have an impact on the way that data is stored in the form? If I don't want the value of a field to export, I can put it is linked to "no data binding", or this issue will prevent the values being recorded?

    My last question concerns the link "Use name". So far, in forms I made so that all fields have different names. This form is so large and has so many similar elements, it would be useful to resue field names in different areas of the form. For example, two versions of the forms has a section for the associated addresses. The fields in these sections are the same. I can name them the same thing, as long as they are in different subforms? Or it will cause a conflict when the export/backup.

    Sorry for the long post. In short:

    (1) what the "no data binding" binding afftect data have on subforms and fields, regarding the data saved and exported data? Is there any 'traps!"that I should be aware of?

    (2) what are the guidelines I should follow to make sure that I do not come across all naming conflicts? I just need brother fields are not named the same, or all names are separate?

    I'd appreciate any help that you guys might be able to offer.

    -Scott

    Scott,

    (1) no mandatory date refers to a form object is not included in the exported XML file. Data binding has no effect during the recording of data when you save a form, the form contains the data.

    (2) for me, the #1 rule is use a schema and a schema binding. It is worth the initial investment in time. What you see in the diagram, this is what you see in the output data, given the form object is bound to the schema. You can link an element of single to multiple form objects schema if you need to re - use data through forms, too. Rule #2, for me, is to explicitly set the names sub-shape to simplify the schema binding and to avoid name collisions.

    I have attached a very simple form (with the built-in schema), schema, and the exported xml file to show.

    Steve

Maybe you are looking for

  • Portege 7200 keyboard

    Can anyone help. Letters of keyboard double types. that is, when you type s I get ks when I type, I get iw. Shift puts on NumLock SPACEBAR works the nt, nordoes return space group. Also affected by the same problem numers

  • Unable to connect to the server hosting site

    When I connect my hosting site my log in username and password are recognized, but the site continues to send me to the log in page. Is my firewall or port settings prohibit access? JC

  • using C3180 with i - mac Mac OSX 10.6.4 AND Laptop Mac OSX 10.5.8

    Today I've been waited when the experts are there bc that the Apple store has been unable to help me.  I can not scan to computers.  I used to be able to with the laptop, but no longer.  Please tell me what to do and download anything exactly where.

  • My mouse stopped working

    My computer tells me that the USB is not recognized.  It says "windows has stopped this device because it has reported problems" code 43.  My mouse is a retractable laser mouse mini Toshiba, model PA3569 number.  I tried a different mouse and I can't

  • Dell M6700 Nvidia Quadro K4000M No. after Secure Boot screen

    Hello M6700 doesnot show anything on the screen. Here's what I did: Windows 10 in UEFI enabled and active Legacy ROM installed. After installation, start secure. White screen now. I tried to reset by removing the CMOS battery. no luck Need help. Than