Automatically populating fields from repeatable subforms?

I have a flowed expandable subform with a table in it containing various fields.
I want a second positioned subform to automatically populate with the information from the expanding rows as the user adds information to the five allowed instances in the expandable subform.
How can I accomplish this in livecycle designer es4? Thanks.

Do y
The second table (Summary Insureds) is static (ideally, it should also be an expanding subform, but I haven't been using livecycle designer long enough to have mastered this yet.).
If  you wouldn't mind, I could send you the form offline, if I haven't been clear enough about what I'm trying to do.
I entered the following script on the exit event of the Table.Row1.DDAmt  field:
for(var i=0;<5 &&
i(xfa.resolveNode("Table1.Row1").instanceManager.count; i++)
xfa.resolveNode("form1.MainForm.SubformAppl.SummaryInsureds.Table.Row1.SubtotalDDAmt"+i).r awValue=
xfa.resolveNode("form1.MainForm.SubformAppl.Applicants.detail.Insureds.Table1.Row6["+i+"]. SubtotalDDAmt").rawValue;
I also tried the following FormCalc script on the calculate event of the SubtotalDDAmount field in the static table, but I know that it is catching only the first instance. Is there a way to modify the formcalc script so that it will repopulate the remaining fields with a new entry when a new instance is created?
$=form1.MainForm.SubformAppl.Applicants.detail.Insureds.Table1.Row6.DDAmt
Message was appended by: NellievD

Similar Messages

  • How to compare and copy the fields from repeating subform to another subform, same structure.

    Dear All,
    I am using LiveCycle Designer 8.2.
    I have the following requirement, and did not figure out the best way to implement it using JavaScript.
    The Form has, say, Subform A with Repeating Inner Subform, say it has the Education History of the Staff.
    I want to put another Subform B, with similar structure to From A, and create a button/function to copy the field data values from A to B.
    Subform A will show the user the fields of education with Read-Only Mode.
    Subform B will show the user the same data values with write-enable mode. This subform will allow the user update his Education Records.
    The fields are:
    0. Staff ID: Text (Key 1) (always read-only and hidden, becuase it is on the main form),
    1. Degree: Text,
    2. Specialization: Text,
    3. Institution: Text,
    4. Start Date: Date (Key 2),
    5. End Date: Date.
    Another function is needed is to compare the same records between form A and Form B.
    (Note: The Education record of a Staff has primary key of Staff ID and Start Date. Meaning, the Staff cannot have tow different degrees in starting on the same date.)
    The user may change the Institution in form B or change the Degree. I need to highlight, on Subform B, the row which was changed or added by the user. This means I need to do lookup against Subform B using the Key Values from Subform A.
    I have already developed the Form, and I have about 5 Subforms to allow updated by Staff: Education, Experience Inside the company, Experience Outside the company, Job Skills, Membership Record, ..etc. One thing I did is that the Field Names I used in Subform A are not the same of the fieldname in Subform B, but the have same suffix, and different prefix. For example, for the Education:
    Subform A - Original Values:
    1. Degree: OrgDegreet,
    2. Specialization: OrgSpecialization,
    3. Institution: OrgInistitution,
    4. Start Date: OrgDateStart (Key),
    5. End Date: OrgDateEnd.
    Subform B - Updated Values:
    1. Degree: UpdDegreet,
    2. Specialization: UpdSpecialization,
    3. Institution: UpdInistitution,
    4. Start Date: UpdDateStart (Key),
    5. End Date: UpdDateEnd.
    I understand if the Key field is updated, then it is like it was deleted, and added a new one.
    I know how to do that in ASP.NET, but need help in Adobe LiveCycle using JavaScript.
    Please help me to write these two functions, as they are very urgent requirement.
    Tarek.

    In the event Exit of the 1st subforum.invoice you will find the code to assign the value to it's "brother" on page4.
    Also, on the add button i added the code to add a record to the page4 subforum.
    To make this work you will have to copy/past the code of the exit event to all fields you want to copy and in the xfa.resolvenode("XXXXXXX[].fieldName") command replace fieldname with the actual name of the field you're at.
    I didnt't do anything to te remove line button because i don't know how you want it to work, but, if you want to control the p4 subform with the p1 subform, you shouldn't allow for lines to be removed directly in the p4 subform.
    Hope this helps.

  • How to Automatically Populate fields from Style no.--All data in XML- 2nd Request

    To start with i am a noob in Livecycle, and zero knowledge in coding...<br />I basically want to create 1 dropdown list (syle #) which shall automatically refer to xml and populate different fields (qtyperinner, buyer etc.)<br /><br />Here's my XML-<br /><br /><?xml version="1.0" encoding="utf-8" standalone="yes"?><br /><br /><document><br /><row><br />150833<br /><QtyPerMaster>24</QtyPerMaster><br /><QtyPerInner>6</QtyPerInner><br /><VolofMaster>0.039</VolofMaster><br /><Buyer>Fred Meyer</Buyer><br /></row><br /><row><br />87102<br /><QtyPerMaster>24</QtyPerMaster><br /><QtyPerInner>4</QtyPerInner><br /><VolofMaster>0.034</VolofMaster><br /><Buyer>Fred Meyer</Buyer><br /></row><br /><row><br />821011<br /><QtyPerMaster>50</QtyPerMaster><br /><QtyPerInner>50</QtyPerInner><br /><VolofMaster>0.053</VolofMaster><br /><Buyer>Insource</Buyer><br /></row><br /><row><br />110609<br /><QtyPerMaster>12</QtyPerMaster><br /><QtyPerInner>2</QtyPerInner><br /><VolofMaster>0.022</VolofMaster><br /><Buyer>Indigo</Buyer><br /></row><br /><row><br />110608<br /><QtyPerMaster>24</QtyPerMaster><br /><QtyPerInner>6</QtyPerInner><br /><VolofMaster>0.024</VolofMaster><br /><Buyer>Indigo</Buyer><br /></row><br /><br /><row><br />150785<br /><QtyPerMaster>12</QtyPerMaster><br /><QtyPerInner>2</QtyPerInner><br /><VolofMaster>0.055</VolofMaster><br /><Buyer>Pier 1</Buyer><br /></row><br /></document><br />_______________________________________________________<br /><br />Have already managed to create dropdown with style number...and it works!!<br />(and have connected the XML with form properties as well as data binding)<br />please advice how to link/bind style # field with the rest of the text boxes to generate data underneath that particular style number from the XML.<br />it could very well be possible that my XML is written wrong (without heirachy or something)...if so also advice how that needs to be with an example...kindly make sure to advice in great detail as i would'nt understand otherwise.<br /><br />Question 2:- Based on the "style #" selection i want an image to be populated from C: (it should search the whole drive to find filename/style number) Please advice.<br /><br />Lastly i have already looked at the Purchase Order sample PDF which came with LiveCycle..and it doesnt seem to be of much help.<br />Thanks in Advance-<br />AK Dolven

    Hi Judy,
    I think you need to programatically set the layout and copies options for your XML publisher concurrent program using FND_REQUEST.ADD_LAYOUT before calling FND_REQUEST.SUBMIT_REQUEST.
    Thanks
    Shailendra

  • Populating fields from database values

    I have a page being populated from database values. I used the Application Builder Wizard to create the application. One of the fields is displaying on the report, but when I click edit, the value is not there. The field is defined as a float and being displayed as a text item. I have created this Application twice with the same results.
    Any ideas?
    thanks!
    Christie

    Thank you for the quick reply!
    I turned on the debug, to ensure the automatic fetch
    process it on and it is. The edit page has 7
    fields, all are being populated except for this one.
    I have confirmed it is using the correct database
    column and it is replacing the existing value the
    same as the other fields.
    Any other ideas to what could be going on?You can see each page item assignment in the debug output. Look there to see where the page item is being set, and potentially unset I suppose. The thing to look for here might be page processes that might be interacting with that item.
    You could also simply drop the problematic page item and recreate it to see if you can make the value stick.
    Earl

  • Populating Fields from Database

    Hi everyone,
    Need some help from the experts.  I have a PDF form that is already connected to a Progress/OpenEdge database through ODBC connection.  Here's what I want to happen:
    Just as an example, in the database suppose the 'Job' table contained 3 fields: JobID, JobDescription, and CustomerName.  When a user enters a job number into a specific PDF form field which corresponds to the JobID field of the database, the form fields in the PDF for Job Description and Customer Name auto-populate with the corresponding information from the database.
    Can this be done?
    Thanks so much,
    Jon

    Thank you for the quick reply!
    I turned on the debug, to ensure the automatic fetch
    process it on and it is. The edit page has 7
    fields, all are being populated except for this one.
    I have confirmed it is using the correct database
    column and it is replacing the existing value the
    same as the other fields.
    Any other ideas to what could be going on?You can see each page item assignment in the debug output. Look there to see where the page item is being set, and potentially unset I suppose. The thing to look for here might be page processes that might be interacting with that item.
    You could also simply drop the problematic page item and recreate it to see if you can make the value stick.
    Earl

  • Populating Fields from one PDF to another in Acrobat 9 Portfolio

    I have several PDFs in a portfolio but I would like the Name, Address etc fields to populate into the next PDF after they are entered into the first PDF in the portfolio. I know this would be simple if all the PDFs were merged into a single file with the field name the same, but I need the PDFs within the portfolio to stay separate as each is a distinct form.
    Any suggestions? Is there a better way to link these PDFs together instead of using a Portfolio? I would like them all to open at the same time which is why I initial chose to use a portfolio.
    Thanks in advance.

    It's possible, but not necessarily easy to set up. Below are links to a two-part article that explains an approach:
    http://blogs.adobe.com/formfeed/2010/07/shared_data_in_packages_part_1.html
    http://blogs.adobe.com/formfeed/2010/07/shared_data_in_packages_part_2.html
    Note that he describes an approach that is extremely security conscious, and is therefore more complicated as a result. I'm not saying this is bad, but the threat it seeks to avoid is pretty darn rare for most folks. That is, rougue PDFs that you have loaded that are attempting to grab data from other documents you may have opened.
    The article focuses on XFA forms that are created with LiveCycle Designer, but the same type of thing could be used for forms created in Acrobat. You'll just have to modify the XFA-specific stuff to use with acroforms.

  • APEX4: Populating fields from database based on the SelectList value

    Hi,
    I've a Select List and 4 Text Fields on a form. On selecting a value on the Select List, I've to populate the Text Fields by fetching its values from the database by using the Select List value as the primary key.
    How can I do this in APEX 4?
    Thanks for the help.
    --Hozy                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Thank you so much for helping me out.
    Yes, it comes from the same table account.
    These are the sqls to fetch the 4 values in each dynamic action:
    select a.address1 from account a where a.account_id = :P14_ACCOUNT
    select a.address2 from account a where account_id = :P14_ACCOUNT
    select a.city from account a where a.account_id = :P14_ACCOUNT
    select a.postal_code from account a where a.account_id = :P14_ACCOUNT
    Right now, I only have one dynamic action for text field P14_BILLING_ADDRESS_1, and even for just one the value is not showing up in it. Please note that when I added for dynamic actions, the the values were showing up in all the 4 text fields before.
    Then when I added 4 more dynamic actions for a different Select List (P14_CUSTOMER), but for the same text fields, it all stopped working. And now even a single dynamic action is not working. This is how the sql for next 4 dynamic actions looked like:
    select c.address1 from customer c where c.customer_id = :P14_CUSTOMER
    select c.address2 from customer c where c.customer_id = :P14_CUSTOMER
    select c.city from customer c where c.customer_id= :P14_CUSTOMER
    select c.postal_code from customer c where c.customer_id= :P14_CUSTOMER
    }

  • I need HELP! I want to populate fields from a data connection...

    I am new to livecycle and am having problems making this work...
    I have an xml data table that is 5 columns wide and 1000 rows deep. (So too much data for list boxes)
    The data connection comes in looking like this:    - DataConnection
                                                                                   - (Ordered Group)
                                                                                        -Row
                                                                                              -(Ordered Group)
                                                                                                    Job
                                                                                                    Customer
                                                                                                    Part Number
                                                                                                    Rev
                                                                                                    Description
    When I pull Row into the form it makes a subform with the 5 fields as above.
    When I preview this it automatically pulls in the first record from the data source...I want to be able to fill in Job manually and have the other
    fields automatically pull in the appropriate information from the correct row in the data source. I have not been able to do this! Can anyone
    help me?
    Thank You,
    CLC

    Hello,
            I am sorry to say that, i felt hard in understanding the requirement. Can you please pass over the working copy to my email address [email protected], i try to get what you are looking for.
         Please find a sample that you can download from the link below, which demonstrates populating fields from a data connection. please take a look at it and i hope this will help you.
    https://acrobat.com/#d=5TstZ2VeptoSs6IAZ*81Yw
    thanks,
    Rajesh

  • Drop-down list in one subform controls fields in other subform

    Hello,
    I am new to adobe livecycle. I haven't been spending time on creating a quite complex pdf fillable form.  It seems I rely heavily on this forum to find my answer.  You guys have been great.  Thank you. 
    I have a question on form and subform:
    I have a parent form which has subform1 and subform2.  Within subform1, I have subform1a and subform1b.  Same as subform2 with subform2a and subform2b.
    Parent form has a button called "Add".  As I click on 'Add', there is a new instance of subform1 added. 
    within subform1a, there is a drop-down1a.  Depend on the value selected for drop-down1a, certain fields in subform1b are visible.  Also, depend on the value selected for drop-down1a, button 'Add' can be visible or hidden.
    I find out that the above could only be accomplished if all the button and fields are in the same form.
    For instances, drop-down1a can't make button 'Add' visible or hidden because they are not in the same form. 
    Drop-down1a can't make fields in subform1b visible or hidden unless subform1b is nested inside subform1a. 
    Also, as I repeat subform, is there a way to control what fields in repeating subform be visible or hidden based on a certain selection?
    The last question: Is there a way to get a list of existing scripts that come with adobe livecycle and what they are useful for? 
    I want to upload my form so that you can see but I can't find a way to do so.
    Thank you very much for your help.  Truly appreciate your expertise on these subjects.
    Best regards,
    Sahra

    On the subform issue, there isnt any restriction on where you can add/hide objects from. It sounds like a scripting visibility issue where your hierarchy needs to be taken into account when you try and access an object through script. The objects are encapsulated inside a subform and are only visible if they are a child or on the same level as the current context. Outside that, you need to provide the correct path to an object, for example subform1a.dropdown1a would be visible to subform1b and so on.
    There are samples in the installed folder of designer under EN sub-directory and a few people have websites than do samples here. You can probably create a free account on Acrobat.com and publish forms there for people to see via link.

  • Repeating Subform reference (FormCalc)

    How do you concisely reference a repeating subform? I need to retrieve a value from a field in repeating subform within a repeating subform without explicitly referencing each field. Please provide a FormCalc sample if possible. Fyi, I have read a million for/if loop and resolveNode threads but still don't get it. The abreviated code is below but goes on forever... Thank you in advance for being so smart and helpful.
    if(PartNo==110) then
         Item1=sfQtMaster.sfQuote[0].sfDetail[0].sfPrice.Item1     //Quote 1, Row 1
         Item2=sfQtMaster.sfQuote[0].sfDetail[1].sfPrice.Item2     //Quote 1, Row 2
         Item3=sfQtMaster.sfQuote[0].sfDetail[2].sfPrice.Item3     //Quote 1, Row 3
    elseif(PartNo==111) then
         Item1=sfQtMaster.sfQuote[1].sfDetail[0].sfPrice.Item1     //Quote 2, Row 1
         Item2=sfQtMaster.sfQuote[1].sfDetail[1].sfPrice.Item2     //Quote 2, Row 2
         Item3=sfQtMaster.sfQuote[1].sfDetail[2].sfPrice.Item3     //Quote 2, Row 3
    endif
    Thanks

    I would make a variable called 'count' and then use a loop to scroll through all the instances referencing the index of each instance as count.

  • Show master field with a subform click event

    Using javascript, how do I show a master field from a subform fields click event?

    No, no messages, but it did give me an idea. I put the page identifier Page44 and it seems to be working. I still have an issue with Adobe not keeping my bookmarks in place when a subform is opened.

  • Populating Text Field from Dropdown in Repeating Subforms

    Hi there,
    I'm trying to create a dropdown in a repeating subform that populates a text field in the same subform depending on the option selected.
    I used the functionality described here to acheive the text field population in the first row, but I have trouble when I add additional instances of my subform. In subsequent instances, when I select an option from the dropdown, it changes the text in my first textbox and does not populate anything in the repeated textbox.
    I'm not sure how to get this to work for each added instance and/or how to keep each instance separate from one another.
    Thanks in advance for your help!

    Can you repost the question - some funny formatting issue

  • Stop thunderbird from automatically populating the To: field when replying

    Is there a way to stop Thunderbird from automatically populating the To: field when replying to an email?.
    Also is there a way to get Thunderbird to request confirmation of addresses emails are to be sent to?

    'Reply' is supposed to do exactly that. Use 'Forward' instead.
    Wrt return receipts check this article.
    http://kb.mozillazine.org/Figuring_out_whether_the_recipient_read_your_message

  • Passing field data from a repeating subform to another repeating form

    Hi all,
    In my main form, I have a repeating subform which captures various customer demographics. It repeats up to 7 instances based on how many clients are associated to a particular account.
    The form user clicks a button to add new instances then fills in the various fields.
    What I have currently is another hidden subform which I need to then make visible, but I also need one new instance of that form, prefilled with selected fields, for each instance of the first subform.
    I'm not sure how to go about doing this. Based on my searches, it appears I need some sort of script to resolve each node and associate it with the second subform instances but I'm really unclear how to do that.
    Any advice will be greatly appreciated! TIA

    Hi all,
    I thought I found what I was looking for but still having problems getting it to work. Found this example on John Brinkman's blog...
    var srcFields = Subform1.resolveNodes("$.#field[*]");
    for (var i = 0; i < srcFields.length; i++) {
      var fieldName = srcFields.item(i).name;
      // if the same-named field exists in S2…
      if (Subform2.nodes.namedItem(fieldName)) {
         Subform2[fieldName].rawValue = srcFields.item(i).rawValue;
    I created a simple form containing 2 flowed subforms, each with one text field (same name). I added a button to subform1 to add one instance of subform1 on each click. I placed the script above in the change event of the text field in subform1.
    Nothing is happening at all in subform2. I can add my 3 instances, enter a name in the text field but nothing shows up in the text field of subform2.
    Can anyone offer any suggestions? Very new to this stuff so I'm really at a standstill. TIA!

  • XML Schema to generate table data from a repeating subform data

    Hi All, I would like to have a check box that when checked, will hide a quotation form, and make a purchase order form visible, carrying over some of the field data from the quotation form into a new table on the Purchase order form. I've attached this form at https://workspaces.acrobat.com/?d=pqpsXx5VPi*LkMeVKrX57w if you would like to take a look. When the checkbox is unchecked, it will hid the PO form, and make the quite form visible.
    The idea behind this is that my client will create his quote and send t to his customer. Once the customer accepts the quote, he can just click a button to generate his purchase order that he will send to his supplier.
    It seems that because I've got buttons to add rows on the quote form that the problem is more complex. I would be able to do this myself if the table had a fixed number of rows and I was able to use global fields and naming each cell something different, but beacuse it's a single repeating subform, I can't seem to make it work at all.
    I understand that because its a repeating subform that I need to create an XML schema to accomplish this, but also can't figure out for the life of me how to actually create the schema. I've been reading tons of tutorials, but no clue how to apply it to my specific need. I have only been able only find info on how to bind the data source once it's been created.
    I would be forever grateful if anyone could help me out.
    Thank you!

    I've edited your form and put it here.
    Here's what I've done:
    Inserted script into your checkbox renamed Accpted that hides/shows the Purchase Order/ Sales Quotation
    I've included a scripting object with a function I wrote to transfer data from like named fields/subforms from one section to another
    Inserted a few common fields into your Purchase Order table
    What you need to do is complete the development of your Purchase Order table. Make sure the common fields between the quote and purchase tables have the same names in order to transfer the data.
    No schema necessary.
    Kyle

Maybe you are looking for

  • Receiver File Adapter - Content Conversion

    Hi, I don't quite get this: I have a structure <?xml version="1.0" encoding="UTF-8"?> <AnElement1>    <AnElement2>       Bla bla bla    </AnElement2> </AnElement1> I want to convert this to a flat file with a line containing Bla bla bla In te receive

  • Variable Substituition throwing an error for empty payload

    Hi All, I am using variable substituition in the receiver file adapter... Everything is working fine and the variable substituion is working and creating a file whenever the payload in the mapping has the filenode field for variable substituition. No

  • TA44469 Quicktime on my Mac runs a URL dot mov file.  On My WINXP Quicktime Pro will not.  Anyone know what's wrong.

    Quicktime on my Mac runs a URL dot mov file.  On My WINXP Quicktime Pro will not.  Anyone know what's wrong.

  • HTTP Comms Channel and UTL Parameters

    Hi, I need to build a new interface (HTTP - RFC) which will use several URL parameters and I have a few questions 1) In my limited experience I know that HTTP scenarios don't usually require a comms channel. Like RFC it's built into the ABAP stack. I

  • Cs5 windows7 and service

    Hi i know photoshop install a service to know if photoshop is legit or not i remember cs2 and cs3 but in windows 7 ,photoshop cs5 doesn't install any service what i did notice cs5 install under w7 AdobeCS5ServiceManager ->"C:\Program Files\Common Fil