Skip Ribbon Commands
Skip to main content
Home > Community > Blog | Collective Intelligence, Inc.
 Blog
February 21
InfoPath forms redirect after submission
After creating several infopath forms... I needed a method to redirect the users back to the sharepoint homepage rather then sending them to the allitems page. In certain situations, you may only want an admin or supervisor to view the List items, not normal users. So I discovered this url method
&Source=http://sharepoint-landing/Pages/Default.aspx
You will need to place this snippet directly after the first XsnLocation=http... and directly before &SaveLocation=http... The final URL should look something like this (minus the <br>)
http://sp/Pages/Infopath/_layouts/FormServer.aspx?XsnLocation=http://sp/Pages/Infopath/Form.xsn &Source=http://sharepoint-landing/Pages/Default.aspx &SaveLocation=http://sp/Pages/Infopath/Forms &Source=http://sp/Pages/Infopath/AllItems.aspx&DefaultItemOpen=1
​**NOTE: Redirects can only occur within the same site collection.
February 21
Hiding Calendar start times
Back to MOSS 2007. I was tasked to hide the starting times within the multiple calendar views. So I instantly thought, its CSS styling time... and this is what I came up with. 

Within the calendar page, I added a new content editor web part and made it a hidden webpart. I then went into the source editor and added these lines of code.
<style> .ms-cal-weekitem A NOBR {display:none;} 
.ms-cal-dayitem nobr{display:none;} 
td.ms-cal-monthitem A NOBR {display:none;} </style>
This will override the core.css styles and hide the starting times when viewing a weekly, daily, and monthly calendar. This will allow the events to sort vertically and not stretch the date by sorting horizontally. Please enjoy.​
February 21
Web Part Maintenance View

Often times when building custom web parts or hanging third party web parts, error may occur or sometimes a script error is thrown.  Well how do I edit the web part page and delete the erroring web part? Certain cases, you don't even have access to site actions... so what do you do?

Simple work around... add ?contents=1 at the end of whatever page you need to delete the buggy web part from.

For example, URL of the erroring page
http://myfoundation/Home/default.aspx

Web Part Maintenance Page
http://myfoundation/Home/default.aspx?contents=1​

February 21
SharePoint Designer - Eat, Sleep, Breathe Designer.
With SharePoint Designer 2010, you can build complete, rich, reusable, process-centric applications on the SharePoint platform that integrate external data. Developers can use SharePoint Designer 2010 to get a quick start on SharePoint development projects. 

This is a quick reference for all your SharePoint Designer Needs: 
February 21
Moving SharePoint 2010 Central Admin from Web Server to App Server
I always heard horror stories from moving Central Administration around, but once I gave it my first try... I realized it wasn't even that hard for 2010.  Here are the simple steps to perform to move your Central Administration from your Web Server to your App Server.
  1. On the Web Server where CA is currently located
    • Run the SP configuration wizard
    • Click Do not disconnect from the server farm
    • Click Yes, Remove this website from this machine (removes IIS site)
    • Click OK

  2. Now, on the App Server
    • Run the SP configuration wizard
    • Click Do not disconnect from the server farm
    • Click Use this machine to the CA website
    • Place same port # :1111
    • Click Next

    1. Double Check your newly located Central Administration
      • You may have to re-run the Farm Configuration Wizard

    2. Double Check your Services on each server

    3. Double Check the Shared Service Provider

    4. Double Check your event log for any unforeseen errors.
    That's It, Once you successfully moved CA, if you log into your Web Server and launch CA, you will notice it is now pointed to the new App Server.

    *NOTED: Best Practice is to Host your Central Administration on your Application Server.

    Enjoy!
    February 21
    Moving ALL SharePoint 2010 Database to a Storage Area Network
    Here is the approach that I took, when moving all my SharePoint 2010 Databases (including admin, config and search), so far so good with my current SharePoint 2010 Farm.
    1. On the server with Central Administration, I stopped the following services.
      • SharePoint 2010 Administration
      • SharePoint 2010 Timer
      • SharePoint 2010 Tracing
      • SharePoint 2010 User Code Host
      • SharePoint 2010 VSS Writer
      • SharePoint Foundation Search V4
      • World Wide Web Publishing Service
      • SharePoint Server Search 14
      • Web Analytics Data Processing Service
      • Web Analytics Web Service

    2. Then on my MSSQL database, I mounted a new drive using the ISCSI initiator, which created a new storage drive where my new Databases will live.
    3. Next, using SQL Server Management Studio, I detached all my databases one by one.

    4. Then I simply copied ALL the SP databases over to my new drive. (copy all .MDFs and .LDFs)
      • On my new drive, I did place the new DBs in a folder structure simliar to my original SQL \\MSSQL\DATA\

    5. Next, using SQL Server Management Studio, I attached all the databases from the new path.
      • NOTE: Be sure to run management studio AS ADMIN or your SharePoint_Config will attach as Read-Only, which will cause you issues with your farm.

    6. Once all the databases are reattached and running, I rebooted the SharePoint Servers.

    7. I then went back into my server with CA, ran the SharePoint Configuration Wizard, which allowed me to reconnect to the Farm, which I had to supply my existing Farm PassPhrase.

    8. I had to also reconnect the SharePoint Central Administration through the Wizard.
      • One thing I did notice is that I had to delete my current CA from IIS, because it conflicting with the wizard.
      • But once the configuration wizard was complete, it reconnected and recreated the CA in IIS.

    9. Thats it, CA came back up, all my web servers were reconnected and life is good.

    10. Be sure to double check your Health Analyzer and your Services on Servers.

    February 21
    Hiding Quick Launch Nav in SharePoint 2010
    I found adding inline styles not only successfully hides the Quick Launch but if you also add a 0px margin, that will compress the left nav placeholder. This will need to be done in the Master page.
    locate the following styles

    <div id="s4-leftpanel" class="s4-notdlg">

    This div class references the ribbon itself, so we are goin to add a div style to display NONE

    <div class="s4-ca s4-ca-dlgNoRibbon" id="MSO_ContentTable">

    This div class references the placeholder (navigation column) we will need to compress this and add a div style that will make the left margin a 0 px

    after your done your two new tags should look simliar to these below

    <div id="s4-leftpanel" style="display:none" class="s4-notdlg">

    <div class="s4-ca s4-ca-dlgNoRibbon" style="margin-left:0px" id="MSO_ContentTable">

    Thats it... once this is done, check the master page in and you will no longer see the quick launch.
    February 21
    Commonly Used XSL Statements

    Sample Code for a working XSL If Then Statement

    <xsl:choose>

    <xsl:when test="@new_website != ''"><a href="{@new_website}" target="_blank"><strong>FULL PROPERTY DETAILS</strong></a></xsl:when>

    <xsl:otherwise><a href="/PropertyPDFs/{@new_businesskey}.pdf" target="_blank"><strong>FULL PROPERTY DETAILS</strong></a></xsl:otherwise>

    </xsl:choose>

    Sample Code for a working XSL Normalizing Spacing
    (If value doesn't exist, Hide the spacing and label)

    <xsl:if test="not(normalize-space(@new_warehousesqft) = '')">Warehouse Sq. Ft.: <xsl:value-of select="@new_warehousesqft" /><br /></xsl:if>

    February 21
    Reporting Service Web Part Error

    Today we discovered an issue with the RS Webpart.  The issue was, the SPsessionStateService was disabled, the status of this service can only be viewed from Powershell.

    • Uninstalled the rsSharePoint.msi, rebooted web server

    • Disabled the UAC (user access control)

    • Reinstalled rsSharePoint.msi, Activated RS Feature

    • Opened Powershell as Administrator
      • PS C:\> Enable-SPSessionStateService

    Opened Page, Inserted Web Part, No Error.

    February 21
    Stay Up to Date on the Availability of SharePoint Online Sites
    If your organization has a hosted SharePoint Online site provided as a service by Microsoft Online Services, there's an RSS feed you may want to review. Microsoft uses an RSS news feed to inform its subscribers about planned and unplanned downtime of its services, including SharePoint Online. The feed is updated with new information on a regular basis, and is an effective way to stay current on the status of your SharePoint Online service and any upcoming maintenance on it. The feed can be found at:

    original source: Secrets of SharePoint
    1 - 10Next