Friday, January 30, 2015

Saving SPD workflows along with Site Templates

If you have a SharePoint designer workflow attached to a list in a SP site, and you want to create an identical site, you will save site as site template and create a new site with it, assuming it will be identical.



In reality this is not the case, as any SPD list workflow will not work in new site, as they will still be associated with List Id's ( for list with which workflow is associated, Task list & History list) in original site.



To make this work, recreate SPD list workflow as reusable workflow, attach it to required list and then save site as site template. Now, if you create new site based on site template, you will find workflow associated with list and working as desired.



Reason: As earlier stated, with regular workflows, List Id's are bonded strongly in workflow.xoml.wfconfig.xml , where as with reusable workflows, List Id's are loosely bonded, to be more clear following association entry will show the difference:



reusable workflows:

< Association ListID="{$ListId:Lists/Contacts;}" StartManually="true" TaskListID="{$ListId:Lists/Tasks;}" HistoryListID="{$ListId:Lists/Workflow History;}" StartOnCreate="true" StartOnChange="true" />



regular workflow:

<Association ListID="{5112D71E-2D5A-4875-9ED8-E7DD78D3D901}" StartManually="true" TaskListID="{49170964-7E29-4902-A8E2-888D3C882AC9}" HistoryListID="{74CFBD22-9D23-46E2-B342-993025AFCE9B}" StartOnCreate="true" StartOnChange="true"/>




by Deepak Chawla via Everyone's Blog Posts - SharePoint Community

Thursday, January 29, 2015

New Year, New Directions on SharePoint Pro



New year, new ideas, new voices, new directions on SharePoint Pro.




read more




by via SharePoint Pro

Update Available for SharePoint Enterprise Server 2013

Microsoft has released an update for SharePoint Enterprise Server 2013 that provide fixes and improvements for stability and performance.


read more




by via SharePoint Pro

Wednesday, January 28, 2015

3 Ways to Effectively Implement (or Improve) Enterprise Social Collaboration


A recent report from Aberdeen calls social media a “game changer” for the success of employees and the business as a whole—if such technology is used effectively.


read more




by via SharePoint Pro

Tuesday, January 27, 2015

ownCloud in the Enterprise

by Naomi Moneypenny If you’re an enterprise IT manager, you might have noticed some change in your role over the last few years. There have been waves of outsourcing then insourcing, users invoking “shadow” IT (using apps on the web to meet a need without enterprise oversight) and using consumer services for business tasks, and [&hellip


The post ownCloud in the Enterprise appeared first on CollabShow.




by Bonnie Surma via CollabShow

Monday, January 26, 2015

Using RequireJS to Load the Right Version of jQuery Depending on Internet Explorer Version

Here’s a cool trick you can use with RequireJS. I found it in a post by @rnsloan called Conditionally Loading jQuery 2.x.


Since environments with SharePoint can often have a mixed bag of browser versions, this conditional setting lets us load jQuery 2.x when the browser can handle it (generally IE 9+) or jQuery 1.x when it can’t. The function document.addEventListener is undefined in IE8 and earlier – sometimes called oldIE – and defined in IE9+ – also known as modern.IE – so it’s a simple little test that ought to work.


If you don’t know why this matters, check out the Browser Support page on the jQuery site.



requirejs.config({
paths: {
"jquery": (document.addEventListener) ?
['//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min','jquery-2.1.3.min']
:
['//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min','jquery-1.11.1.min']
}
});

Note: The versions of jQuery above were current as of this writing, but may well have already moved on by now.




by Marc D Anderson via Marc D Anderson's Blog

Friday, January 23, 2015

Calculate How Much Web Storage You’re Using

This is a quick one, but it’ll be a post I return to over and over again.


When you use Web storage (a.k.a. DOM storage) – localStorage or sessionStorage – to cache data, you’ll often want to know how much you’ve used already. Each browser gives you a different amount of storage to work with, and you don’t want to run out for no good reason.


You might be surprised what the sites you visit are up to these days. Cookies are old hat; they just don’t give us enough to work with, as they are capped at 4k of data each.


From Wikipedia:



Web storage provides far greater storage capacity (5 MB per origin in Google Chrome, Mozilla Firefox, and Opera; 10 MB per storage area in Internet Explorer; 25MB per origin on BlackBerry 10 devices) compared to 4 kB (around 1000 times less space) available to cookies.



If you need to know how long each browser has offered Web storage, check out the Web storage page on Can I use.


I’ve adapted some JavaScript I found out in a post on StackOverflow to display the storage used by each object in both localStorage and sessionStorage for the current origin



var storageTypes = ["localStorage", "sessionStorage"];
var x, log = [], total = 0;

for(var i=0; i < storageTypes.length; i++) {
var thisStorage = window[storageTypes[i]];
log.push("Statistics for " + storageTypes[i]);
log.push("--------------------------------");
for (x in thisStorage) {
log.push(x + " = " + ((thisStorage[x].length * 2) / 1024).toFixed(2) + "KB / " + ((thisStorage[x].length * 2) / 1024 / 1024).toFixed(2) + "MB");
total += thisStorage[x].length * 2;
};
log.push("Total = " + (total / 1024).toFixed(2) + "KB / " + (total / 1024 / 1024).toFixed(2) + "MB");
log.push("================================");
total = 0;
}
console.log(log.join("\n"));

The results will look something like those below, which I got by running the code in a console while I was on a Yammer external network.



Statistics for localStorage
--------------------------------
yj-chat-contact-list-1328414-1512241636 = 0.18KB / 0.00MB
yj-chat-contact-list-428797-1488346713 = 0.18KB / 0.00MB
Total = 0.36KB / 0.00MB
================================
Statistics for sessionStorage
--------------------------------
Total = 0.00KB / 0.00MB
================================



by Marc D Anderson via Marc D Anderson's Blog