in

Raymond Mitchell

May 2006 - Posts

  • SharePoint List Template Id's

    If you've started playing with Features in SharePoint 2007, you've probably run across a few places where you need to enter a ListTemplateId.

     

    You can find a list of the most common ones here.

     

    * Update *

    It looks like MS changed the link so that MSDN page is lost forever (or at least I don't want to go find it).  Luckily Peter has a post that can help us out:  http://weblogs.asp.net/pschneider/archive/2006/11/22/sharepoint-listtemplateid.aspx

  • Features - the new way to customize

    Windows SharePoint Services V3 supports a new way for you to add functionality to your sites - "Features."

     

    In V2, for instance, if you wanted to add a new menu item to the toolbar on a list edit page, you would probably have to edit the page in FrontPage, drop a content editor web part on the page to inject JavaScript, or modify the list's template.  Unless you modified the list template, you would then have to duplicate that for each web where you wanted the new menu item.  And what if you had a web where you didn't want the menu item?

     

    In V3, you can develop "Features" which allow you to package up functionality (menu items, list event handlers, etc) and deploy them at the web or site collection level.  Even better, you can activate and deactivate features allowing you to easily enable/disable functionality.

     

    Check out the WSS SDK for more info.  View the Feature section from the SDK online here.

  • Beta 2 Madness Continues

    Microsoft quietly released Office 2007 Beta 2 this morning and for those of you quick enough, you were able to snatch it up before the download servers got too bogged down.  Later in the afternoon, official emails were sent and the internet slowed to a crawl :)  So what exactly is available and where do you get it?

    There are three scenarios (that I know of):

    1) You are interested in Beta software but don’t have any special access to Microsoft’s Beta programs.  You can download the beta (including Office Professional Plus, SharePoint Designer, OneNote, and Microsoft Office SharePoint Server) after a simple registration at http://www.microsoft.com/office/preview.

    2) You participated in the TAP program for Office.  You have your usual location to download from and you should go there and find out what you can get so I don’t have to violate my NDA by telling you!

    3) You have an MSDN subscription.  I’m not sure at what subscription level it becomes available but you have access to download the Office Programs Disk and Office Server disks from your normal subscriber downloads.  I’m not 100% sure what is contained in each but I’m guessing at least the Office Professional Plus on the programs and probably MOSS on the server disk.

  • Start the Beta 2 Madness

    Microsoft released the updated SDKs for Windows SharePoint Services V3 and SharePoint Server 2007 yesterday.  If the file size says anything, they've made a ton of updates since the last drop.

     

    Some interesting topics in the WSS SDK:

    • "Upgrading from Windows SharePoint Services V2 to V3"
    • "Forms-Based Authentication"
    • "Customizing Windows SharePoint Services Search" - this one is very much under construction

    Go get'em

  • Averaging form fields in InfoPath

    Say you wanted to have a number of question groups, and a series of questions for each group:

     

    You then wanted to post the average with the results in a SharePoint forms library.  Sounds pretty easy right?  Well, there's an interesting twist involved (as usual).

     

    First, make sure your questions are grouped.  You can view your data structure by choosing the Data Source option from the dropdown in your task pane:

     

    Then create a new field to hold your average making sure to give it the appropriate data type:

     

    Next click on the function button next to the default value textbox and insert an avg function:

     

    Double-click to insert a field and choose the parent group of your questions:

     

    Your formula should look like this:

     

    That won't quite do though, you'll need to check the Edit XPath option to manually update it:

     

    And append a /* to the end of your XPath query.  That will tell InfoPath to average all of the numeric values in the child nodes of the selected parent:

     

    Now that your average is set up, open your Form Options and configure your average field to be a Form Library Column (meaning it will display in SharePoint):

     

    Then publish your form to a forms library and submit a test:

     

    Isn't it grand?  You can then configure your views to provide an overview of the information you want to see, but still have the option of drilling down into each survey response.  You also have full control over the look and feel of your form, something you won't get (without FrontPage) using the out of the box surveys in SharePoint.

  • SharePoint RPC - Two targets for FrontPage RPC

    You may notice that there are two targets listed for FrontPage RPC:

     

    Some commands require that you post to the _vti_bin/_vti_adm/admin.dll instead of _vti_bin/_vti_aut/author.dll.  How do you know which commands should talk to which dll?  For one, the SDK is pretty good about telling you which one - check the Decoded section and you should see something like this:

     

    Otherwise, you can always try it against the author.dll and switch to admin if you receive a response like this:

     

  • SharePoint RPC - Create a Web Part Page

    Here are some steps to create a Web Part Page using WSS RPC.

     

    Use the Lists WS button to retrieve a list of lists on the current site:

     

    Find a document library and copy the list ID.  Then Click on the WSS RPC button:

     

    Choose "New Web Page" from the template dropdown:

     

    Next, paste the id into the <SetList> element, set the type to "WebPartPage," choose a WebPartPageTemplate, set overwrite to false, and finally, give the WebPartPage a title:

     

    Click "Send WSSRPC" to process the command:

     

    If your results look good, browse to the document library and you should see your new page:

  • SharePoint RPC - Test Page

    I mentioned in my last post that there is a section in the SDK that talks about how to post to WSS RPC Methods.  Using that as a starter, I created a page that lets me test FrontPage RPC, WSS RPC, and the GetListCollection method of the Lists Web Service.

     

    Windows SharePoint Services RPC:

    FrontPage RPC:

     

    Lists Web Service:

     

    You can download the test page here.  To install:

    1. Extract the .aspx from the .zip file
    2. Upload the .aspx page to a document library on your WSS V2 site

    This test page will not do anything for you if you don't know the basics of using FrontPage and/or WSS RPC with SharePoint.  Even then, you will want to have the SharePoint Products and Technologies SDK handy to help you craft your commands.

     

    Now a warning: this test page is not for everyone.  You can do just as much (and possibly more) damage to your site using this test page as you can with FrontPage.  I would not recommend deploying it to a production site.

     

    Please be careful out there...

  • SharePoint RPC - Introduction

    If you've developed with SharePoint (and possibly even if you haven't) you are probably aware that it ships with a number of Web Services.  What you may not know is that you can also talk to SharePoint using RPC.  I talked about RPC nearly a year ago but haven't seen a lot done with it since then.

     

    Most of the resources I've seen out there focus on the document upload aspects of RPC and while that's definitely a good case to use RPC, it certainly isn't the only reason.  The SharePoint Products and Technologies SDK contains a list of > 60 methods you can call using RPC and more than a few of them are worth looking into.  It also contains a page with step by step instructions for "Posting Windows SharePoint Services RPC Methods" and with a little bit of playing, you can adapt it to work with FrontPage RPC as well.

     

    Windows SharePoint Services RPC Methods

     

    FrontPage Server Extensions RPC Methods

  • Inetium Blogs - New Look

    For the last two weeks Kris Nyreen and I have been working on changing the look and feel of blogs.inetium.com.  Custom branding Community Server definitely takes some ramping up time but once you get used to it, you can make changes pretty quickly.

     

    Files Updated:

    • ControlPanelMaster.ascx
    • Skin-RepeaterBar.ascx
    • Skin-TitleBar.ascx
    • blog.css
    • Common.css
    • controlpanel.css

    We also added a few custom images to change the header.  The main reason we tweaked the controls above was to provide menu options for each of our practice areas.  Other than that, the majority of the changes you see are in the style sheets listed above.

     

    So what do you think?  Any suggestions?

    Posted May 15 2006, 08:58 AM by rmitchell with 2 comment(s)
    Filed under:
  • MNSPUG Recap

    Today was the two-year anniversary of the Minnesota SharePoint Users Group!  Wow, it has been a blast to watch it grow.  I think we had about 90 people show up for the fun today.  Eric, Wes, Neil, and I presented on Microsoft Office SharePoint Server 2007 (MOSS).

     

    We used the "wheel" below for our guide.  It works pretty well for walking through the features of the new version and allows us to easily categorize the content types that the user group members want to see.  Today we raced through the entire wheel but over the next few months we're planning deeper dives into each of the "spokes."

     

  • Additional Venue

    About Me:

    My name is Raymond Mitchell and I am an Information Worker Solutions Developer at Inetium in Bloomington, Minnesota.  My life in IT started with my return to the Minneapolis/St. Paul area almost 7 years ago.  Before that I was an Army brat, shipped around the US and Germany.

     

    About Inetium:

    Inetium is a technology consulting company that formed in 1998.  We're now a Microsoft Gold Certified Partner and focus in four specific practice areas: Infrastructure, CRM, Application Development, and Information Worker.

     

    About this Blog:

    I've been blogging since late 2004 under the alias IWKID.  I've posted mostly on SharePoint Products and Technologies, Virtual PC/Server, and a few other related technologies.  I think IWKID will live on, discussing the technologies I "play" with while this blog will focus on the technologies I work with and lessons learned in my travels as an IW consultant.

    Posted May 01 2006, 07:06 AM by rmitchell with 1 comment(s)
    Filed under:
Inetium, LLC. Disclaimer