Tuesday, March 16, 2004 6:30 PM Jan Tielens

InfoPath: How To Populate a List Control With SharePoint Users

Since the Service Pack 1 Preview of InfoPath it is really simple to fill for example a drop-down list box on a InfoPath form with data that is stored in a SharePoint list. But it’s not quite straight forward to fill that drop-down list box with all the users of a SharePoint site. Although this is quite easy to accomplish in a custom SharePoint list by creating a Lookup column and indicating that you want to get User Information. But (almost) nothing is impossible with InfoPath, so let’s give it a try!

First of all: how can we get a hold of a list with all the users of a specific SharePoint site? Well it happens to be that SharePoint exposes quite a lot of functionality through a web services layer; to be more specific: we can use the Users and Groups Service. In this service are several methods that you can use to retrieve all kinds of information about users and groups, we’ll use the GetUserCollectionFromSite method. So far so good, we know where to get our data, now let’s create the InfoPath form. The solution I’ll describe here will be using some custom code which can be written in script or in .NET code. This time, let’s make use of the InfoPath 2003 Toolkit for Visual Studio.NET so we can write .NET code.

Thus let’s fire up Visual Studio .NET and choose to create a new project based on the InfoPath Form Template. Drop a drop-down list box on your InfoPath form and open the Properties window. In the “List box entries” section choose to “Look up values in a data connection to a database, Web service, file or SharePoint library or list”. At this point the InfoPath form doesn’t have any data connections, hence click the Add button to create a new one. We want to get our data from the GetUserCollectionFromSite web method, so select the “Web service” option in the wizard. For the WSDL location use a URL formatted as follows: http://Server_Name/[Site_Name/]_vti_bin/UserGroup.asmx?wsdl (for example: http://myServer/SharePoint/_vti_bin/UserGroup.asmx?wsdl). Next the wizard will show you a list containing all the web methods available on the web service, select the GetUserCollectionFromSite method. Finally you can give the data connection a name, let’s call it “Users”. When you click the Select XPath button (right to the Entries text box), the troubles begin… As you can see on the screenshot, the web service return value does not contain a repeating group or field, which is necessary to be able to fill a list.

Why is that? Well if we take a look at the GetUserCollectionFromSite documentation we can see that the return value is of the System.Xml.XmlNode type. That means that you’ll receive XML of which the WSDL doesn’t describe how it will look like, so InfoPath can’t show your either. Although the documentation shows an example of how the XML will look like, it’s quite a bummer. The problem would be solved if you could type the XPath value in the Entries text box, but unfortunately this text box is read-only. From now on, there are several possible solutions:

  • Manually edit the XSLT of the InfoPath form and fill in the correct XPath value.
  • Create a wrapper web service that exposes the GetUserCollectionFromSite information strongly typed.
  • Use the little trick I’ll show you in a moment. :-)

The third solution will make use of a dummy data connection that has the same structure as the return value of the web method. This will give you the advantage of using InfoPath functionality to select the correct repeating group. Afterwards the contents of that dummy data connection are replaced by return value of the web method. So let’s work further on our InfoPath form but first download this XML file to your harddisk; it contains a fictitious return value of the GetUserCollectionFromSite web method. Click the Add (data connection) button to add a new one data connection: receive data from an XML document (point to the file you’ve just downloaded) and name it “DummyUsers”. Un-check the “Automatically retrieve data when the form is opened” check box and choose No if InfoPath suggest to file to your form. Then open the Properties window of the drop-down list box control again, select the “Look up values in a data connection to a database, Web service, file or SharePoint library or list” option, and choose to DummyUsers data connection. Then if you choose the “Select XPath” button you’ll see that you can navigate to a repeating group! Also in the Properties window, you need to specify the Value and “Display name” field, for example choose the LoginName field for both ones.

We’re not finished yet, we need to replace the data of the DummyUsers data connection with the data of the Users data connection (which is automatically fetched through the web service). We must do this in the OnLoad event of the InfoPath form, so in the Tools/Programming menu click the “On Load Event” menu item. Visual Studio.NET will pop up, and a the OnLoad method is created for you. You need only to add one line:

// The following function handler is created by Microsoft Office InfoPath. Do not
// modify the type or number of arguments.
[InfoPathEventHandler(EventType=InfoPathEventType.OnLoad)]
public void OnLoad(DocReturnEvent e)
{
            // Write your code here.
            thisXDocument.DataObjects["DummyUsers"].DOM.loadXML(
                        thisXDocument.DataObjects["Users"].DOM.xml);
}

That’s it! If you preview the InfoPath form, first the data of the Users data connection is fetched automatically. Then the OnLoad event is triggered, so we replace the data of the DummyUser data connection, and finally the form is showed and the drop-down list box contains all the login names of the users of the SharePoint site. You can use this little trick also for fetching other data through the SharePoint web services. If you want to easily create dummy XML documents you can use the WebServiceStudio 2.0 that can construct SOAP request messages.

Filed under: ,

Comments

# re: InfoPath: How To Populate a List Control With SharePoint Users

Friday, March 26, 2004 8:50 AM by mauro giuliano

It's great, Jan i've search this trick around the world :)
Tanks
mgi@cdhsrl.it, italy

# re: InfoPath: How To Populate a List Control With SharePoint Users

Thursday, April 01, 2004 11:24 PM by ken

very slick. thanks!

# re: InfoPath: How To Populate a List Control With SharePoint Users

Wednesday, April 21, 2004 4:34 PM by Daniel

Is possible to change views during the OnLoad event?, thanks.

# re: InfoPath: How To Populate a List Control With SharePoint Users

Thursday, April 22, 2004 12:41 AM by Jan

Daniel, can you elaborate a little bit more what you are trying to do?

# re: InfoPath: How To Populate a List Control With SharePoint Users

Thursday, April 22, 2004 1:03 PM by ajay

dfsdafsdf
asd
fsd
sddf
s

# re: InfoPath: How To Populate a List Control With SharePoint Users

Thursday, July 08, 2004 11:21 AM by ertwert

wertwert

# re: InfoPath: How To Populate a List Control With SharePoint Users

Tuesday, July 27, 2004 12:24 PM by Greg Smith

Thanks for the tip! I was trying to figure out how to do this with Sharepoint 2 and it doesnt appear that I need the extra steps but it showed me how to get the list to the usernames URL.

# re: InfoPath: How To Populate a List Control With SharePoint Users

Friday, August 06, 2004 4:29 PM by Omar Shahine

Hey, when I try this I get:

System.Runtime.InteropServices.COMException
An item with the following index does not exist in the collection: Users
at

Any ideas?

# re: InfoPath: How To Populate a List Control With SharePoint Users

Friday, August 06, 2004 5:09 PM by Omar Shahine

Never mind, figured it out. I never renamed the first data source "Users"

# re: InfoPath: How To Populate a List Control With SharePoint Users

Tuesday, June 06, 2006 6:46 AM by Vivek


HI

 

its possible to open a popup window in infopath form and select value from that popup window to parent infopath form.

 

Regards

 

Vivek.T

 

# re: InfoPath: How To Populate a List Control With SharePoint Users

Tuesday, June 06, 2006 6:46 AM by Vivek

HI

 

its possible to open a popup window in infopath form and select value from that popup window to parent window.

 

Regards

 

Vivek.T

 

# re: InfoPath: How To Populate a List Control With SharePoint Users

Friday, June 09, 2006 5:33 PM by Vishal Monpara

Thanks a lot. It made my day.

# re: InfoPath: How To Populate a List Control With SharePoint Users

Monday, June 12, 2006 11:11 AM by Clay Fox

I was successful with this demo but I would like to use the GetUserInfo Method to retreive the current user opening the form and then present customized user specific information.  
When I preview the form with the data connection to this method autoloading however I get an error that the form tmeplate is invalid and an error message stating that the parameter loginName cannot be empty.  
Maybe I am using the wrong method or there are some other things that must be done.
If anycome can give me come advice on how to get the current user of the form from sharepoint please let me know.
cefox at energy-northwest.com

Thank You.

# re: InfoPath: How To Populate a List Control With SharePoint Users

Wednesday, June 14, 2006 7:17 PM by Eric Stott

Is there a way from within an Infopath form to emulate the design mode where you can preview the form using a data file.

I have a form designed that works like i want, I am getting a seperate xml document, and I would like to be able to open up the xml document with the infopath form, but would rather not edit the form and put the processing instructions in the xml document.

Simple enough request I think, but no one has ever come across this I guess.

Thanks,
Eric Stott
http://stottcreations.com/blog

# re: InfoPath: How To Populate a List Control With SharePoint Users

Monday, July 24, 2006 9:18 AM by girdhari

It is really a very good example, Is it possible that we can fetch users from a perticular Sitegroup.

# re: InfoPath: How To Populate a List Control With SharePoint Users

Wednesday, September 06, 2006 6:57 AM by joseph

I'm desperate. I need to get current user name. Pls help

# re: InfoPath: How To Populate a List Control With SharePoint Users

Tuesday, September 12, 2006 11:47 AM by john

I need to be able to populate a dropdownlist programmatically.

There are some articles out there that explains how, but i am unable to make it works.  Please help?

Thanks

John

# re: InfoPath: How To Populate a List Control With SharePoint Users

Tuesday, September 12, 2006 1:23 PM by John

This is John again, sorry i didn't make myself clear the first time.

I meant i need to populate infopath 2003 dropdown list programatically.  Please help?

I thought this would work, but not

this.thisXDocument.DOM.selectSingleNode( "//my:myFields/my:dropdownList" ).text = "test";

Thanks

John

# re: InfoPath: How To Populate a List Control With SharePoint Users

Friday, October 06, 2006 4:07 AM by Viljem

Hi!

Like mauro giuliano said "It's great, Jan i've search this trick around the world". My words exactly. Thank you for showing this trick. Regards Viljem, Slovenia.

To joseph: getting current user:

var objNetwork = new ActiveXObject("WScript.network");

var user = objNetwork.UserDomain + "\\" + objNetwork.UserName ;

# re: InfoPath: How To Populate a List Control With SharePoint Users

Wednesday, October 25, 2006 6:56 AM by Andrea

Hi am just starting with Infopath 2007.

Everything went fine with this example until the point where the datasource has to be replaced:

   thisXDocument.DataObjects["DummyUsers"].DOM.loadXML(

   thisXDocument.DataObjects["Users"].DOM.xml);

Do you know, how I can do this with Infopath 2007?

Thanks!

Andrea

# re: InfoPath: How To Populate a List Control With SharePoint Users

Friday, November 10, 2006 3:36 AM by Radhi

After promoting the infopath user property to Sharepoint site , Is it possible to filter a view using [Me] in WSS 3.0 or MOSS 2007?

# re: InfoPath: How To Populate a List Control With SharePoint Users

Monday, November 27, 2006 3:18 AM by David

InfoJet Service, a product like InfoPath Form Services!

http://www.infojetsoft.com

# IrishDeveloper.com » Blog Archive » Get list of site users in InfoPath form

# re: InfoPath: How To Populate a List Control With SharePoint Users

Saturday, January 20, 2007 8:15 AM by [3!]ferta,[3!]ferta

I just like to say that your website is absoulutely brilliant!!! Do you think my sites too brilliant ;) ? Thanks!,I just like to say that your website is absoulutely brilliant!!! Do you think my sites too brilliant ;) ? Thanks!

# re: InfoPath: How To Populate a List Control With SharePoint Users

Sunday, January 21, 2007 11:18 PM by Andy

Sorry I'm new to InfoPath...I've copied the code:

thisXDocument.DataObjects["DummyUsers"].DOM.loadXML(thisXDocument.DataObjects["Users"].DOM.xml);

But problem occur when I try to build my solution, where it thrown an error for nothing knowing "thisXDocument".

What should I do here?

# re: InfoPath: How To Populate a List Control With SharePoint Users

Tuesday, January 23, 2007 9:43 AM by moggz

>Sorry I'm new to InfoPath...I've copied the code:

>

>thisXDocument.DataObjects["DummyUsers"].DOM.loadXML

>(thisXDocument.DataObjects["Users"].DOM.xml);

>But problem occur when I try to build my solution, where it thrown >an error for nothing knowing "thisXDocument".

>What should I do here?

Try taking out the this in front of thisXDocument, it should be just XDocument...well, for me anyway.

Thanks for this tip Jan, very helpful.

cheers

# re: InfoPath: How To Populate a List Control With SharePoint Users

Tuesday, January 23, 2007 3:11 PM by Charlie

To all users using InfoPath 2007....if you are using thisXDocument.blah blah blah, you need to change the type of code your form is using.  Create a new form, go to Form Options, Programming, and change your code to C# (InfoPath 2003 Compatible).  Now start the tutorial over and everything should be working as intended.  

I believe InfoPath 2007 has a new object model which causes the code listed here to not be recogonized anymore?  I really don't have any idea, I just know that trick worked for me.

# re: InfoPath: How To Populate a List Control With SharePoint Users

Tuesday, January 23, 2007 3:16 PM by Charlie

I am also having a problem using a few of the more advanced web services.  I am trying to pull only users with a certain level of access to the site and just like Clay Fox:

"When I preview the form with the data connection to this method autoloading however I get an error that the form tmeplate is invalid and an error message stating that the parameter loginName cannot be empty."

If anyone knows how to rectify this problem or how I can store a value to this parameter before the data is queried, please let me know.  

# re: InfoPath: How To Populate a List Control With SharePoint Users

Monday, February 19, 2007 5:12 AM by Senthil Kumar D

Hi, I publised my infopath form in Sharepoint portal server.Whenever my infopath form opens i need current logged user name of sharepoint server.How to get current logged user of sharepoint portal server? Please help me.

Thanks.

Senthil Kumar D

# re: InfoPath: How To Populate a List Control With SharePoint Users

Monday, March 05, 2007 9:31 AM by Ana

FYI - For users utilizing InfoPath 2007, this post is what you want in order to use the new OM...

http://blogs.vbcity.com/skullcrusher/articles/7736.aspx

# re: InfoPath: How To Populate a List Control With SharePoint Users

Friday, March 09, 2007 9:19 AM by BI

This link http://blogs.vbcity.com/skullcrusher/articles/7736.aspx from above does not seem to work. I am trying to get this to work in InfoPath 2007, VS2005 and MOSS 2007 can anyone help ?

# Infopath / SharePoint Tip « Andys Techie Blog

Friday, March 09, 2007 10:30 AM by Infopath / SharePoint Tip « Andys Techie Blog

# re: InfoPath: How To Populate a List Control With SharePoint Users

Monday, March 12, 2007 10:17 AM by casinode,casinode,casinode

<a href= http://privatecasinosite.info/index10.html >AMERICAN POKER 2</a> [url=http://privatecasinosite.info/index10.html]AMERICAN POKER 2[/url] <a href= http://privatecasinosite.info/index4.html >casino roulette</a> [url=http://privatecasinosite.info/index4.html]casino roulette[/url] <a href= http://privatecasinosite.info/index9.html >play black jack online</a> [url=http://privatecasinosite.info/index9.html]play black jack online[/url]

# re: InfoPath: How To Populate a List Control With SharePoint Users

Monday, March 12, 2007 2:51 PM by JTaylor

Thanks for this info! I already have code written in my form that is vbs. How do I convert the line to vbs?

XDocument.DataObjects["DummyUsers"].DOM.loadXML(XDocument.DataObjects["Users"].DOM.xml);

# re: InfoPath: How To Populate a List Control With SharePoint Users

Wednesday, March 21, 2007 6:09 PM by Freddie (axkan@hotmail.com)

Hello,

Please help, I'd like to ask this: what format do I need to use so that the data in a field show's in a sharepoint list as an actual user?

Just like the "Modified By" default column.

I update the data as DOMAIN\user and it doesn't work.

I update the data as user@domain.com and it doesn't work either.

Do I have to define the XML elemente type as something special?

Is there a special format to use? do I need to modify the XSL somehow?

Thanks,

# re: InfoPath: How To Populate a List Control With SharePoint Users

Saturday, March 24, 2007 5:58 AM by Lucy! Please call me,Jonny

Lucy! Please call me,Lucy! Please call me

# re: InfoPath: How To Populate a List Control With SharePoint Users

Tuesday, April 10, 2007 11:43 AM by Steve C.

Try this in 2007

this.DataSources["DummyUsers"].CreateNavigator().InnerXml = this.DataSources["Users"].CreateNavigator().InnerXml;

# re: InfoPath: How To Populate a List Control With SharePoint Users

Saturday, April 28, 2007 10:30 PM by ...

[URL=http://www.rolita93.info/beni] beni [/URL]   <a href='http://www.rolita93.info/beni'> beni </a> [URL=http://www.rolita93.info/driver-download] driver download [/URL]   <a href='http://www.rolita93.info/driver-download'> driver download </a> [URL=http://www.rolita93.info/caldaia] caldaia [/URL]   <a href='http://www.rolita93.info/caldaia'> caldaia </a> [URL=http://www.rolita93.info/elements] elements [/URL]   <a href='http://www.rolita93.info/elements'> elements </a> [URL=http://www.rolita93.info/agriturismo] agriturismo [/URL]   <a href='http://www.rolita93.info/agriturismo'> agriturismo </a> [URL=http://www.rolita93.info/leopardi] leopardi [/URL]   <a href='http://www.rolita93.info/leopardi'> leopardi </a> [URL=http://www.rolita93.info/limone] limone [/URL]   <a href='http://www.rolita93.info/limone'> limone </a> [URL=http://www.rolita93.info/sblocco] sblocco [/URL]   <a href='http://www.rolita93.info/sblocco'> sblocco </a> [URL=http://www.rolita93.info/drag] drag [/URL]   <a href='http://www.rolita93.info/drag'> drag </a> [URL=http://www.rolita93.info/stefano] stefano [/URL]   <a href='http://www.rolita93.info/stefano'> stefano </a> [URL=http://www.rolita93.info/automatica] automatica [/URL]   <a href='http://www.rolita93.info/automatica'> automatica </a> [URL=http://www.rolita93.info/recensione] recensione [/URL]   <a href='http://www.rolita93.info/recensione'> recensione </a> [URL=http://www.rolita93.info/campo] campo [/URL]   <a href='http://www.rolita93.info/campo'> campo </a> [URL=http://www.rolita93.info/intesa] intesa [/URL]   <a href='http://www.rolita93.info/intesa'> intesa </a> [URL=http://www.rolita93.info/ufficiale] ufficiale [/URL]   <a href='http://www.rolita93.info/ufficiale'> ufficiale </a> [URL=http://www.rolita93.info/fica] fica [/URL]   <a href='http://www.rolita93.info/fica'> fica </a> [URL=http://www.rolita93.info/amministrative] amministrative [/URL]   <a href='http://www.rolita93.info/amministrative'> amministrative </a> [URL=http://www.rolita93.info/australia] australia [/URL]   <a href='http://www.rolita93.info/australia'> australia </a> [URL=http://www.rolita93.info/ufficiali] ufficiali [/URL]   <a href='http://www.rolita93.info/ufficiali'> ufficiali </a> [URL=http://www.rolita93.info/gameboy] gameboy [/URL]   <a href='http://www.rolita93.info/gameboy'> gameboy </a> [URL=http://www.rolita93.info/vicino] vicino [/URL]   <a href='http://www.rolita93.info/vicino'> vicino </a> [URL=http://www.rolita93.info/miss] miss [/URL]   <a href='http://www.rolita93.info/miss'> miss </a> [URL=http://www.rolita93.info/elenco] elenco [/URL]   <a href='http://www.rolita93.info/elenco'> elenco </a> [URL=http://www.rolita93.info/dati] dati [/URL]   <a href='http://www.rolita93.info/dati'> dati </a> [URL=http://www.rolita93.info/grecia] grecia [/URL]   <a href='http://www.rolita93.info/grecia'> grecia </a>

# re: InfoPath: How To Populate a List Control With SharePoint Users

Sunday, April 29, 2007 3:32 AM by itemleab,itemleab,itemleab

# re: InfoPath: How To Populate a List Control With SharePoint Users

Monday, April 30, 2007 7:16 PM by Britneykswrc

<a href= http://www.angelfire.com/blog/cuhyzy >aaepa login</a> <a href= http://www.angelfire.com/poetry/nalyri >a country practice tv</a> <a href= http://www.angelfire.com/droid/zaqate >a peek into yesterday</a> <a href= http://www.angelfire.com/indie/taminu >aa gym</a> <a href= http://www.angelfire.com/funky/kydoja >a.s neil</a>

# re: InfoPath: How To Populate a List Control With SharePoint Users

Monday, April 30, 2007 7:16 PM by Britneymtffw

<a href= http://www.angelfire.com/poetry/laruxi >aa606a</a> <a href= http://www.angelfire.com/poetry/riteky >a1 storage</a> <a href= http://www.angelfire.com/droid/wijujy >a picture of courtney cox in the longest yard</a> <a href= http://www.angelfire.com/funky/lylyne >a perfect circle music</a> <a href= http://www.angelfire.com/funky/nywite >a4y ginny</a>

# re: InfoPath: How To Populate a List Control With SharePoint Users

Tuesday, May 01, 2007 12:53 AM by z7k2a0,http://stazzzdating.pochta.ru/01.html <a href="http://stazzzdating.pochta.ru/01.html">01</a> http://stazzzdating.pochta.ru/02.html <a href="http://stazzzdating.pochta.ru/02.html">02</a> http://stazzzdating.pochta.ru/03.html <a href="http://stazzzdating.pochta.ru/03.html">03</a> http://stazzzdating.pochta.ru/04.html <a href="http://stazzzdating.pochta.ru/04.html">04</a> http://stazzzdating.pochta.ru/05.html <a href="http://stazzzdating.pochta.ru/05.html">05</a> http://stazzzdating.pochta.ru/06.html <a href="http://stazzzdating.pochta.ru/06.html">06</a> http://stazzzdating.pochta.ru/07.html <a href="http://stazzzdating.pochta.ru/07.html">07</a> http://stazzzdating.pochta.ru/08.html <a href="http://stazzzdating.pochta.ru/08.html">08</a> http://stazzzdating.pochta.ru/09.html <a href="http://stazzzdating.pochta.ru/09.html">09</a> http://stazzzdating.pochta.ru/10.html <a href="http://stazzzdating.pochta.ru/10.html">10</a> http://stazzzdating.pochta.ru/11.html <a href="http://stazzzdating.pochta.ru/11.html">11</a> http://stazzzdating.pochta.ru/12.html <a href="http://stazzzdating.pochta.ru/12.html">12</a> http://stazzzdating.pochta.ru/13.html <a href="http://stazzzdating.pochta.ru/13.html">13</a> http://stazzzdating.pochta.ru/14.html <a href="http://stazzzdating.pochta.ru/14.html">14</a> http://stazzzdating.pochta.ru/15.html <a href="http://stazzzdating.pochta.ru/15.html">15</a> http://stazzzdating.pochta.ru/16.html <a href="http://stazzzdating.pochta.ru/16.html">16</a> http://stazzzdating.pochta.ru/17.html <a href="http://stazzzdating.pochta.ru/17.html">17</a> http://stazzzdating.pochta.ru/18.html <a href="http://stazzzdating.pochta.ru/18.html">18</a> http://stazzzdating.pochta.ru/19.html <a href="http://stazzzdating.pochta.ru/19.html">19</a> http://stazzzdating.pochta.ru/20.html <a href="http://stazzzdating.pochta.ru/20.html">20</a> http://stazzzdating.pochta.ru/21.html <a href="http://stazzzdating.pochta.ru/21.html">21</a> http://stazzzdating.pochta.ru/22.html <a href="http://stazzzdating.pochta.ru/22.html">22</a> http://stazzzdating.pochta.ru/23.html <a href="http://stazzzdating.pochta.ru/23.html">23</a> http://stazzzdating.pochta.ru/24.html <a href="http://stazzzdating.pochta.ru/24.html">24</a> http://stazzzdating.pochta.ru/25.html <a href="http://stazzzdating.pochta.ru/25.html">25</a> http://stazzzdating.pochta.ru/26.html <a href="http://stazzzdating.pochta.ru/26.html">26</a> http://stazzzdating.pochta.ru/27.html <a href="http://stazzzdating.pochta.ru/27.html">27</a> http://stazzzdating.pochta.ru/28.html <a href="http://stazzzdating.pochta.ru/28.html">28</a> http://stazzzdating.pochta.ru/29.html <a href="http://stazzzdating.pochta.ru/29.html">29</a> http://stazzzdating.pochta.ru/30.html <a href="http://stazzzdating.pochta.ru/30.html">30</a> http://stazzzdating.pochta.ru/31.html <a href="http://stazzzdating.pochta.ru/31.html">31</a> http://stazzzdating.pochta.ru/32.html <a href="http://stazzzdating.pochta.ru/32.html">32</a> http://stazzzdating.pochta.ru/33.html <a href="http://stazzzdating.pochta.ru/33.html">33</a> http://stazzzdating.pochta.ru/34.html <a href="http://stazzzdating.pochta.ru/34.html">34</a> http://stazzzdating.pochta.ru/35.html <a href="http://stazzzdating.pochta.ru/35.html">35</a> http://stazzzdating.pochta.ru/36.html <a href="http://stazzzdating.pochta.ru/36.html">36</a> http://stazzzdating.pochta.ru/37.html <a href="http://stazzzdating.pochta.ru/37.html">37</a> http://stazzzdating.pochta.ru/38.html <a href="http://stazzzdating.pochta.ru/38.html">38</a> http://stazzzdating.pochta.ru/39.html <a href="http://stazzzdating.pochta.ru/39.html">39</a> http://stazzzdating.pochta.ru/40.html <a href="http://stazzzdating.pochta.ru/40.html">40</a>

http://stazzzdating.pochta.ru/01.html <a href="http://stazzzdating.pochta.ru/01.html">01</a>

http://stazzzdating.pochta.ru/02.html <a href="http://stazzzdating.pochta.ru/02.html">02</a>

http://stazzzdating.pochta.ru/03.html <a href="http://stazzzdating.pochta.ru/03.html">03</a>

http://stazzzdating.pochta.ru/04.html <a href="http://stazzzdating.pochta.ru/04.html">04</a>

http://stazzzdating.pochta.ru/05.html <a href="http://stazzzdating.pochta.ru/05.html">05</a>

http://stazzzdating.pochta.ru/06.html <a href="http://stazzzdating.pochta.ru/06.html">06</a>

http://stazzzdating.pochta.ru/07.html <a href="http://stazzzdating.pochta.ru/07.html">07</a>

http://stazzzdating.pochta.ru/08.html <a href="http://stazzzdating.pochta.ru/08.html">08</a>

http://stazzzdating.pochta.ru/09.html <a href="http://stazzzdating.pochta.ru/09.html">09</a>

http://stazzzdating.pochta.ru/10.html <a href="http://stazzzdating.pochta.ru/10.html">10</a>

http://stazzzdating.pochta.ru/11.html <a href="http://stazzzdating.pochta.ru/11.html">11</a>

http://stazzzdating.pochta.ru/12.html <a href="http://stazzzdating.pochta.ru/12.html">12</a>

http://stazzzdating.pochta.ru/13.html <a href="http://stazzzdating.pochta.ru/13.html">13</a>

http://stazzzdating.pochta.ru/14.html <a href="http://stazzzdating.pochta.ru/14.html">14</a>

http://stazzzdating.pochta.ru/15.html <a href="http://stazzzdating.pochta.ru/15.html">15</a>

http://stazzzdating.pochta.ru/16.html <a href="http://stazzzdating.pochta.ru/16.html">16</a>

http://stazzzdating.pochta.ru/17.html <a href="http://stazzzdating.pochta.ru/17.html">17</a>

http://stazzzdating.pochta.ru/18.html <a href="http://stazzzdating.pochta.ru/18.html">18</a>

http://stazzzdating.pochta.ru/19.html <a href="http://stazzzdating.pochta.ru/19.html">19</a>

http://stazzzdating.pochta.ru/20.html <a href="http://stazzzdating.pochta.ru/20.html">20</a>

http://stazzzdating.pochta.ru/21.html <a href="http://stazzzdating.pochta.ru/21.html">21</a>

http://stazzzdating.pochta.ru/22.html <a href="http://stazzzdating.pochta.ru/22.html">22</a>

http://stazzzdating.pochta.ru/23.html <a href="http://stazzzdating.pochta.ru/23.html">23</a>

http://stazzzdating.pochta.ru/24.html <a href="http://stazzzdating.pochta.ru/24.html">24</a>

http://stazzzdating.pochta.ru/25.html <a href="http://stazzzdating.pochta.ru/25.html">25</a>

http://stazzzdating.pochta.ru/26.html <a href="http://stazzzdating.pochta.ru/26.html">26</a>

http://stazzzdating.pochta.ru/27.html <a href="http://stazzzdating.pochta.ru/27.html">27</a>

http://stazzzdating.pochta.ru/28.html <a href="http://stazzzdating.pochta.ru/28.html">28</a>

http://stazzzdating.pochta.ru/29.html <a href="http://stazzzdating.pochta.ru/29.html">29</a>

http://stazzzdating.pochta.ru/30.html <a href="http://stazzzdating.pochta.ru/30.html">30</a>

http://stazzzdating.pochta.ru/31.html <a href="http://stazzzdating.pochta.ru/31.html">31</a>

http://stazzzdating.pochta.ru/32.html <a href="http://stazzzdating.pochta.ru/32.html">32</a>

http://stazzzdating.pochta.ru/33.html <a href="http://stazzzdating.pochta.ru/33.html">33</a>

http://stazzzdating.pochta.ru/34.html <a href="http://stazzzdating.pochta.ru/34.html">34</a>

http://stazzzdating.pochta.ru/35.html <a href="http://stazzzdating.pochta.ru/35.html">35</a>

http://stazzzdating.pochta.ru/36.html <a href="http://stazzzdating.pochta.ru/36.html">36</a>

http://stazzzdating.pochta.ru/37.html <a href="http://stazzzdating.pochta.ru/37.html">37</a>

http://stazzzdating.pochta.ru/38.html <a href="http://stazzzdating.pochta.ru/38.html">38</a>

http://stazzzdating.pochta.ru/39.html <a href="http://stazzzdating.pochta.ru/39.html">39</a>

http://stazzzdating.pochta.ru/40.html <a href="http://stazzzdating.pochta.ru/40.html">40</a>

# re: InfoPath: How To Populate a List Control With SharePoint Users

Wednesday, May 02, 2007 2:36 AM by Britneypfywn

<a href= http://www.angelfire.com/poetry/nyhasy >a point of no return</a> <a href= http://www.angelfire.com/blog/tacego >aansluiten en language language nl nl site telefoon</a> <a href= http://www.angelfire.com/crazy/ganudo >a taste for wine and murder</a> <a href= http://www.angelfire.com/hiphop/xujici >aafees</a> <a href= http://www.angelfire.com/blog/wexiko >a room with a view criticism</a>

# re: InfoPath: How To Populate a List Control With SharePoint Users

Thursday, May 03, 2007 5:19 PM by Bobkbzm

<a href= http://buytramadolz.blog.drecom.jp/ >order tramadol</a>   <a href= http://buyviagraz.blog.drecom.jp/ >viagra order</a>   <a href= http://buycialisz.blog.drecom.jp/ >order cialis</a>   <a href= http://buylevitraz.blog.drecom.jp/ >buy levitra</a>  

# re: InfoPath: How To Populate a List Control With SharePoint Users

Tuesday, May 08, 2007 10:14 AM by Book2

sales03@lp88.com\sales03@dots.com.cn

# re: InfoPath: How To Populate a List Control With SharePoint Users

Friday, May 11, 2007 11:39 PM by Britneyijbly

<a href= http://zemagy.pop3.ru >a124p0</a> <a href= http://mexubo.pop3.ru >aa travel router</a> <a href= http://basevy.pop3.ru >a few extra pounds women</a> <a href= http://lecovo.pop3.ru >a by shelley skylark to</a> <a href= http://kobego.pop3.ru >a rush of blood to the head lyrics coldplay</a>

# re: InfoPath: How To Populate a List Control With SharePoint Users

Wednesday, June 06, 2007 10:18 AM by Jack

I am attempting to make the recieve data connection with the xml file dummy user but get this error (Incorrect document syntax.

 Line 2, Position 1). I have tried both ways with changing the coding options. What am I doing wrong?

# re: InfoPath: How To Populate a List Control With SharePoint Users

Wednesday, June 06, 2007 11:54 AM by Jack

Okay, I got the code to work but my drop down list box is blank. Why?

# re: InfoPath: How To Populate a List Control With SharePoint Users

Wednesday, June 06, 2007 11:57 AM by Jack

Okay, I got the code to work but my drop down list box is blank on preview. What is wrong?

# re: InfoPath: How To Populate a List Control With SharePoint Users

Monday, June 11, 2007 3:40 PM by Kaj

I've tried changing the code to

this.DataSources["DummyUsers"].CreateNavigator().InnerXml = this.DataSources["Users"].CreateNavigator().InnerXml;

as I am using InfoPath 2007. However I get the following error:

Unexpected XML declaration. The XML declaration must be the first node in the document, and no white space characters are allowed to appear before it. Line 1, position 9.

Can anyone help me??

# re: InfoPath: How To Populate a List Control With SharePoint Users

Thursday, August 09, 2007 8:51 PM by Barti

Hi,

I am new to sharepoint and Infopath. I am just wondering whether I can a search functionality by  importing Data from sharepoint server.

Any help or suggestion is much appreciated.

Cheers.

# re: InfoPath: How To Populate a List Control With SharePoint Users

Saturday, September 08, 2007 9:58 PM by diller

HI  good suite can you look on my sites

<a href="allfunds.free-site-host.com/child-defense-fund/index.html">child defense fund</a>

[URL=allfunds.free-site-host.com/child-defense-fund/index.html]child defense fund[/URL]

child defense fund - allfunds.free-site-host.com/child-defense-fund/index.html

<a href="allfunds.free-site-host.com/fund-raising-jewelry/index.html">fund raising jewelry</a>

[URL=allfunds.free-site-host.com/fund-raising-jewelry/index.html]fund raising jewelry[/URL]

fund raising jewelry - allfunds.free-site-host.com/fund-raising-jewelry/index.html

<a href="allfunds.free-site-host.com/money-market-fund/index.html">money market fund</a>

[URL=allfunds.free-site-host.com/money-market-fund/index.html]money market fund[/URL]

and on this

money market fund - allfunds.free-site-host.com/money-market-fund/index.html

<a href="allfunds.free-site-host.com/fund-raising-letter/index.html">fund raising letter</a>

[URL=allfunds.free-site-host.com/fund-raising-letter/index.html]fund raising letter[/URL]

fund raising letter - allfunds.free-site-host.com/fund-raising-letter/index.html

<a href="allfunds.free-site-host.com/index-funds/index.html">index funds</a>

[URL=allfunds.free-site-host.com/index-funds/index.html]index funds[/URL]

index funds - allfunds.free-site-host.com/index-funds/index.html

<a href="allfunds.free-site-host.com/college-fund/index.html">college fund</a>

[URL=allfunds.free-site-host.com/college-fund/index.html]college fund[/URL]

college fund - allfunds.free-site-host.com/college-fund/index.html

<a href="allfunds.free-site-host.com/non-profit-fund-raising/index.html">non profit fund raising</a>

[URL=allfunds.free-site-host.com/non-profit-fund-raising/index.html]non profit fund raising[/URL]

non profit fund raising - allfunds.free-site-host.com/non-profit-fund-raising/index.html

<a href="allfunds.free-site-host.com/easy-fund-raising-idea/index.html">easy fund raising idea</a>

and:

[URL=allfunds.free-site-host.com/easy-fund-raising-idea/index.html]easy fund raising idea[/URL]

easy fund raising idea - allfunds.free-site-host.com/easy-fund-raising-idea/index.html

<a href="allfunds.free-site-host.com/state-fund/index.html">state fund</a>

[URL=allfunds.free-site-host.com/state-fund/index.html]state fund[/URL]

state fund - allfunds.free-site-host.com/state-fund/index.html

# re: InfoPath: How To Populate a List Control With SharePoint Users

Thursday, September 27, 2007 11:31 PM by ...

[URL=www.poscali.cn/castello-di] castello di [/URL]   <a href='www.poscali.cn/castello-di'> castello di </a> [URL=www.poscali.cn/www-eva-henger-it] www eva henger it [/URL]   <a href='www.poscali.cn/www-eva-henger-it'> www eva henger it </a> [URL=www.poscali.cn/incontri-italia] incontri italia [/URL]   <a href='www.poscali.cn/incontri-italia'> incontri italia </a> [URL=www.poscali.cn/trenitalia-it] trenitalia it [/URL]   <a href='www.poscali.cn/trenitalia-it'> trenitalia it </a> [URL=www.poscali.cn/infermiere-porche] infermiere porche [/URL]   <a href='www.poscali.cn/infermiere-porche'> infermiere porche </a> [URL=www.poscali.cn/plug-in-nero] plug in nero [/URL]   <a href='www.poscali.cn/plug-in-nero'> plug in nero </a> [URL=www.poscali.cn/kiss-the-girl-ashley-tisdale] kiss the girl ashley tisdale [/URL]   <a href='www.poscali.cn/kiss-the-girl-ashley-tisdale'> kiss the girl ashley tisdale </a> [URL=www.poscali.cn/traduzioni-on-line] traduzioni on line [/URL]   <a href='www.poscali.cn/traduzioni-on-line'> traduzioni on line </a> [URL=www.poscali.cn/giocare-online] giocare online [/URL]   <a href='www.poscali.cn/giocare-online'> giocare online </a> [URL=www.poscali.cn/roma-calzature] roma calzature [/URL]   <a href='www.poscali.cn/roma-calzature'> roma calzature </a> [URL=www.poscali.cn/futurama-xxx] futurama xxx [/URL]   <a href='www.poscali.cn/futurama-xxx'> futurama xxx </a> [URL=www.poscali.cn/filmati-porno] filmati porno [/URL]   <a href='www.poscali.cn/filmati-porno'> filmati porno </a> [URL=http://www.poscali.cn/nomi] nomi [/URL]   <a href='http://www.poscali.cn/nomi'> nomi </a> [URL=www.poscali.cn/google-fr] google fr [/URL]   <a href='www.poscali.cn/google-fr'> google fr </a> [URL=www.poscali.cn/audio-divx] audio divx [/URL]   <a href='www.poscali.cn/audio-divx'> audio divx </a> [URL=www.poscali.cn/www-goole-com] www goole com [/URL]   <a href='www.poscali.cn/www-goole-com'> www goole com </a> [URL=www.poscali.cn/geogle-earth] geogle earth [/URL]   <a href='www.poscali.cn/geogle-earth'> geogle earth </a> [URL=www.poscali.cn/donne-che-cagano] donne che cagano [/URL]   <a href='www.poscali.cn/donne-che-cagano'> donne che cagano </a> [URL=www.poscali.cn/ranma-1-2] ranma 1 2 [/URL]   <a href='www.poscali.cn/ranma-1-2'> ranma 1 2 </a> [URL=www.poscali.cn/video-pompino] video pompino [/URL]   <a href='www.poscali.cn/video-pompino'> video pompino </a> [URL=www.poscali.cn/alessandra-mastronardi-nuda] alessandra mastronardi nuda [/URL]   <a href='www.poscali.cn/alessandra-mastronardi-nuda'> alessandra mastronardi nuda </a> [URL=www.poscali.cn/arcaton-com] arcaton com [/URL]   <a href='www.poscali.cn/arcaton-com'> arcaton com </a> [URL=www.poscali.cn/wwww-google] wwww google [/URL]   <a href='www.poscali.cn/wwww-google'> wwww google </a> [URL=www.poscali.cn/www-giochi-gratis-it] www giochi gratis it [/URL]   <a href='www.poscali.cn/www-giochi-gratis-it'> www giochi gratis it </a> [URL=www.poscali.cn/www-mediaset-premium-it] www mediaset premium it [/URL]   <a href='www.poscali.cn/www-mediaset-premium-it'> www mediaset premium it </a> [URL=www.poscali.cn/www-cartoon-network-com] www cartoon network com [/URL]   <a href='www.poscali.cn/www-cartoon-network-com'> www cartoon network com </a> [URL=www.poscali.cn/italiacercami-com">www.poscali.cn/italiacercami-com] italiacercami com [/URL]   <a href='www.poscali.cn/italiacercami-com">www.poscali.cn/italiacercami-com'> italiacercami com </a> [URL=www.poscali.cn/italia-chiamami-com] italia chiamami com [/URL]   <a href='www.poscali.cn/italia-chiamami-com'> italia chiamami com </a> [URL=www.poscali.cn/google-hearth] google hearth [/URL]   <a href='www.poscali.cn/google-hearth'> google hearth </a> [URL=www.poscali.cn/carta-geografica] carta geografica [/URL]   <a href='www.poscali.cn/carta-geografica'> carta geografica </a> [URL=www.poscali.cn/pics-porno] pics porno [/URL]   <a href='www.poscali.cn/pics-porno'> pics porno </a> [URL=www.poscali.cn/playstation-gratis] playstation gratis [/URL]   <a href='www.poscali.cn/playstation-gratis'> playstation gratis </a> [URL=www.poscali.cn/italiacercami] italiacercami [/URL]   <a href='www.poscali.cn/italiacercami'> italiacercami </a> [URL=www.poscali.cn/video-porno-sesso-gratis-gay] video porno sesso gratis gay [/URL]   <a href='www.poscali.cn/video-porno-sesso-gratis-gay'> video porno sesso gratis gay </a> [URL=www.poscali.cn/escort-forum-it] escort forum it [/URL]   <a href='www.poscali.cn/escort-forum-it'> escort forum it </a> [URL=www.poscali.cn/simona-ventura-nuda] simona ventura nuda [/URL]   <a href='www.poscali.cn/simona-ventura-nuda'> simona ventura nuda </a> [URL=www.poscali.cn/film-porno] film porno [/URL]   <a href='www.poscali.cn/film-porno'> film porno </a> [URL=www.poscali.cn/valentino-rossi-shop] valentino rossi shop [/URL]   <a href='www.poscali.cn/valentino-rossi-shop'> valentino rossi shop </a> [URL=www.poscali.cn/ranma-hentay] ranma hentay [/URL]   <a href='www.poscali.cn/ranma-hentay'> ranma hentay </a> [URL=www.poscali.cn/filmati-di-sesso] filmati di sesso [/URL]   <a href='www.poscali.cn/filmati-di-sesso'> filmati di sesso </a> [URL=www.poscali.cn/www-calendari-it] www calendari it [/URL]   <a href='www.poscali.cn/www-calendari-it'> www calendari it </a> [URL=www.poscali.cn/latino-online] latino online [/URL]   <a href='www.poscali.cn/latino-online'> latino online </a> [URL=www.poscali.cn/ampland-it] ampland it [/URL]   <a href='www.poscali.cn/ampland-it'> ampland it </a> [URL=www.poscali.cn/player-wmv] player wmv [/URL]   <a href='www.poscali.cn/player-wmv'> player wmv </a> [URL=www.poscali.cn/tim-cellulari] tim cellulari [/URL]   <a href='www.poscali.cn/tim-cellulari'> tim cellulari </a> [URL=www.poscali.cn/racconti-cuckold] racconti cuckold [/URL]   <a href='www.poscali.cn/racconti-cuckold'> racconti cuckold </a> [URL=http://www.poscali.cn/sex-chat] sex chat [/URL]   <a href='http://www.poscali.cn/sex-chat'> sex chat </a> [URL=www.poscali.cn/gioco-scaricare] gioco scaricare [/URL]   <a href='www.poscali.cn/gioco-scaricare'> gioco scaricare </a> [URL=www.poscali.cn/sesso-donna-matura] sesso donna matura [/URL]   <a href='www.poscali.cn/sesso-donna-matura'> sesso donna matura </a> [URL=http://www.poscali.cn/gogle-it] gogle it [/URL]   <a href='http://www.poscali.cn/gogle-it'> gogle it </a> [URL=www.poscali.cn/www-lady-sonia-com] www lady sonia com [/URL]   <a href='www.poscali.cn/www-lady-sonia-com'> www lady sonia com </a> [URL=www.poscali.cn/calciatori-nudi] calciatori nudi [/URL]   <a href='www.poscali.cn/calciatori-nudi'> calciatori nudi </a> [URL=www.poscali.cn/ciaoamigos-it] ciaoamigos it [/URL]   <a href='www.poscali.cn/ciaoamigos-it'> ciaoamigos it </a> [URL=http://www.poscali.cn/teen-sex] teen sex [/URL]   <a href='http://www.poscali.cn/teen-sex'> teen sex </a> [URL=www.poscali.cn/sito-porno-gratis] sito porno gratis [/URL]   <a href='www.poscali.cn/sito-porno-gratis'> sito porno gratis </a> [URL=www.poscali.cn/iomilu-com] iomilu com [/URL]   <a href='www.poscali.cn/iomilu-com'> iomilu com </a> [URL=www.poscali.cn/mondo-convenienza] mondo convenienza [/URL]   <a href='www.poscali.cn/mondo-convenienza'> mondo convenienza </a> [URL=www.poscali.cn/www-film-pornogratis-donne-mature-it] www film pornogratis donne mature it [/URL]   <a href='www.poscali.cn/www-film-pornogratis-donne-mature-it'> www film pornogratis donne mature it </a> [URL=www.poscali.cn/test-concorso] test concorso [/URL]   <a href='www.poscali.cn/test-concorso'> test concorso </a> [URL=www.poscali.cn/naked-girls] naked girls [/URL]   <a href='www.poscali.cn/naked-girls'> naked girls </a>

# re: InfoPath: How To Populate a List Control With SharePoint Users

Tuesday, October 02, 2007 4:23 PM by ...

[URL=http://www.blessio.cn/gogle-pl] gogle pl [/URL]   <a href='http://www.blessio.cn/gogle-pl'> gogle pl </a> [URL=www.blessio.cn/incontri-online] incontri online [/URL]   <a href='www.blessio.cn/incontri-online'> incontri online </a> [URL=http://www.blessio.cn/treno] treno [/URL]   <a href='http://www.blessio.cn/treno'> treno </a> [URL=http://www.blessio.cn/piedi] piedi [/URL]   <a href='http://www.blessio.cn/piedi'> piedi </a> [URL=www.blessio.cn/movies-mature] movies mature [/URL]   <a href='www.blessio.cn/movies-mature'> movies mature </a> [URL=www.blessio.cn/www-pagine-gialle-it] www pagine gialle it [/URL]   <a href='www.blessio.cn/www-pagine-gialle-it'> www pagine gialle it </a> [URL=www.blessio.cn/ovulazione] ovulazione [/URL]   <a href='www.blessio.cn/ovulazione'> ovulazione </a> [URL=www.blessio.cn/annuncio-donna-matura] annuncio donna matura [/URL]   <a href='www.blessio.cn/annuncio-donna-matura'> annuncio donna matura </a> [URL=www.blessio.cn/www-bastardi-dentro-it] www bastardi dentro it [/URL]   <a href='www.blessio.cn/www-bastardi-dentro-it'> www bastardi dentro it </a> [URL=http://www.blessio.cn/bambola] bambola [/URL]   <a href='http://www.blessio.cn/bambola'> bambola </a> [URL=www.blessio.cn/film-in-rete-com] film in rete com [/URL]   <a href='www.blessio.cn/film-in-rete-com'> film in rete com </a> [URL=http://www.blessio.cn/spy-cam] spy cam [/URL]   <a href='http://www.blessio.cn/spy-cam'> spy cam </a> [URL=http://www.blessio.cn/pescara] pescara [/URL]   <a href='http://www.blessio.cn/pescara'> pescara </a> [URL=www.blessio.cn/gioco-scaricare] gioco scaricare [/URL]   <a href='www.blessio.cn/gioco-scaricare'> gioco scaricare </a> [URL=www.blessio.cn/agenzia-di-viaggi] agenzia di viaggi [/URL]   <a href='www.blessio.cn/agenzia-di-viaggi'> agenzia di viaggi </a> [URL=www.blessio.cn/avril-lavigne-porno] avril lavigne porno [/URL]   <a href='www.blessio.cn/avril-lavigne-porno'> avril lavigne porno </a> [URL=www.blessio.cn/concorso-ferrovie-dello-stato] concorso ferrovie dello stato [/URL]   <a href='www.blessio.cn/concorso-ferrovie-dello-stato'> concorso ferrovie dello stato </a> [URL=http://www.blessio.cn/vhs-dvd] vhs dvd [/URL]   <a href='http://www.blessio.cn/vhs-dvd'> vhs dvd </a> [URL=www.blessio.cn/my-first-sex-teacher] my first sex teacher [/URL]   <a href='www.blessio.cn/my-first-sex-teacher'> my first sex teacher </a> [URL=www.blessio.cn/dragon-ball-gay] dragon ball gay [/URL]   <a href='www.blessio.cn/dragon-ball-gay'> dragon ball gay </a> [URL=www.blessio.cn/video-3gp] video 3gp [/URL]   <a href='www.blessio.cn/video-3gp'> video 3gp </a> [URL=www.blessio.cn/www-ssc-napoli-it] www ssc napoli it [/URL]   <a href='www.blessio.cn/www-ssc-napoli-it'> www ssc napoli it </a> [URL=www.blessio.cn/mara-venier] mara venier [/URL]   <a href='www.blessio.cn/mara-venier'> mara venier </a> [URL=www.blessio.cn/video-clip-porno] video clip porno [/URL]   <a href='www.blessio.cn/video-clip-porno'> video clip porno </a> [URL=www.blessio.cn/ilaria-d-amico] ilaria d amico [/URL]   <a href='www.blessio.cn/ilaria-d-amico'> ilaria d amico </a>

# re: InfoPath: How To Populate a List Control With SharePoint Users

Friday, October 05, 2007 5:43 PM by Adam

Hey all. For those of you that are about to pull your hair out from the ‘Unexpected XML declaration…..’ and other similar errors, I came up with what seems to be an acceptable solution.

In my situation I wanted to pass some contact selector xml from my workflow association form to my task form. Then I wanted it to be usable in a dropdown box for the user to select one of the predetermined people.

I accomplished this by:

- Building xml string the task form secondary data source is expecting

- Get the InnerXml of the root node. This may technically be invalid xml because of more than one root node but this should not matter.

- Then pass the xml string though the ExtendedProperties[“MyXmlTaskData”]

- On form loading event run the following code

           DataSource fromWorkflow = this.DataSources["ItemMetadata"];

           DataSource toForm = this.DataSources["ContactSelectorSecondaryDataSource"];

           string str = fromWorkflow.CreateNavigator().SelectSingleNode("/z:row/@ows_MyXmlTaskData", this.NamespaceManager).Value;

           if (!string.IsNullOrEmpty(str))

           {

               XPathNavigator nav = toForm.CreateNavigator();

               nav.MoveToFollowing(XPathNodeType.Element);

               nav.InnerXml = str;

           }

This seems to have done the trick for me. I hope it can help you!

Best of luck!

Adam

# re: InfoPath: How To Populate a List Control With SharePoint Users

Thursday, November 01, 2007 3:54 PM by abhishek

I'm not sure what I am doing wrong, but when copy the 1 line of code in to the On Load event handler, and then click save, and hit preview, Infopath throws the following error message:

A run-time error has occurred

'thisXDocument' in undefined

File:script.js

Line:26

Anyone understand why this is happening?

# re: InfoPath: How To Populate a List Control With SharePoint Users

Wednesday, December 12, 2007 9:28 AM by Chris

remove the "this" in front of XDocument.  I had that issue on IP 2003.

I also need this form to work offline.  Is there a way to save the data and only query online or setup a query button for when online?