donderdag, juni 19, 2008

Using the Contact Selector in Infopath 2007

woensdag, mei 21, 2008

Sharepoint 2007 limits overview

When setting up Sharepoint 2007 or creating custom stuff for Sharepoint, please take a look at this:
  • Detailed Sharepoint limits overview
  • Plan for software boundaries (detail overview of limitations, performance tips, ....)
    Also notice that there are also limitations for security principles:
    "Security principal: max 2,000 per Web site. The size of the access control list is limited to a few thousand security principals (users and groups in the Web site)."

zaterdag, maart 15, 2008

Seen on TechDays2008

Last week I went to TechDays 2008 at the ICC in Ghent. You can find an overview of the program/presentations over here .

I will give a quick overview of the most intresting topics. I will try to add some more info when there are new video's/presentations available.

LINQ

WCF/WF

  • Integrating WCF + WF :  by Ingo Rammer
  • The ABC of building services with WCF by Peter Himschoot
    => download presentations here
  • Intro blogspost about ABC of WCF  by Dennis van der Stelt

WPF

ASP.NET/WSS/MOSS

Other

* Tools

  • ZOOMIT: nice tool for zooming during presentations: download here

woensdag, december 12, 2007

Release of WSS 3.0 SP1 and Office SharePoint Server 2007 SP1

All the needed info can be found here: TECHNET

Great blogpost: http://blogs.msdn.com/sharepoint/archive/2007/12/11/announcing-the-release-of-wss-3-0-sp1-and-office-sharepoint-server-2007-sp1.aspx

dinsdag, oktober 02, 2007

Redirecting after using InfoPath Form (web-enabled) in Sharepoint 2007

  1. Use the Source query string: so the page will know where to navigate to after the form is closed or submitted (Watch Out: The URL must be in the same site collection or an error will be returned.)
  2. Add the OnClose event to the XmlFormView, add code to redirect after closing:
    Response.Redirect(http://www.dolmen.be);
    In the Infopath Form, you must add the Action: "Close this form: No Prompt" in the rules of the InfoPath Button, otherwise the OnClose event won't fire.

Source blogposts:

maandag, augustus 27, 2007

MCTS for .NET 2.0 Web applications (Exam 070-528)


Just like my colleague MaBal did, I passed the Microsoft.NET Framework 2.0 - Web-based Client Development (Exam 070-528) exam!

Now I can call myself: Microsoft Certified Technology Specialist for .NET framework 2.0 Web applications.

zondag, augustus 19, 2007

Query DataConnection in Infopath Web-enabled Form when selecting value of dropdownlost (with Managed Code)

You don't always need to load your dataconnection before the form is loaded (performance reasons), sometimes you want to load a different dataconnection when a certain value is selected. I use the example of a dropdownlist, and every value of the dropdownlist will load an other dataconnection into another dropdownlist.



Add the 2 dropdownlists, the second dropdownlist must have a connection with a datasource (I use an embedded Xml file dc.xml). When creating this dataconnection, please deselect the setting "Automatically retrieve dat when form is opened".




What you will need after you created the controls in infopath, open VSTA (alt+shift+F12). Add following code fragment into the InternalStartup method:

this.EventManager.XmlEvents["/my:myFields/my:Type"].Changed += new XmlChangedEventHandler(TypeChanged);

You also need to add the TypeChanged methods:

void TypeChanged(object sender,XmlEventArgs e)
{
string type = e.NewValue; //the selected value of the type dropdownlist

//I just added one dataconnection called dc (value when you select POST)
//You need to put here code (switch) for all the values in the type ddl
DataSource ds = this.DataSources[type];
DataConnection dc = ds.QueryConnection;

dc.Execute();
}


When you use the Execute method of a dataconnection, you must change following setting (it is like the ASP.NET AutoPostBack setting), otherwise your dataconnection will not be loaded!! (when you just changed a value of another field, you don't need to change this setting).




Change the standard option (postback settings): "Only when necessary for correct rendering of the form (recommended)" to "Always"


Remarks:
When you use Mananged Code in web-enabled form, uou must publish it as an administrator approved template (check out blogpost http://spsfactory.blogspot.com/2007/01/walkthrough-publishing-administrator.html )