SharePoint 2010 – Form Error in Reusable Workflow

So you take a copy of a delivered SharePoint 2010 workflow, like the  ‘Approval – SharePoint 2010’ workflow, and you plan on making a few customization and then simply clamming it as your own and then showing it off to your coworkers.  But after publishing the workflow, and adding it to a list in your site, you try to add a Approver and/or a CC you get the following error when the page does a post back:

 
This lovely error is due to SharePoint designer security update, KB2553322 (Security update for InfoPath 2010: July 10, 2012). This error has apparently been a huge pain in developers butts all over the world and you will hear many different ways to fix it but the truth is I tried them all and this is the only solution that worked!!!

 

Solution:

Please Note: This solution will have to be performed whenever the workflow has been modified

  • In SharePoint Designer, go to All Files.

 

 

  • Navigate to:
    • Local workflows:  Workflows > select the name of the workflow.
    • Global workflows:  _catalogs > wfpub > select the name of the workflow.

 

  • Open the “Workflow Name” .xoml.wconfig.xml file.

 

  • Click the Edit File link.

 

  • Navigate to the “DefaultData” Section

 

  • Remove xsi:nil=”true” from the Assignee and CC Fields.

 
 

  • It should look like when you are done.

 

  •  Save the file.
Advertisements

Sharepoint: Table of list template IDs

Template ID

Description

1200

Administrator tasks list

104

Announcements list

303

Blog Categories list

302

Blog Comments list

301

Blog Posts list

105

Contacts list

120

Custom grid for a list

118

Custom Workflow Process

130

Data Connection library

110

Data sources

108

Discussion board

101

Document library

106

Events list

150

Gantt Tasks list

100

Generic list

1100

Issue tracking

103

Links list

114

List template gallery

116

Master pages gallery

201

Meeting Agenda list

202

Meeting Attendees list

204

Meeting Decisions list

207

Meeting Objectives list

200

Meeting Series list

210

Meeting text box

211

Meeting Things To Bring list

212

Meeting Workspace Pages list

117

No-Code Workflows

2002

Personal document library

109

Picture library

300

Portal Sites list

2003

Private document library

111

Site template gallery

102

Survey

107

Tasks list

112

User Information list

113

Web Part gallery

119

Wiki Page library

140

Workflow History

115

XML Form library

SharePoint – CQWP – XSLT in ItemStyle to Format Created Date

The goal is to display the created date with the full month and day:

Add the following namespace attribute to the root xsl:stylesheet element in ItemStyle:

xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"

Create an xsl:variable element:

<xsl:variable name="Created">
<xsl:value-of select="ddwrt:FormatDateTime(string(@Created) ,1033 ,'MMMM dd')" />
</xsl:variable>

Use the variable:

<xsl:value-of select="$Created"/>

SharePoint 2010 – WebPart Header Rounded Corners

Lets use some fancy CSS3 properties to add rounded corners to the Webpart header bar. This solution won’t work in IE7 or IE8 but should work in IE9, Firefox, Safari, and Chrome.

Have a look:

.ms-WPHeader td { 
	background: #89CE2E; 
	border-bottom: none !important;  
}
.ms-WPHeader td.ms-wpTdSpace { 
	-moz-border-radius-topright: 5px; 
	-webkit-border-top-right-radius: 5px; 
	border-top-right-radius: 5px; 
}
.ms-WPHeader td:first-child.ms-wpTdSpace { 
	-moz-border-radius-topright: 0px; 
	-webkit-border-top-right-radius: 0px; 
	border-top-right-radius: 0px; 
	
	-moz-border-radius-topleft: 5px; 
	-webkit-border-top-left-radius: 5px; 
	border-top-left-radius: 5px; 
}
.ms-WPHeader h3, .ms-WPHeader h3 a { 
	color: #fff; 
}
.s4-wpcell:hover .ms-WPHeader .ms-WPHeaderTdMenu:hover { 
	background: #89CE2E; 
}

SharePoint 2013 – BootStrap – Search Box drop down options not displaying on certain pages

OK, I have run into another boggling situation where the default Search Box dropdown is not giving me the search options on my home page… but it is showing on most of the other pages in the site collection?

After some digging in the guts of the master page and and searching the inter-webs… I have a solution 🙂

Just add a reference to ajaxcontroltoolkit in your master page and bob’s you uncle:

<script type="text/javascript">
          SP.SOD.executeOrDelayUntilScriptLoaded(function () {
         SP.SOD.executeOrDelayUntilScriptLoaded(function () {
RegisterSod("ajaxtoolkit.js",  SP.Utilities.Utility.getLayoutsPageUrl('ajaxtoolkit.js'));
}, 'strings.js');
}, 'sp.js');
</script>

Please note that if you are using Design Manager please add the below code to Bootstrap.html instead:

<!--MS:<SharePoint:ScriptLink language="javascript" name="ajaxtoolkit.js" OnDemand="true" runat="server" Localizable="false">-->
<!--ME:</SharePoint:ScriptLink>-->

If you get a chance please check out this CodePlex project: http://responsivesharepoint.codeplex.com/