Thursday, May 14, 2009

Collect user information from AD through InfoPath

I wanted a webpart in SharePoint that displays certain user information from the AD. Looked at a couple of webparts Bamboo, SharePoint Boost, etc but all of those are directly connected to the AD and I did not want the user to be able to push information back into the AD. Only display it so that the user can send a request to change the information through a simple list.
So I thought that InfoPath might be able to do some lookups for me, and yes the webservice that calls on UserProfiles was perfect for this! And since I am used to InfoPath and how you can perform lookups inside the form using one specific field I thought that it could not be that hard to get all information using the "Username" field. All fields in the form are read-only and it is published as a web form. The result is the following webpart:



Mail me if you want some more explanation or instructions!

I love that you can use InfoPath without any code... Powerful!

Tuesday, May 5, 2009

Unable to map a SharePoint site as a network drive

I am running WSS 3 on a Windows Server 2008 and want to map my site from ie Word or the explorer. But I get the message "Network path not found":



Or if I try to map to it or if I run "Net use" from inside the command prompt. I get the following message:

"C:\Users\lise.rasmussen>net use x: http://xxx.com/Shared%20Documents/
Enter the user name for 'xxx.com': domain\loginname
Enter the password for xxx.com:
System error 67 has occurred.
The network name cannot be found."

So I cannot open my site directly from the Explorer (via Map Network drive) cause then I get this message ("The folder you entered does not appear to be valid. Please choose another"):



Or in Explorer View from SharePoint, then I get this message ("Your client does not support opening this list with Windows Explorer", and yes it is from the client, not the server):


I run a Windows Vista client, and the client service is installed. And one more thing, if I open a document from the site I get THREE login prompts before I can open the document. I can only press Esc but... how irritating isn't that!!

The Desktop Experience is installed on the server, as well as WebDAV and it is rebooted. I also checked that the AAM is correct and can be reached from the server, check to that :)

Some blogs suggest that you update the Web Folders, but that are for really old browsers and stuff... Don't want to do that this early. That will have to be a backup plan..

I googled it many times but have not found a solution that works for me...

Simple redirect script

If you want to redirect your users to another URL when they press the "Save" button inside a list form, then just add the following in the link to the form:

/lists/yourlist/newform.aspx?Source=/thankyou.aspx

I usually use relative url's as in the example, but you may also write the whole URL of course...

Great!