Re-display repeating XML data in dynamic form

I have a dynamic form with repeating data in my XML that populates it. I need to display the repeating data in one of 2 different ways, depending on which business segment the user viewing it is associated with. I have tried 2 ways to accomplish this, neither has worked for me.
Attempt 1: Create 2 separate subforms and hide the one that should not be shown. The first subform in the layout displays just fine and is populated with records, but the second subform never displays any records. This appears to be an issue with the XML node already having been parsed and displayed and does not get displayed again. Is there a way to move the cursor, or pointer, or whatever you call it in XML-speak back to the top of a repeating node to re-display data?
Attempt 2: Create a single subform that contains 2 other subforms - one for each view, which lay atop each other. A script command hides the view the shouldn't be displayed. The problem I ran into here is that the records don't display properly. In my example, there are 3 records in the repeating section, the first displays fine, the second is missing some fields and is pulling some data from the first record. The third record displays no data at all. I deleted the one of the 2 subforms and previewed the form again, now all of the records displayed just as they should.
Any ideas or suggestions would be appreciated.
Thanks,
Chad

That code also produces text in the textfield.  What "specific parts" are you trying to display?
textfield.text = (xml.bar[0].text());
textfield.text = (xml.bar[1].text());

Similar Messages

  • XML data within dynamic form

    Hi,
    I'm trying to make a new XML Schema connection inside the form designer, I successfully made the connection and get the data inside my form, but I have only one problem, I have a huge number of records which I decided to make them as a dropdown list, they are about 11000 records, OK, now to the problem which is if I save the form as a static pdf form the list will be filled completely with the data came from the XSD file, and the produced file size is about 3 M, but if I save it as dynamic pdf form, the produced file size is about 400 K, but if I tried to access the dropdown list inside the file, it takes forever to load, without getting any result at the end.
    OK, my personal conclusion is that in case of the static forms the data saved inside the pdf file, but in case of the dynamic forms the data is not saved there.
    I need to save the file as dynmic pdf because I have a table that needs to add new row accoriding to the user click on a button of (add new row).
    So, can any one help me to fix this issue?

    Sorry, I found the solution:
    when I use the Adobe Reader 8.0.0 or Adobe Acrobat professional 8.0.0
    the stuff works normally, but in case of Adobe Reader 8.1.1 or Adobe Acrobat professional 8.1.1 this problem happens,
    Now I'll explain:
    1- I have a form with dropdown list.
    2- I want to populate this dropdown list from XSD file has structure similar to the following:
    =====================================================================
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="shipRequest">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="orders">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="order" maxOccurs="unbounded">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="shipVia">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:enumeration value="Ground"/>
    <xs:enumeration value="2 Day Air"/>
    <xs:enumeration value="Overnight"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    ====================================================================
    but with one main difference, that the element of shipVia has about 11000 of (<xs:enumeration ) elements.
    3- when I made the normal steps of make new connection to XSD file, it walked with me normally without any errors.
    4- incase I save this form as static pdf file, then open it with adobe professional, the menu is working smoothly and load the data inside perfectly.
    5- incase I sace this form as dynamic pdf file, if I try to open the dropdown list, it takes forever to load the data.
    very starnge that this problem happen with the newer version, so any idea for this??

  • Displaying XML data in dynamic text box

    I'm attempting to display external XML data in a dynamic text box. When I test preview my code, the information that I want to display shows up in the Output window, so I know that its linked and works. My trouble is creating the code that will link to my (txtBox) and displaying when previewed. Please take a look at the files below if you have any time to offer suggestions.
    Thank you!
    Andy

    That's not an error, it's just a warning and flash is suggesting that if you use appendText vs. +=, that your results may display faster
    if you don't want to see the warning, you can take the suggestion and use:
    txtBox.appendText(bldg.S11[i].SF.text());
    txtBox.appendText(bldg.S11[i].Tenant.text());
    txtBox.appendText(bldg.S11[i].Status.text());
    ~chipleh

  • Using importdata to import xml data into dynamic PDF form

    Hi again,
    Me and my colleagues have a problem using the importData service to import some xml data into an empty PDF form (represented as an XFA input variable).
    In the server log I get the error that Only XDP data is supported for XFA forms, however I only have the xml data and not the entire xdp available.
    Is this really not possible to to (like importing xml data to a form is possible in the Designer when creating forms).
    I hope the scenario is understandable
    Sincerely
    Kim Christensen
    Dafolo A/S
    Denmark
    PS: During the various projects I am working on I keep running into problems...however I am totally new to LiveCycle so I consider this very informative learning steps and appreciate all your help :-)

    Hi again,<br /><br />I have been experimenting a little with both the renderPDFForm and importData services. However I don't seem to be ble to make them work as I  need them to.<br /><br />My scenario is simple, I have one (call it a template xdp/PDF form) and lots of data in xml files (around 1000), that I need to import into the template. Therefore I have set up a "Watched Folder" to take the xml as a document (I guess this is a requirement) and then I need either the renderPDF or importData services to import the xml data into the template.<br /><br />I would like to know how I should setup the services to make this work.<br /><br />When I try to use importdata I setup the following:<br /><br />PDF document: set to be the template i need to import the xml to)<br /><br />Input data: the document variable (an xml file) that is passed to the   Watched Folder<br /><br />Data merged PDF: set to an out xfaform<br /><br />When I do this I get an Coercion error in the server log:<br /><br />2007-11-15 13:27:05,324 ERROR [com.adobe.workflow.AWS] stalling action-instance: 1506 with message: ALC-DSC-000-000: com.adobe.idp.dsc.DSCRuntimeException: Internal error.<br />     at com.adobe.idp.dsc.util.CoercionUtil.toDOMDocument(CoercionUtil.java:656)<br />     at com.adobe.idp.dsc.util.CoercionUtil.toType(CoercionUtil.java:878)<br />     at com.adobe.idp.dsc.util.CoercionUtil.toType(CoercionUtil.java:803)<br />     at com.adobe.workflow.datatype.runtime.support.AbstractDataTypeRuntimeHandler.coerceFrom(Abs tractDataTypeRuntimeHandler.java:64)<br />     at com.adobe.workflow.datatype.runtime.support.AbstractComplexDataTypeRuntimeHandler.getNode (AbstractComplexDataTypeRuntimeHandler.java:47)<br />     at com.adobe.workflow.dom.VariableElement.setBoundValue(VariableElement.java:93)<br />     at com.adobe.workflow.pat.service.PATExecutionContextImpl.setProcessDataValue(PATExecutionCo ntextImpl.java:729)<br />     at com.adobe.workflow.pat.service.PATExecutionContextImpl.setProcessDataWithExpression(PATEx ecutionContextImpl.java:335)<br />     at com.adobe.idp.workflow.dsc.service.SetValueService.execute(SetValueService.java:46)<br />...<br />Caused by: ALC-DSC-119-000: com.adobe.idp.dsc.util.InvalidCoercionException: Cannot coerce object: <document state="passive" senderVersion="3" persistent="false" senderPersistent="true" passivated="true" senderPassivated="true" deserialized="true" senderHostId="127.0.0.1/172.16.10.125" callbackId="0" senderCallbackId="7" callbackRef="null" isLocalizable="true" isTransactionBound="false" defaultDisposalTimeout="600" disposalTimeout="600" maxInlineSize="65536" defaultMaxInlineSize="65536" inlineSize="8039" contentType="application/xml" length="-1"><cacheId/><localBackendId/><globalBackendId/><senderLocalBackendId/><senderGl obalBackendId/><inline><?xml version="1.0" encoding="UTF-8"?><br /><form1><br />  <sub_BlanketTop /><br />  <sub_SubjectTop><br />    <f...</inline><senderPullServantJndiName>adobe/idp/DocumentPullServant/adobejb_server1</s enderPullServantJndiName><attributes file="c:\NCRConvert\ProcessForm\stage\Wx450d4b32843a0b0bcb8ef99e\NCR-00564_dXAE3soH.xml"/ ></document> of type: com.adobe.idp.Document to type: interface org.w3c.dom.Document<br />     at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)<br />     at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)<br /><br />However it is possible to manually import the xml data in Acrobat Professional without any problems.<br /><br />When I use the renderPDFForm with the following settings:<br /><br />Form to render: literal value that points to the template<br /><br />Form data: document variable from watched folder (xml)<br /><br />Content Root URI: repository://<br /><br />With these settings I also get a coercion error, however it does not seem to be exactly the same.<br /><br />Sincerely<br />Kim

  • Displaying Multiple XML Data on List Item List

    Hi there..
    Is it possible to display multiple XML Data on List Item List. I mean like the example below.
    and how to programatically load image that depends on the XML data value (0=down arrow, 1=up arrow) and also how to refresh data every 1 second.
    Thank you very much...

    Hi Ann,
    Write a Forms procedure and in that open a cursor fetching all data you want to show in the list element and populate the list within the loop using Add-List-Element built-in. Call this procedure in When-New-Form-Instance trigger. Whenver form will be opened the your list element will be populated automatically.
    Hope that helps you.

  • XML Schema binding - dynamic form

    I am new to Designer and XML. I have been given a basic interactive form and have persevered for a couple of (often frustrating) weeks to extend its functionality to link to an xml schema and provide for dynamic record creation. Unfortunately I am still having problems when adding new instances of subforms.<br /><br />I have a main form for reporting issues. Underneath it there are major components on a subform (can be multiple major components for each issue) and under major components are sub-components (can be multiple sub-components for each major component) on a child subform of major. I can add and delete instances of the subforms for both levels of records.<br /><br />I have created an xml schema based on the form since it already existed, and so the form fields have not inherited properties from the schema. However, I have bound the fields in the form to the xml fields through a data connection. The schema basically looks as follows (bot not literally the same as you will see from the tags):<br /><br /><element complextype issue><br />   <element issueId string/><br />   ...<br />   ...<br />   <element complextype majorcomponent unbounded><br />   <element majcomponentname string/><br />   ...<br />   <element complextype subcomponent unbounded><br />      <element subcomponent string/><br />      <element quantity string/><br />      ...<br />      ...<br />      </element><br />   </element><br /></element><br /><br />My problem is as follows: <br /><br />When I add an instance of a sub-component or major component subform, the first new instance appears to work correctly. However, every subsequent one inherits the values of the previous record and when it is changed, it changes the values of existing fields of the same name but of a different node. When I change each element in the xml schema to "unbounded", the forms appear to work properly but the values are then not nested correctly in the outputted xml data file (many records will appear under one sub-component, for example, when a new sub-component should be added for each).<br /><br />I suspected my problem might be that the "unbounded" property in the schema of the major component and sub-component elements are not linked to the Designer form because the major component and sub-component subforms are not bound to the xml schema. The reason they are not bound is because if I bind the subform, the first element, major/sub component name as applicable, loses its binding.<br /><br />I am sorry if this doesn't make any sense but I am hoping that someone might recognise the problem I am talking about as it is really creating much bother.<br /><br />Thanks.

    Thanks Justin for the reply. Unfortunately I can't explain exactly what was happening because I didn't keep sufficient notes and now the form is behaving differently. You are right in that when I bind the subform to the xml schema element, child fields do change their bindings from a full to a relative path. I had seen this before on all except the first field on a subform, which had losts any binding reference at all.
    I finally gave up on the schema and bound the forms to sample xml data. This fixed my problem. Now (several days later), I have revisited the problem and deleted my data connection to the xml file to connect to the schema once again. I am quite sure I have not changed the schema at all, nor the form, but for some reason it now appears to work correctly.
    I will continue to work with it, once again but thanks very much for your interest.

  • Extracting data from dynamic forms

    I am new to using Livecycle and see the advantages of using dynamic forms for collecting data. I have designed several dynamic forms which include rows with 6 to 9 text fields and may be completed with 10 to 100 rows. I  have had to use text fields for collecting numeric information as many of the references start with zeros (003456).
    Whilst Acrobat Pro provides for Livecycle dynamic forms to be enabled for Acrobat Reader filling and saving is extracting to Excel the best option available if you do not have the Enerprise version of Livecycle?
    One problem I have in using Excel is that whilst the completed  PDF documents capture the leading zeros, when I view the Excel spreadsheet the lead zeros have been lost. I have experienced this problem in importing Excel files into Access. To overcome this I usually create five lead rows with characters in all the fields that I want Excel to define as text - otherwise it processes them as numerics.
    Any better ways of extracting data from a hundred or so dynamic forms? 

    Hi,
    your problem is not the exported data, it's Excel that drops the leading zeros by default.
    You can use a custom pattern to keep the leading zeros.
    0#### will display intergers with up to 5 places with a leading zero.
    Value:           Displayed Value:
    012               012
    12345          12345
    0045             0045
    Here an example video for telephone numbers.
    http://www.youtube.com/watch?v=n4lGHTG0kCk

  • Adobe LiveCycle - Repeating Tables on a dynamic form - issue!!!! Please help

    Hi there
    I have a dynamic licensed form that 3 user groups will be using.
    User Group A - completes one section, locks the form and sends to User Group B
    User Group B - completes rest of form, form is locked unbeknownst to user group B, they send it back to user group A
    User Group A - approves the info, locks entire form as read only and sends to User Group C
    User Group C - reads the info and uses it to do some data entry
    The form is doing exactly what we need it to do EXCEPT when it comes to repeating sections and tables.
    Main part of form - does not repeat
    Section 1 - the entire section can be repeated if User Group A needs to add a new section by clicking a button.
    Inside Section 1 - contains a table that User Group B can +/- depending on their need & in this table there is drop down list.  User Group A needs to populate the list somewhere (AFTER licensing) lock it and when User Group B gets the form, they need to make a selection from the drop down - on ALL the added tables they create,
    The above is only working for the first section and first table.  we cannot get it to work for the added tables or added sections.
    The above is working mainly by java script.
    Is there anyone out there who can help?  I am desperate and have a rollout coming up quick.
    Thanks! Michelle

    Hi Michelle,
    I think we are going to need to see the form to help, is it possible to post a link to it.  I assume you have some code in the preOpen event of the drop-down that need populating, I don't think you can dynamically update the items a drop down is bound to (at least not without a remerge() which would probably cause more pain).  How are Group A adding values to the list?
    Regards
    Bruce

  • Importing data into dynamic form

    I have not yet had a chance to work with LiveCycle, and I have been given a project which I need to determine if LiveCycle would be the correct solution. The client originally wanted this to be a Microsoft Word form, but I doubt that I can meet the requirements using Word.
    I need to design a form which a user can enter multiple line items either manually, or by importing existing data. The data itself would be about 40-50 distinct pieces of data, in a block of  several sections and multiple lines (i.e Name, Address block, Phone/fax/email, contact and comment section, etc) and would be a combination of text fields and checkboxes. There would be 2-3 of these blocks per page (with a static header/footer), plus a cover page with data fields for the organization using the form.
    I know that I could create this type of dynamic form in LiveCycle to be entered manually, but I don’t know what options, if any, I would have in giving the user the ability to import existing data from an unknown source (could be a text file, a local or hosted database, excel, etc.).
    My questions are about the feasibility of LiveCycle for this project:
    Can data be imported from a data source the user chooses? Are there any limitations to what kinds of data sources can be used? Would I need to program a custom function to allow the user to match the proper fields for the import, or is there a built in function to handle this?
    Would there be any platform/application limitations? Can the form be used with Reader on a desktop computer (Mac or PC), or on a tablet (and if so, is a specific app necessary instead of the default app)?
    Are there any other foreseeable issues I may have to deal with?

    Thanks for the info. A few followup questions if you don't mind:
    1. Needs to configure an ODBC-connection on every system it is used.
    This form will be sent to our client, and they will send it to their customers. Can the connection setup be scripted, or is it simple enough that a generic set of instruction can be given to the end user to allow them to setup the connection and map their fields to the form's content easily?
    2. Requires Acrobat or a reader-enabled from to use in Reader. Data is automatically populated in the form fields. Only xml files for import allowed. Allows to use XSLT to format imported data.
    I doubt that the end user would have their data in a compatible XML format, so this option may not be necessary. Is Reader-enabling a form in LiveCycle comparable to the process in Acrobat? I have heard LiveCycle Enterprise is very expensive and required for certain functions, does this apply here? Does this require a specific server setup for these forms?
    3. Difficult scripting to update field values automatically. Works in Reader and Acrobat.
    The data would not need to be updated automatically, just pull current data into the form. This would be a one-way operation, there would be no need to update the data source from values within the form. I would still need to give the user a way to map their fields to the form.
    Are you aware of any tutorials or example files that would help give me a start? I had a brief look at the LiveCycle Designer ES2 Scripting Reference, but I"m not sure which objects to look into.
    None of these methods will work on mobile devices as there is currently no support of XFA in Reader Mobile.
    Good to know. The same is probably true if I were to create the form in Word/Office.

  • How to loop and read repeating table data of infoPath form in Visual studio workflow.

    Hi,
    I am trying to read info Path form repeating table data in Visual studio workflow.
    could anyone elaborate me in brief how to loop through repeating table and read all rows value one by one in workflow.
    any help would be more then welcome. 
    Thanks...

    Hi Rohan,
    According to your description, my understanding is that you want to create a Visual Studio workflow to get data from info path repeating table.
    I suggest you can submit Repeating Table to a SharePoint List and then you can create a .NET workflow to read data from the SharePoint List.
    Here are some detailed articles for your reference:
    Codeless submitting InfoPath repeating table to a SharePoint list
    Create a Workflow using Visual Studio 2010
    Best Regards
    Zhengyu Guo
    TechNet Community Support

  • XML data into spreadsheet form?

    I created the form and a customer filled it out and returned it to me using the submit button via email. Is there a way to take the xml data and populate an excel spreadsheet appropriately?
    Adobe LiveCycle Designer 7.0/ Microsoft XP Pro/ 160 gig harddrive/ 512 RAM
    Thank you for your help!
    -Darren

    Hi Darren,
    Are you looking to automate this?
    You can bring up the form in Acrobat and go file->Form Data -> Create Spreadsheet from data files. You would then select all the files (xml) to put in the spreadsheet.
    Does that help you?
    Catherine

  • Catch / know XML Data of PDF Form (without do XML submit)

    Is it possible from within a PDF form, using JS get / know XML data of the current form?
    I need to get the same XML data that would be generated with "export data" feature of Adobe Professional.
    Thx! 

    Thanks Paul
    But this is not exactly what I need.
    I need to do something like:
    var xml= xfa.host.exportData("", false);
    and not really export the XML.
    ¿Is possible? ¿any idea?
    Thanks!

  • Displaying Specific xml data.

    Hi there,
    I have a database exporting stock detail as xml data.  I've been using spry to format.
    What I was wondering, is it possible to filter to display only certain data?
    My xml data contains electrical products. Can I filter to only display certain products?
    For example I only want to display when Product type is Fridge and Brand is BEKO.
    Product type, Brand, Description, Price
    Sorry, but I'm really stuck.  I can't work out how to do it!
    Many thanks,
    Martin

    The xml contains full details for anywhere between 70 to 100 products.  I've pasted the fields in below.  Does the entire xml have to load before it can filter?  If so I might need to look at the xml output.  I only want the user to be able to see specifc products depending on the page they are on.  So if they navigate Television/Panasonic the spry only displays those products.
    Thanks for your advice so far.
    {@BulletPoints}
    {@ClearanceItem}
    {@Colour1}
    {@Group1}
    {@Group2}
    {@Group3}
    {@Image}
    {@LongDesc}
    {@Make}
    {@ManufactureGuarantee}
    {@ModelNo}
    {@NewItem}
    {@OldPrice}
    {@PackQty}
    {@SellingPrice}
    {@ShortDesc}
    {@SpecialOffer}

  • Xml data into dynamic texttield

    Hello there
    I was trying to get xml data into a listBox and textArea. Then when I try to get it into a dyamic textField it gets the first one and not changing as i select different item in the listbox. sure there is a way. also i want to make it clickable so it go to a web page. can you help me please.
    Appreciate your time and help
    Krish

    hi
    here is the flahttp://www.naturecareasia.com/test/learnCS4.flv.fla
    Thank you

  • Is it possible to CREATE an XML data with Smart Forms??

    Hello at all,
    i have an Smart Form Formular, which contains all information about a customer.
    My question is, if i want to send this Formular to another System, can I send this as a XML File or something else???
    I have no idea, how i can send my smart forms formular to another System.
    With kind regards.
    ETN

    I guess you want to send "spools" in XML format, not the definition of smart forms. So, the XML for Smart Forms is called XSF: read [SDN article - SAP SMART FORMS XSF - XML OUTPUT FOR SMART FORMS|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0b6bc290-0201-0010-5b87-a0e7c7eb55d0] and [sap library - smart forms - output in XSF format|http://help.sap.com/saphelp_nw70/helpdata/EN/a5/28d3b6d26211d4b646006094192fe3/frameset.htm]

Maybe you are looking for

  • Combination of Data from Two Tables in Report

    Hi, I am currently building a financial report that pulls data from the activity table. Currently, it displays each activity record, i.e. a date field, a transaction source field, transaction source description and transaction amount. I have another

  • Invoice output to be send by fax

    Dear Guru's      My requirment is Once invoice has been created we want send it through e-mail or fax to the client is it possible in sap output. what all the configaretion required for this, please update soon. Regards, Bhanu.

  • Collect comments on automatic start of reusable workflow

    I want to start a workflow automatically, how can I collect  "comments" (multiple lines of text) metadata from users when they are checking in a document, that should be collected by the workflow?

  • Where is this Log located?

    Hi, I´m getting this Access Denied error and it says that I should look for an ID in the log file, but can´t find the log where I can look for this Id: Access denied (Object(s): portal_content/com.sap.pct/specialist/com.sap.pct.crm/com.sap.pct.crm.ro

  • What is a good Contacts Manager for OS X 10.8.2?

    Hello, I am looking for a contacts manager software that runs on Mountain Lion. Aside from features typically found in most databses, I am looking for a product that has the following features: - Can import/export existing data from external sources