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

Tip: Looking for answers? Try searching our database.

Can I programmatically change a dropdown data connection

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tim Philomeno - 19 Jan 2006 18:26 GMT
I want to be able to swith from using a webservice data connection to using
an XML Document for secondary data...Is there a way to programmatically
change the "Data Connection" property of a drop down list in managed code?

Thanks!

Tim Philomeno, Sparling, Inc.
Greg Collins [InfoPath MVP] - 20 Jan 2006 23:35 GMT
I don't know of any way to switch it dynamically... but you do something like:

Set up a secondary data source with a repeating list in it.
Bind your drop-down list to that data source.
Get your values from whatever you want (Web service, XML file, etc) and then clear and repopulate the secondary data source.

Your drop-down binds to a single source, but you dynamically popualte that source from whereever you want.

Signature

Greg Collins [InfoPath MVP]
Visit http://www.InfoPathDev.com

I want to be able to swith from using a webservice data connection to using
an XML Document for secondary data...Is there a way to programmatically
change the "Data Connection" property of a drop down list in managed code?

Thanks!

Tim Philomeno, Sparling, Inc.
 
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.