aarebrot.net Frode's blog on Sharepoint and other stuff

How to force InfoPath forms to open in the browser when linked in an email

Posted on July 8, 2011
VN:F [1.9.22_1171]
Rating: 4.9/5 (9 votes cast)

We recently put a rather complex SharePoint workflow into production. Our workflow is creates a lot of tasks, and each time a task is created a custom email is sent to that user with a link to the task. We create the body of this email ourselves, including the link to the task. The user clicks on the link and the task opens up in Internet Explorer and they can do whatever they need to do. We always want the forms to open in the browser and to begin with everything was peachy.

However after a few pilot users had been upgraded to Office 2010, which included the InfoPath client, it came to our attention that when they clicked on the link in the email it would open it up in the InfoPath client rather than opening it up in the browser. We would want the experience to be consistent so obviously this was not desirable.

Troubleshooting SharePoint 2007: Clicking buttons in Central Administration does nothing

Posted on June 14, 2011
VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)

Yesterday I was helping a colleague of mine setting up her SharePoint 2007 virtual machine, and at one point she needed to make some changes in Central Administration. Problem was, when she clicked the "OK" (or "Cancel") buttons after having put in her new settings nothing happened. No page load, no error, no nothing.

Slide deck and demos from yesterdays presentation

Posted on May 12, 2011
VN:F [1.9.22_1171]
Rating: 4.5/5 (2 votes cast)

Thanks to everyone who showed up at yesterdays event. This was my first public presentation and based on the feedback I guess I did good. I hope you enjoyed the content, and that you learned something in the process. I'll be out of the country for the next 2 weeks, but you're welcome to tweet/email me questions and comments if you have any. I'll try and get back to you as soon as I can.

You can find the slides from my presentation at the bottom of this post, along with the Visual Studio solutions for the three demos that I did. These are the actual demos that I created during the presentation, complete with grammar mistakes and everything, so you should be looking at the same thing that you saw then. You'll need a dev machine setup with SharePoint 2010 and Visual Studio 2010 to be able to try these out.

As a last note, I should give credit where credit is due. The fourth slide in my presentation was borrowed from Eric Shupps' TechEd 2010 presentation.

Speaking at the Regina Technology Community, on May 11th

Posted on April 11, 2011
VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)

I will be doing a presentation on SharePoint 2010 development for the Regina Technology Community. This event is free to anyone who wants to attend, and there will be food, so make sure you sign up if you're interested. This is an entry level presentation, so I'm expecting most people haven't worked on SharePoint and will gear the presentation as such. If you have previous SharePoint experience you may find some of the examples and topics to be pretty basic (although you're still welcome to participate, of course).

How to set the content type of a new file in a document library, when uploading said file through code (aka longest and most convoluted blog title to date)

Posted on March 29, 2011
VN:F [1.9.22_1171]
Rating: 4.5/5 (8 votes cast)

I'm on a project that's very close to being implemented in production. For the final go-live we will be uploading a bunch of files (about 700) into a document library. There are two content types in our document library, SPI Documents and SPI Drawings. Uploading the files directly into the document library will pick the default content type. How do we change it to use the second content type, instead of the default, for some of the files?