Skip to main content

Posts

SharePoint 2013 online Parent/Child relationship - A step by step demo

SharePoint uses lookup fields to represent the Parent-Child relationship. For child list items it is OK as you can trace back to its parent from the lookup field. For parent the OOB forms are not good enough as they are not displaying the children belong to it. In real world it is often required that when view the parent list item it also displays its children, further more it is great if user can add child list items directly from the parent. In SharePoint on-premise we can use visual web parts and code the parent/child logic and use web part pages to replace the parent item forms. In SharePoint online we can't do server model code and visual web parts, so the solution is almost NO CODE and just a little bit client side scripts, and they work beautifully! Here I will do a step by step demonstration to explain the ideas:   Step 1: Create a parent list called "Category" and a child list called "Product", in Product list add a lookup field to reference Cat...
Recent posts

SharePoint online or On Premises?

You will find quite a few articles talking and comparing SharePoint online and on premise. I found an interesting post and just copy and paste below: In April 2011, Microsoft launched Office 365 – a comprehensive set of Software as a Service (SaaS) solutions that allow any organization to obtain hosted, cloud-based access to Exchange, Lync, Office Web Applications – and SharePoint Online . All offer guaranteed uptime, fault tolerance, contractual service levels, and clear, predictable pricing. How Do You Choose Between Cloud and On-Premises? Many organizations start by moving email to the cloud. Few organizations have highly customized Exchange email environments. For many, it’s a no-brainer to migrate existing mailboxes to a hosted version of Exchange, because it simplifies the level of infrastructure support for fault tolerance, recovery, web access, border security, and archiving. And, the services and configuration used for Exchange service on premises are usually the ...

Add Custom Buttons to Edit or Save & Close a SharePoint Page

We all know that in a SharePoint page users can edit it by clicking "Site Actions->Edit Page". Currently the client I am working with wants to display a custom "Edit" button directly on the article page if the user has 'contributor' permission, when editing the page the button should show and do "Save & Close". For this specific requirement I did custom buttons in the page layout and made it work. Please see the code snippet below: Enjoy:-)

Grab Web Essentials for VS

Web Essentials extension for visual studio is a great product for web developers/style developers using visual studio, the 2012 version even support TypeScript! Download them for Free! Web Essentials 2012 Web Essentials I bet you will love them:-)

Some good SharePoint blogs to follow

I have to admit that this post is a refinement from 25+ SharePoint Bloggers to Follow. The reason I did this is I want to provide a little bit more information about the blogs which I found are great from a developer/architect's perspective. Path to SharePoint   Have to say the layout of this blog is a bit old-dated, with categories but no tags, makes it a bit hard to target the specific content you're interested.   Content is mixed with overviews of some solutions plus a few post taking about the "Easy Tabs" (guess it is their product). No code snippet and details.   Richard Harbridge: Insights This blog provides some general overviews/comparisons for SharePoint, could be a good resource for entry level devs or business users.   SharePoint Javascript As the name indicates, this blog contains a lot of posts talking about implementing Javascript with SharePoint to achieve some nice customization.   SharePoint Rescue Rat...

Map SharePoint with local file drive - A complete guide

If you google around you can find quite a few posts talking about this 'simple' solution, but I find none of them gets into deepth, especially on prerequisites. So I write this post and hope it can provide meaningful information for users who need map SharePoint with local file drives. And I will give a short overview and the advantages and comments about this implementation.   Prerequisites You need to make sure the the "WebClient" service is up and runing on your server. If this service is disabled or missing on your server, you will have an error saying "The folder you entered does not appear to be valie. Please choose another"   To check if "WebClient" service is in your services list, just open services and see. If it is missing, please follow the steps to make it available:   Start the Windows Server Manager . In the tree view, highlight the Features node. In the details pane, click Add Features . In the Add Features Wizard ,...

A Step-by-Step guide to use HttpModule in SharePoint with SPContext

I guess you must be familiar with what is HttpModule and how can we leverage it for our web applications. But if not, better have a good read of this article . SharePoint is built on top of .NET, so it has all the rights to use the beauties of .NET. Here I want to demo a simple case of httpmodule on SharePoint. Say if in a company it has lots of site collections and user 'Picky Docky' has access for all of them, for a reason farm administrator want to block him for one of the specific site without change his SharePoint permissions. Here are the steps to do it:-)   Create a empty SharePoint solution add a class file to it named  CustomSecurityModule.cs , code as below Create a feature and scope to "WebApplication" Create a feature receiver. Code as below When activate the feature it will create a modle in the web.config file for the SharePoint web applicaiton you deployed to as below: Enjoy!