Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / October 2006

Tip: Looking for answers? Try searching our database.

populate form from xml file chosen by the user

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Drew Frist - 05 Oct 2006 23:02 GMT
How can I enable the person filling out the form to populate the form with
data from an xml file?  I need the user to enter a large matrix of numbers,
and this is easier to make in Excel.  So my thinking is that the user could
create the matrix in Excel, save as XML, and then import it into the
appropriate place in the InfoPath form.

I want to allow the user to pick the xml file from a File Chooser dialog (or
something like that) from within infopath.  Hard-coding the xml file name as
a Secondary Data Source or as a Resource file is not what I am looking to do.

Please advise!  Thanks!
S.Y.M. Wong-A-Ton - 06 Oct 2006 06:29 GMT
You'll have to do something similar to what Greg did in this article
http://www.infopathdev.com/howto/tutorials/default.aspx?i=3604c87845664a19bcad14
80dab420b9
but use an OpenFile dialog box instead of a SaveAs dialog box.

Once you've opened up the file and loaded the XML into InfoPath, you can use
XSLT to transform the XML to conform to the XML of a node in the Main DOM of
the InfoPath form and then just do a replace that node like I did in this
article
http://enterprise-solutions.swits.net/infopath2003/article.php?t=transform-data-
secondary-data-source-xslt&c=infopath2003

---
S.Y.M. Wong-A-Ton

> How can I enable the person filling out the form to populate the form with
> data from an xml file?  I need the user to enter a large matrix of numbers,
[quoted text clipped - 7 lines]
>
> Please advise!  Thanks!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.