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 / May 2005

Tip: Looking for answers? Try searching our database.

ActiveX Bindings (not just a single value)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
SirVader - 18 May 2005 16:36 GMT
hi!

i'm trying to write an activex combobox with c# .net,
because i need some features the standard infopath combo has not.

i successfully made this combobox, but i'm not able to bind some kind of
a list to it.
first i thought that it is my combo, but if i add the microsoft forms
2.0 combox i found in the activex controls list i have the same problem.
is there any way to bind complexe data to an activex control?

or has anybody a better idea? everything i want is an autocomplete
combobox for infopath.

thx!
Scott Roberts [MSFT] - 24 May 2005 19:02 GMT
ActiveX controls in InfoPath can bind in one of three ways: to a single
field of a specific type, to a field from a custom namespace, or to a field
or group of any type.  For what you are trying to do, if you are trying to
create a list from data in the main datasource, then you want the third type
of binding.  This will allow you to bind your control to a repeating group.
However, the work doesn't end there.  In the code for your control, you will
need to populate your list from the data in the repeating group to which
your control is bound.  This doesn't happen for free unfortunately.  This
blog entry might be helpful to you:
http://blogs.msdn.com/infopath/archive/2005/04/15/408728.aspx

If you want to populate your list from a secondary datasource, such as an
XML file, webservice, or database (which is probably your best bet) then you
should bind your control to a single field of a specific type.  You will
still need to write code to populate your list from the secondary
datasource.

- Scott

> hi!
>
[quoted text clipped - 11 lines]
>
> thx!
 
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.