how can I populate dynamically a dropdown list

K

KUNO

I'd like to see a infopath code which populate dyamically a dropdown list
from a secondary data source based on what a I choose in another dropdown
list.
Let's say I have a dropdown with two options company note and industry note
and depend on what I choose the second dropdown should be populated with
companies or industries, respectively.
Thanks a lot for any help
 
M

Matthew Blain \(Serriform\)

Easiest mechanism if you just have two options is to have two dropdowns
bound to the same value inside two sections, then hide/show the relevant
section based on the company/industry selection.
If there's lots of options, bind it the second dropdown a web service or XML
file and then Query the data connection with a rule or code when the first
dropdown changes.

--Matthew Blain
http://tips.serriform.com/
 
J

Jose Oliver-Didier [MSFT]

Hi Kuno:

You could also check this blog posting on how to create dependent
drop-downs/list-box in InfoPath using Filters:

http://blogs.msdn.com/infopath/archive/2004/03/24/95529.aspx

Hope this is of assitance,

--
Jose Oliver-Didier
Microsoft Office InfoPath

Check out the InfoPath Blog at http://blogs.msdn.com/infopath for additional
InfoPath tips and tricks.

---------------------------------------
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm. Please do not send email
directly to this alias. This alias is for newsgroup purposes only.


"Greg Collins [MVP]" <Greg.Collins_AT_InfoPathDev.com> wrote in message
You might want to take a look at the InfoPathDev.com Dev Nugget titled,
"Creating Non-Repeating Cascading Drop-Down List Boxes"

--
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com



I'd like to see a infopath code which populate dyamically a dropdown list
from a secondary data source based on what a I choose in another dropdown
list.
Let's say I have a dropdown with two options company note and industry note
and depend on what I choose the second dropdown should be populated with
companies or industries, respectively.
Thanks a lot for any help
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top