serge's profileSerge Luca (Sharepoint M...PhotosBlogLists Tools Help

Blog


    May 28

    Ineta speaker at the Macedonian Code Camp

    I will be Ineta speaker at the Macedonian Code Camp in 2 weeks organized by the Macedonian.Net User Group. This is my third stay in Macedonia, and I really love it.

    More details here.

    I will present 2 intensive sessions on Sharepoint.

    image

     

    image



    May 24

    My generic Framework for aspx sharepoint workflow forms has been uploaded to Codeplex

    image

    I’m currently working on a screencast for Microsoft Belux to better illustrate it. Stay tuned !

    I shortly described it in a previous post.


    How to allow Full Control permission to a user in a Sharepoint List

    The SPWeb has a  RoleDefinitions property that return a list of SPRoleDefinition.

    Each SPRoleDefinition is a permission level ; for instance in the next code snippe,t web.Roledefinitions will return a collection of 6 roles; they match the permission Levels of the web site :

    image

    If you want to assign a permission level to a user on a specific list, you need to create a new RoleAssignement (SPRoleAssignment class) that can be added to the SPList. The new permission must be linked to the role assignment by adding it to a collection called RoleDefinitionBindings.

     

    SPWeb web =SPControl.GetContextWeb(HttpContext.Current); //  use RunWithElevatedPrivilege here
    SPList myList = web.Lists["MyList"];
    myList.BreakRoleInheritance(false);
    SPRoleDefinition fullRoleDef = web.RoleDefinitions["Full Control"];
    SPUser user = web.EnsureUser(“LITWARE\SERGE”);
    SPRoleAssignment newRoleassignment= new SPRoleAssignment(user);
    newRoleassignment.RoleDefinitionBindings.Add(fullRoleDef);
    myList.RoleAssignments.Add(newRoleassignment);
    myList.Update();


    Small update to my Download Sharepoint solution package utility uploaded to Codeplex

     

    just a simple bug fix.This utility allows Sharepoint administrators and developers  to download a solution package from the Sharepoint solution store (for instance to compare it with another one); I’ve recently faced this situation: we had a solution package in our staging farm, but we wanted to compare the files (features) with our development code.

    I’ve created 2 versions of this utility : a Windows Form version and a stsadm extension .

    image

    Run the Windows Form version on the Sharepoint farm

     

    image

     

    Select a package and click on the “Download package” button, to bring it to the file system.Easy ?

    image

    To use the stsadm version :

    1. register the DownloadWSPStsadm.dll into the gac..
    2. copy the stsadmcommands.downloadwsp.xml file to C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\CONFIG
    3. run the stsadm –o downloadsolution option with the –filename and –storeto parameters as described in the picture below (the destination directory must be created before running the command)

     

    image


    New version of my Workflow Explorer (or ‘Scanner’ ) uploaded to Codeplex

     

    image

    It is still a beta product (v0.8)…

    Before writing code for rendering its output to a web part or a Sharepoint List, I’m still improving its kernel. (In the meantime the output can be redirected to an ascii file). Fixed a bug (display list item ‘filename’ in document libraries and not ‘Title’), and I’ve added a new option ‘raw’ which displays the ‘raw state’ or the workflow (interesting for developers).

    Next version will be an stsadm extension.

    Using the ‘error’ option :

    image

    In the generated Ascii file, you file get this :

    image

     

    Using the ‘all’ option:

    image

    You will get this :

    image

    Using the ‘raw’ option :

    image

    image



    My WebCast "QuickStart with Ajax in Sharepoint" has been published (MS Belux)

    Another WebCast I did for Microsoft Belux has recently been published; in this video, I show how to start  with Ajax in Windows Sharepoint Services v3.



    May 23

    My Sharepoint workflows Scanning tool uploaded to Codeplex

    Several customers asked me to create a  tool that displays the status of running workflows (running on faulting). One of my customer has several hundreds of workflows running at the same time.

    That why I’ve created this utility (still in console mode)  and I’ve uploaded to Codeplex : WorkflowExplorer.

    image

    Showing all running workflows :

    step1

    Showing faulting workflows in a site collection :

    step4

    May 21

    my 1001th answer in the Microsoft Sharepoint newsgroups !

     

    I had the pleasure to post my 1001th answer to the Microsoft Sharepoint newsgroups this morning and to be in the top answerers during the last 3 months.

    image

    image

    May 18

    My video of aspx association forms for Shaeepoint has been published (MSDN Belux)

    Another chopstick I did for Microsoft Belux has recently been published; in this video, I give a quick overview of aspx association forms for Windows Sharepoint Services v3.



    May 17

    My AspxCollectFeedback workflow for Sharepoint uploaded to Codeplex.

     
    I've recently fixed a very important example of the Sharepoint sdk (the AspxCollectFeedback workflow sample) and I've uploaded it to Codeplex.
     
     
    May 16

    My video of the Visual Studio Extensions (1.3) for WSS has been published by Microsoft Belux

    Another chopstick I did for Microsoft Belux has recently been published; in this video, I give a quick overview of the Visual Studio Extensions 1.3 (March CTP) for Windows Sharepoint Services.



    My "Download Solution Package" utility published to codeplex

    The other day, my team had a solution package deployed to a Sharepoint farm, and we wanted to compare this solution with another version; but we couldn't download the deployed version from the solution store.
    That's why I've created a small utility that can be used as a stsadm.exe extension or as a windows form. Basic, but useful...




    May 15

    How to fix the AspxCollectfeedback (sharepoint sdk) workflow sample video published.Microsoft MSDN Belux

    One of the chopsticks I did for Microsoft Belux has recently been published; in this video, I illustrate how to fix the AspxCollectFeedback workflow sample provided with the Sharepoint (wss v3) sdk.