SharePoint Development Blog

Nick Boumans
View my LinkedIn Profile Follow me on Twitter View my Profile on FaceBook View my projects on CodePlex View my presentations on SlideShare



Recent posts

Tags

Categories

Navigation

Pages

Archive

Blogroll

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

Function session_is_registered is deprecated PHP

Installing an Open Source PHP system (on Php 5.3) I got the error: 

Deprecated: Function session_is_registered() is deprecated in (filename).

I've solved this by using the functions

[code:xml]
session_start();
$_SESSION["variable_something"] = 'Yay! i'm into a session var!!';


en om te checken of deze bestaat:


if(isset($_SESSION["variable_something"])){
    echo "Session is alive!";
}
Posted: Aug 21 2011, 12:04 by Nick Boumans | Comments (0) RSS comment feed |
  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Filed under: PHP
Differences between SiteCollection Features P1 vs E3 Office365

Since I noticed a lot of diferences in functionality in P1 and E3 Office 365 (e.g. it's only possible to make a site wiki with E3 - only E3 has publishing feature) I want to share screenshots about the differences.

P1:

Office365 P1

E3:

Office365 E3
Posted: Jul 28 2011, 12:14 by Nick Boumans | Comments (0) RSS comment feed |
  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Upload error D

By trying to upload a file we got the following error:

Unknown server error number: d   at Microsoft.SharePoint.Library.SPRequestInternalClass.PutFile(String bstrUrl, String bstrWebRelativeUrl, Object varFile, PutFileOpt PutFileOpt, String bstrCreatedBy, String bstrModifiedBy, Int32 iCreatedByID, Int32 iModifiedByID, Object varTimeCreated, Object varTimeLastModified, Object varProperties, String bstrCheckinComment, UInt32& pdwVirusCheckStatus, String& pVirusCheckMessage)
   at Microsoft.SharePoint.Library.SPRequest.PutFile(String bstrUrl, String bstrWebRelativeUrl, Object varFile, PutFileOpt PutFileOpt, String bstrCreatedBy, String bstrModifiedBy, Int32 iCreatedByID, Int32 iModifiedByID, Object varTimeCreated, Object varTimeLastModified, Object varProperties, String bstrCheckinComment, UInt32& pdwVirusCheckStatus, String& pVirusCheckMessage)

After Googeling we noticed it was a ForeFront issue. We solved this issue by give the System Account Access to the ForeFront dCom application.

Posted: Jul 11 2011, 15:57 by Nick Boumans | Comments (0) RSS comment feed |
  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Filed under: Silverlight
Javascript Content Query over Web Applications

Sometimes you want to show some items from a List in another Site Collection or Web Application (or even another Farm). This can't be done with out of the box webparts. The next javascript which you can paste in de default content editor webpart (source editor) can help you in this situation.

  1. Go to the site where you want to show your list items (not the location of the list)
  2. Put this file in a document library in your site
  3. Edit your page and paste a content editor wepart on your page
  4. Go to source editor (of the webpart properties of the content editor webpart)
  5. Put the next code into your content editor webpart

<script type="text/javascript" src="http://mysite/documentlibrary/jquery-1.3.2.min.js"></script> <script type="text/javascript">    $(document).ready(function() {        var soapEnv =            "<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/'> \                <soapenv:Body> \                     <GetListItems xmlns='http://schemas.microsoft.com/sharepoint/soap/'> \                        <listName>libraryname</listName> \                        <viewFields> \                            <ViewFields> \                               <FieldRef Name='Title' /> \                           <FieldRef Name='ID' /> \                           </ViewFields> \                        </viewFields> \                    <rowLimit>5</rowLimit> \                    </GetListItems> \                </soapenv:Body> \            </soapenv:Envelope>";         $.ajax({            url: http://corporatesite/site/_vti_bin/lists.asmx,            type: "POST",            dataType: "xml",            data: soapEnv,            complete: processResult,            contentType: "text/xml; charset=\"utf-8\""        });    });     function processResult(xData, status) {        $(xData.responseXML).find("z\\:row").each(function() {            var liHtml = "<li><a href=\"http://corporatesite/site/list/listname/DispForm.aspx?ID=" + $(this).attr("ows_ID") + "\">" + $(this).attr("ows_Title") + "</a></li>";            $("#tasksUL").append(liHtml);        });    }</script> 
Posted: May 16 2011, 11:04 by Nick Boumans | Comments (0) RSS comment feed |
  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Filed under: SharePoint General
Office 365 Beta
Posted: May 05 2011, 17:38 by Nick Boumans | Comments (0) RSS comment feed |
  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Filed under:
Outlook 2010 Mark all appointments as private

In Outlook 2010:

  • Press ALT + F11
  • You get A new window: Microsoft Visual Basic For Applications window
  • Past the next code into this window:
Dim myOlApp As New Outlook.Application
Public myOlItems As Outlook.Items
Public Sub MarkCalendarItemsAsPrivate()
Set myOlItems = myOlApp.GetNamespace("MAPI").GetDefaultFolder(olFolderCalendar).Items
For Each Appointment In myOlItems
Appointment.Sensitivity = olPrivate
Appointment.Save
Next Appointment
End Sub 
  • Save this Macro
  • Go back to Outlook
  • Press ALT + F8 to run this macro
  • Wait for some minutes: all your meetings will be marked as private
Posted: Mar 30 2011, 11:26 by Nick Boumans | Comments (0) RSS comment feed |
  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Filed under: Visual Studio
Building my own Low Power HomeServer

Interested by lot of home server types on the internet I decided to build my own.

My requirements:

  • Low power (25-50 Watt / Hour)
  • Small
  • Low noice
  • Ability to install x64 Operating System
  • Linux and Winows Compatible (since I didn't decide yet to boot Linux or Windows)
  • min. 500 gB Hard Disk space

After a lot of Googling and reading http://tweakers.net I came to the following hardware components, which I buyed online at the same company:

73,20 Euro - Case - Antec ISK 300-65
78,10 Euro - Motherboard - Asus AT5NM10-I
50,80 Euro - 4 GB (2x2GB) RAM - Kingston ValueRam KVR800D2N6K2/4G
56,00 Euro - Sata HD - Seagate Momentus 7200.4 ST9500420AS. 500GB SATA-300. 16MB. 7200rpm
Total: 264,05

 Assembling:

  1. Motherboard in case
  2. Memory on motherboard
  3. HD in case
  4. Connect HD by sata cable and put powersupply in it
  5. Connect other cables

N.B. I connected the fan directly to the powersupply. It has 3 switches. If you want the motherboard to direct the fan you have to buy a seperate 4 to 3 pin Molex connector (4,95 euro).

Software:

  1. Make a bootable USB stick (since I didn't have a cd / dvd drive)
  2. Put the install files on the USB stick

Boot the PC and press ALT-F8 to boot from USB and install the software.

Conclusion: verry nice and cheap system. Windows 7 works verry well. Low noise and power supply so ideal as a home server.

Posted: Feb 08 2011, 21:06 by Nick Boumans | Comments (0) RSS comment feed |
  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Filed under: Hardware
Collabse Comment Field in Listview

You can collabse the command field of a list view webpart in the following way:

  1. Open your page which contains the listview webpart (and the command field) in SharePoint designer
  2. Right click the webpart (page is open in SharePoint designer) convert to XSLT Data View in SharePoint designer.
  3. Save the page from SharePoint designer
  4. Open the page in the browser
  5. Choose WebPart properties >> XSL Editor
  6. Locate the line: <Xsl:value-of .../> for the V3Comments field
  7. Replace the line by:
  8. <SharePoint:AppendOnlyHistory runat="server" ItemId="{@ID}" FieldName="V3Comments" ControlMode="Display" />
  9. Apply the changes
Posted: Dec 01 2010, 07:00 by Nick Boumans | Comments (0) RSS comment feed |
  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Different Templates in SharePoint Document Library

In a lot of situations you want different templates under the new button in a SharePoint document Library:

  • Create a new content type: Site Actions >> Site Settings >> Galleries >> Site Content Types
  • Create

  • Click: "OK"
  • Advanced settings >> Add a new document template

  • Optionally: You can also choose enter the url (pre requirst the template in already uploaded in a sharepoint document library, you can do this also as step one)
  • Connect the new content type to the document library where you want to see the template
  • Go to your document library >> Settings >> Advanced Settings
  • Mark/check: Allow Management of content types
  • Go back to the document library settings (you see lot of more options now since we checked the option allow management of content types)

  • Click add from existing site content types
  • Select your content type we defined in de first steps of this tutorial (mine is Prince2)
  • Click OK
  • Optionally you can Change the new button order and default content type (see image above).
  • Now users can select the template under the new button in the document library. This could also be other document template types (Excel, PowerPoint etc.)
Posted: Nov 25 2010, 21:00 by Nick Boumans | Comments (0) RSS comment feed |
  • Currently 1/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Filed under: SharePoint General
SharePoint 2010 Starter Masterpage Feature with Mega DropDown Navigation Menu

Last days I played around with Mega Drop Down Menu's. As you can read in Jakob Nielsens article this is "hot" nowadays. By doing some research I came to the Masterpage feature receiver of Mirjam van Olst and a blogpost of Guillaume Marty about Mega Drop Down menus. I put this into a starter masterpage, since this is often the start of (re)branding a site. The Publishing starter masterpage of Randy Risgill is always very helpfull for me (http://startermasterpages.codeplex.com).

I assembled some things into the next Proof of Concept: SharePoint 2010 Starter Masterpage Feature with Mega DropDown Navigation Menu on CodePlex http://sp2010.codeplex.com

At the moment the menu is static. In the next days I will make something more dynamic (you will not need to redeploy your solution for editing the menu content in that situation).

Update: 14 november 2010 --> change content of the Mega Drop Down Menu by a SharePoint List:

If you have any suggestions, feel free to contact me.

Hope this will help lot of people.

 

Posted: Nov 08 2010, 23:40 by Nick Boumans | Comments (0) RSS comment feed |
  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5