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 / February 2006

Tip: Looking for answers? Try searching our database.

prepopulate form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Franz Demmel - 16 Feb 2006 08:20 GMT
Hi,

I have a form with lots of fields. The people who use  it should be able
to open the form, select an existing xml and load it. This xml
prepopulates some of the fields. Then the user should be able to load
another xml, which prepopulates some other fields.
How can this be done the best way. (I found this msdn article:
http://support.microsoft.com/default.aspx?scid=kb;en-us;896451 but to
create a xsl for my form seems a bit complicated)

Best regards,

Franz
Gaurav Bhardwaj - 17 Feb 2006 10:04 GMT
Hi,

You can program it in C#. Just have a button on the form which when clicked
displays a form to the user. The user can browse and select the XML file
from there. When user dismisses this form, have your logic to parse the XML
file. Then you can update the fields on the form simply using

thisXDocument.DOM.SelectSingleNode("XYZ").nodeTypedValue = YourValue;

Where exactly are you facing problems ?

Thanks,
Gaurav

> Hi,
>
[quoted text clipped - 9 lines]
>
> Franz
Franz Demmel - 17 Feb 2006 16:24 GMT
Gaurav Bhardwaj schrieb:
> Hi,
>
[quoted text clipped - 4 lines]
>
> thisXDocument.DOM.SelectSingleNode("XYZ").nodeTypedValue = YourValue;

You're right. I've found an example that's shipped with office 2003
(UIBasic.xsn)
where it is described how to do this with scripting (maybe I'll try c#
after I have
the first results).
The problem I'm facing now are more security related (fully trusted
forms, etc.) But I hope to solve them soon.
 
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.