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 / September 2007

Tip: Looking for answers? Try searching our database.

Dynamically load secondary data source

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
emailmygroup@gmail.com - 07 Sep 2007 16:51 GMT
I have secondary data source xml file and I would like to load it when
necessary. For this, I have unchecked the checkbox "Automatically
retrieve data when form is open" at the time of creating data source.
Now how can I load this xml and use it? Is there any function which
will open the connection and load xml into
XDocument.DataObjects("SecondSource").DOM?

Thanks
Nick Dallett [MSFT] - 08 Sep 2007 18:54 GMT
>I have secondary data source xml file and I would like to load it when
> necessary. For this, I have unchecked the checkbox "Automatically
> retrieve data when form is open" at the time of creating data source.
> Now how can I load this xml and use it? Is there any function which
> will open the connection and load xml into
> XDocument.DataObjects("SecondSource").DOM?

There are several ways to do this:

1. Add a button to your form, and set its action to "Refresh".  You can
choose to refresh one secondary data source or all of them
2. Add a rule whose action is "query using a data connection" - set the data
connection to SecondSource
3. Add code which calls the query (in script) or execute (in IP2007 managed
code) method on the data adapter.

-N
 
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.