Infopath 2007 Multi-select list box selected value at runtime

J

Jane

Hi,

Here's my situation. I'm trying to create a multi-select list box that is
populated with values at runtime in C#. When the form loads, some of the
values in the multi-select list box should be selected already (or checked).
My secondary data source is a web service that returns an xmldocument. The
list box is bound to the xmldocument.

I have searched through the internet and cannot find any information on how
to programmatically set each item in the multi-select list box as selected
based on certain condition. Please advice or direct me to a website that can
resolve this situation.

Thank you.
Jane
 
S

S.Y.M. Wong-A-Ton

This is part of an answer I gave to another similar post: What you would have
to do is loop through the source of the multiple selection list box, create a
field containing the value for each item from your source, and append it
under the group node that represents the list.

This seems to be a popular request, so I've put it on my - by now long list
:) - of articles to write for my website.
 
J

Jane

Hi S.Y.M.,

Thanks for the quick response. I think I did that. I created another XML
file that captures the value but when I try to loop through it, it created
double entries.

Please include a link where I can find your solution. Thank you so much for
your help!

Jane
 
S

sudhir kumar yadav

respected sir/
i have a problem. i have a list box we want to show display multiple select value in listbox. when we pass id other page then other page display listbox. we want that listbox show multiple select value display.

EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
 

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