Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Dynamic Form: XML Data Import Question (I'm Almost there..)

Avatar

Level 2

Niall has been very helpful gettig me to this point.  Thank you Very Much!

I have made all of my updates and changes that were suggested to the following form:

https://acrobat.com/#d=t1uvlNlj4Yrh7zxtpbJiRg

My question is, when I import the XML Data File, only some of the information shows up?

Thinking back over all it took to get this far, I don't know if I shouldn't just be counting my blessings to be where I am?  But, if someone (and knowing Niall is probably reading this - but I was too embarrassed to ask him for any more help), could help tell me what I need to do, I think this will be the last time I will have to ask for help.. at least on this form.


Thanks!!!

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi Rob,

In this case you do not need a data connection.

If you select a field and go to the Object > Binding tab, you will see a dropdown list for specifying the data binding for that field. Currently it is set to "None", which means that data in the field will not be exported. Similarly if you had an XML file with data, it would not get imported into the field.

Here is a screenshot of LC Designer ES2, which is slightly different to earlier versions, however the basic process is the same.

Parallels Desktop1.png

Go through each field and change "No data binding"/"None" to "Use name"/"Normal".

Then when you submit and import, the data will populate the fields.

Hope that helps,

Niall

View solution in original post

3 Replies

Avatar

Level 10

Hi,

  Seems to be you did not add any data connection to the form. If you are importing the XML, you need to add a data connection to the form with the XML structure and bind the fields to the corresponding XML tags. That way when you import the XML, the form will know where to display the value from which tag.

You can add data connection by selecting Window menu -> Data View. Right click to add New Data Connection and choose Sample XML Data..

After you add the Data Connection, you can test the form in the Designer by adding the XML data file to preview..

Preview Data.JPG

Hope this helps.

Thanks

Srini

Avatar

Level 2

Hi Srini,

Thank you.

Maybe I should explain further.

The user fills-in the form and clicks 'Submit by e-mail.  The XML file is sent to my e-mail; I open a copy of the same form and import the XML file.

Unfortunately, the form does not re-populate with all the same information that I imported.  In fact, most of the fields are missing information.

Thanks for your help.

Best,


Rob

Avatar

Correct answer by
Level 10

Hi Rob,

In this case you do not need a data connection.

If you select a field and go to the Object > Binding tab, you will see a dropdown list for specifying the data binding for that field. Currently it is set to "None", which means that data in the field will not be exported. Similarly if you had an XML file with data, it would not get imported into the field.

Here is a screenshot of LC Designer ES2, which is slightly different to earlier versions, however the basic process is the same.

Parallels Desktop1.png

Go through each field and change "No data binding"/"None" to "Use name"/"Normal".

Then when you submit and import, the data will populate the fields.

Hope that helps,

Niall