Thursday, February 5, 2015

SharePoint 2016 Development Predictions

Its few months before Microsoft officially make announcements on the SharePoint 2016 version which we can assume will happen at Ignite event to be held in Chicago. After going through several articles including the one at office blog, I thought of making some predictions on 2016 capabilities that will matter of the developers and designers. 

Saturday, December 6, 2014

Working with Device Sensors, GPS and Maps

I was given an opportunity to speak on "Working with Device Sensors, GPS and Maps" in an event held at Microsoft Sri Lanka. This was for a team of Universal Apps fans from their customer network.

Thursday, November 27, 2014

Speaking at the Share-The-Point Southeast Asia 2014

The great Share-The-Point Southeast Asia Conference for year 2014 just concluded yesterday. It had a good line up of sessions that worth for Developers, Business people as well as any other type of SharePoint enthusiasts. 

Me being a speaker

I got a great opportunity to interact with the other speakers who has many experiences and knowledge to share. My topic was "Using Lync for Cost Effective and Efficient Communications". It was really good preparation experience as it is one of the rare moments I shared the business aspect of a technology like this. 

The demonstration included some key features provided by Lync for supporting the meetings. It is really nice the way how Lync supports meetings as it provides multiple sharing options for,

  • Desktop sharing
  • Sharing a single program
  • PowerPoint presentation sharing
  • Whiteboard and
  • Polls

Wednesday, September 24, 2014

Few key things to know about SharePoint Apps

Apps has been the keyword when you speak about SharePoint 2013 development. It brings many 
advantages with its characteristics. The concept of SharePoint apps bring many advantages. In this 
article I am going to explain some of them which attracted me most. 

1. Executes outside SharePoint
A farm solution could possibly break the whole SharePoint farm. But given the apps do work mostly 
out of the SharePoint it minimize the risk of affecting the SharePoint environment. Also this puts relatively less load on the server as well as it can be configured by the administrators.

Thursday, August 21, 2014

Using SPWeb.EnsureUser in SharePoint

I faced this scenario many times and when I Googled, there are many who have faced the same. I had added an Active Directory group to the site members group. Then I asked them to log in and make requests for a particular business scenario that triggered workflows. I had a scenario that another user could make a request on behalf of another. Simply someone is asking to reset an AD account of a person who lost his password. Given that there is a need to add a new list column called 'On Behalf Of' which is a person or group column, I simply used code to create an SPUser object through C# code using the people picker value where people picker was available in the request form to select the on behalf of user. 

I got the username from the people picker comma separated values and used the following code to get the user.

SPUser onBehalfOfUser = web.AllUsers[onBehalfOfuserLoginName];

Wednesday, August 13, 2014

Creating a SharePoint list and Adding List Items in SharePoint Apps

In my previous article I explained how to read from a SharePoint list available inside a SharePoint App site. In this article my focus would be on how to create a list inside the app and how to add list items to it. The same app I used in the previous example will be used here. Here is the code available in my Default.aspx file. It is simple just a textbox and a lable inside a HTM table and a div which includes an unordered list.

I will start having the same set of definitions in the top.

var context = SP.ClientContext.get_current();
var web = context.get_web();
var user = context.get_web().get_currentUser();
var lists = web.get_lists();

Thursday, August 7, 2014

Reading a SharePoint List using JavaScript Object Model

Using JavaScript is the buzz since the introduction of the SharePoint apps. The JavaScript client side API has improved quite a lot in SharePoint 2013 and this is the only option if you are developing a SharePoint hosted app. When comparing with the server-side object model, I did not found many conceptual differences in the API. If we are to access a list, what we need to do is refer the current site through the current context and then refer the list available in the current site. 

Here is the div tag available in my Default.aspx file which contains an unordered list inside. Forget about the other items later. Will discuss about it in next post.

<ul id="ToDoItems"></ul>

Here are some important objects created in the JavaScript API and look how similar they are with the Server-side object model.