Skip to main content

Posts

Bug: Some Validation formulae does not allow Folder creation

This is a strange issue observed recently. For some of the validation formulae, folder creation does not work. Let me give some examples to reproduce this problem. If a validation settings is defined for a Library and it uses conditional formula such as IF/AND/OR, it will not allow folder creation! I have two columns: Date1 and Date2. I want to compare that Date2 should be greater than Date1 and Date2 should be greater than Today's date. The formula looks like this: =AND([Date2]>[Date1],[Date2] When I update metadata, the above formula is applied and everything works as expected. Now the tricky part. Try creating a folder. It shows the validation message set for the above formula! And it will not allow folder creation ! Also folder copy via Explorer view is not possible. A message box pops up as " Can't read from the source file or disk ". Similar observation was made with Column level validation . However, in this case folder creation was allowed fr...

Yammer Share Button and Bookmarklet

The requirement was to add Yammer Share button on a web page and allow users to share on Yammer. When I searched for Yammer Share, I found this blog which basically explains about newly introduced Yammer Share button. The code is also shared in this link , which is pretty much simple and easy to implement. However, in this approach the URL gets set to textbox by default. I was trying to find a way to pass custom message instead of the URL. This behavior is due to the code in platform_social_buttons.min.js file. I got another option at David Peterson blog . He uses Bookmarklet to share the message. Basically you have to form the URL something like this: https://www.yammer.com/[Network]/messages/new?status=Custom%20Message#/Messages/bookmarklet?type=following Here, replace [Network] with your network name and status parameter can have any custom message. This URL will take All Companies group (because of "type=following" parameter). What I additionally tried: 1. I...

How to disable Web App feature for a List attachment?

We know that we can make the documents stored in document library open in Office Client by setting the property under Advanced Settings. Similar setting is not available for List. That means, List attachments will always open in browser if that is the default behavior set. One workaround is, we can disable this behavior at site collection level. You need to be a site collection administrator. Navigate to site collection features and look for "Open Documents in Client Applications by Default". Activate this feature. Site Collection Feature Now all the documents in List or Document Library will open in Office Client. However, you can still change the behavior for document libraries by navigating to Library Settings -> Advanced Settings and set the value of "Opening Documents in the Browser" to "Open in the browser" as shown below.

Yammer Review from End User perspective

I've been using Yammer since more than 6 months. I thought this is the time I share my experience about Yammer. This review is from end user perspective. That means, I do not cover Yammer Network Administration related activities. Yammer is a social networking portal for Enterprise. Loosely, it is like facebook for the companies. Ever since Microsoft bought Yammer, the buzz is that Microsoft would invest more on Yammer than SharePoint when it comes to discussion related features. Yammer being a cloud offering, the companies need not worry about upgrades as well as capacity planning. MS will take care of them. Basically using Yammer, users can collaborate seamlessly in the form of discussions. People can create public and private groups to target discussions on specific topics. Just like Twitter or Facebook, people can follow fellow people, Files and Discussions. I'll get into the features of Yammer with what works and/or its limitations. Towards the end of this post, I...

Changing the position of Search Results Count

At last I got time to play with Display Template. Though this is a simple implementation, this work provided better understanding of customizing the Display template for SharePoint Search results. The requirement is simple. By default, when you do search, it displays Results Count at the bottom of the page as shown below. Results Count in OOB Search Page The requirement is to shown the Results Count at the top just above search results as shown below: Results Count at top Let us see how do we achieve this. Let us first understand how default display template is related. Navigate to Results.aspx, edit page, and edit Search Results web part. You will see something like below. Search Results Web Part Properties If you closely look at the "Display Templates" section, there is something called "Results Control Display Template" and it is by default set to "Default Result". Now, we need to locate the file and modify it to our needs. For ...

Office App Model Samples

Office App Model Samples (AMS) is a community driven project. This provides sample and patterns for SharePoint and Office App model development. The highlights of this project are: Provides ready to use code for common scenarios Code includes for Office365 and on-premise Provides Examples, Guidelines, and Reference Codes July 2014 release has Components, Samples, Scenarios, and Solutions Bundle of code can also be used for knowledge gain Another important note here is, we can also provide feedback to the team on scenarios which are not covered in the release. This project really speed up the learning curve and also saves lots of time in development. I've already downloaded the package and excited to go through these samples. Further reading: Office AMS codeplex project:  http://officeams.codeplex.com/ MSDN Blog:  http://blogs.msdn.com/b/vesku/archive/2014/07/01/office-ams-july-2014-release.aspx Happy Learning!