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 / April 2008

Tip: Looking for answers? Try searching our database.

How to dynamic populdate data for dropdown list control?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Forrest - 18 Apr 2008 19:25 GMT
Hi,

I have a dropdown list in InfoPath form. This dropdown list gets data from
xml secondary data source.

The content of xml secondary data source is large (over 1000 nodes). What we
want to do is provide a textbox to let end user input some search criteria,
and then based on input search criteria to filter data in dropdown list.

Would you please help me out or give some guide? Many thanks!

Forrest
Clay Fox - 18 Apr 2008 22:03 GMT
Hi Forrest.
The Key is being able to query a secondary data source, which you cannot do
with a standard data connection.

The key is a webservice or code.  I use web services to query a database
table dynamically in this kind of situation.

So it can be done just needs additonal components.

Signature

Clay Fox / Microsoft InfoPath MVP
www.InfoPathDev.com / The InfoPath Authority / Downloads, Samples, How-To,
Experts, Forum

> Hi,
>
[quoted text clipped - 9 lines]
> Forrest
>  
Forrest - 21 Apr 2008 14:58 GMT
Hi Clay,

Thank you so much for your reply.

Our InfoPath form is a standalone form which doesn't access Web Service or
Database.

I saw some code on internet to demo on populating dynamic dropdown on Form
Load event handler. But my form need to fiter data on dropdown list on
Command event handler.

InfoPath has build-in support to filter data on dropdown list. But we need
to achieve it by using code behind as InfoPath build-in filter data support
is not good enough for our case.

So is there nayway that could filter data on dropdownlist by using code
behind?  

Many thanks,

Forrest

> Hi Forrest.
> The Key is being able to query a secondary data source, which you cannot do
[quoted text clipped - 18 lines]
> > Forrest
> >  
Clay Fox - 21 Apr 2008 15:25 GMT
I believe there are some code samples on http://www.infopathdev.com

You should be able to search there and find some examples.
Signature

Clay Fox / Microsoft InfoPath MVP
www.InfoPathDev.com / The InfoPath Authority / Downloads, Samples, How-To,
Experts, Forum

> Hi Clay,
>
[quoted text clipped - 40 lines]
> > > Forrest
> > >  
 
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.