Skip to main content

Michael Blumenthal's BlumenthalIT.NET

Search BlumenthalIT.Net:  
Home
Blogging about SharePoint
Public Speaking
  

View blog authority

    follow me on Twitter
    This is my website for sharing my knowledge of SharePoint and other Microsoft technologies with the world.

     Most Recent 3 Posts - For All Posts, Click Here

    Modifying a web part’s unnamed view with POSH

     

    Here’s a little POSH script I wrote today, generalized a bit.

    The web part in question shows a list that has a column named “Title”, and one named “Percentage”, where it grouped them by a column called MarketType.

    It started out sorting ascending by title, and afterwards sorts descending by percentage.

     

    function global:Sort-WPBiggestPercentOnTop($SPViewUsedByWP)

    {

    $oldqu = $SPViewUsedByWP.Query

    if $oldqu -ne "<GroupBy Collapse=""FALSE"" GroupLimit=""100""><FieldRef Name=""Market_x0020_Type"" Ascending=""FALSE"" /></GroupBy><OrderBy><FieldRef Name=""Title"" /></OrderBy>"

    { write-error "View not as expected"}

    $newqu = $oldqu.Replace("<FieldRef Name=""Title"" />","<FieldRef Name=""Percentage"" Ascending=""FALSE"" />"

    $SPViewUsedByWP.Query = $newqu

    $SPViewUsedByWP.Update()

    write-host "Need to reset the state of the web part toolbar, it gets changed when the view gets edited."

    }


    # Comments: 0
    Modified: 11/6/2009 3:52 PM
    Permalink: http://blumenthalit.net/blog/Lists/Posts/Post.aspx?ID=145
    Lots of 2010 Info now available

     

    With the opening of the 2009 SharePoint Conference yesterday, the NDA was removed from 2010 information and Microsoft and 3rd parties have been publishing content as fast as they can.

    Twitter has been a good way to find out about a number of these.  My favorites so far are:

    1. http://www.microsoft.com/downloads/en/results.aspx?displaylang=en&nr=50&sortCriteria=Date&sortOrder=Descending&stype=s_adv&freetext=sharepoint%202010 – A ton of downloads on Microsoft.com all about 2010 including 10 posters.
    2. http://msdn.microsoft.com/en-us/sharepoint/ee513147.aspx  - SharePoint 2010 development training.  See Module 2 in particular.
    3. http://msdn.microsoft.com/en-us/vstudio/dd441784.aspx#Sharepoint – Visual Studio 2010 developer walkthroughs for SharePoint development
    4. http://www.mssharepointconference.com/pages/videoplayer.aspx?vhid=1 Tom Rizzo’s news of the day from Day 1 of the SharePoint conference.

    Also, things I couldn’t say before:

    Central Admin 2010 is sweet! Managed accounts that change their own strong passwords for you – awesome!

    492+ PowerShell cmdlets for managing SharePoint! Cool!

    --Michael


    # Comments: 0
    Modified: 10/20/2009 10:51 AM
    Permalink: http://blumenthalit.net/blog/Lists/Posts/Post.aspx?ID=144
    November 2009 CSPUG Meeting: Speakers Chosen

     

    We’ve just finalized our speakers for the Nov 5 and Nov 19 meetings of the Chicago SharePoint User Group.  We have Rick Seeman, a SharePoint Technical Specialist from Microsoft, MVP Asif Rehmani, and MVP Rob Bogue speaking.  We can’t tell you the specific topics yet, because it’s all 2010 and under NDA.

    Save the dates! The Nov 5 meeting is an evening meeting in the Loop, and the Nov 19 meeting is an afternoon meeting in Downers Grove.  Rick and Asif speak at both, Rob speaks at the afternoon meeting as a special bonus. Sign up for our mailing list at www.cspug.org, and as soon as we open Registration, you will know about it!

    --Michael


    # Comments: 0
    Modified: 10/6/2009 8:07 PM
    Permalink: http://blumenthalit.net/blog/Lists/Posts/Post.aspx?ID=143
     
     
    Microsoft Certified Technology Specialist: MOSS Configuration
    I also hold an MCSE, MCAD, MCDBA, and CAPM.

     What I'm working on now

    • Recently completed a MOSS Intranet for a political action committee.
    • Recently completed a MOSS Internet and Extranet site for a non-profit organization.
    • Ramping up on SharePoint 2010.
    • Public speaking on SharePoint topics.  For more information, click here.
    • Webmaster for the Chicago SharePoint User Group.  Visit CSPUG.org and come to our meetings!

     

     Recommended Books

    Recommended SharePoint Books
     

     MSDN and TechNet Articles I've Commented On

      HideCustomAction Element (Custom Action)
      How to Add Actions to the User Interface
      Solution Schema
      SPList SDK Object Model Refernce
      View Element (View)
      Welcome to the Windows SharePoint Services 3.0 SDK
      ContentType Element (ContentType)
      Configuring IntelliSense with CAML Files When Developing for WSS 3.0
      Features and solutions: Stsadm operations (Office SharePoint Server)
      PowerShell Pack for SharePoint
      SPWorkflow.CreateHistoryEvent Method
      http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfieldurlvalue_properties.aspx
      Configure Kerberos authentication (Office SharePoint Server) (Updated: 2009-03-26)