[null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, {"document_url": "https://sharepointweblog.blogspot.com/2013/", "unformatted_src": "//2.bp.blogspot.com/-BQi4RtJKnwA/VV7-x7SS9JI/AAAAAAAAAgI/M1ysGUCZ2oQ/s1600/Profilimages-BS2.jpg", "src": "http://2.bp.blogspot.com/-BQi4RtJKnwA/VV7-x7SS9JI/AAAAAAAAAgI/M1ysGUCZ2oQ/s1600/Profilimages-BS2.jpg", "formatted_filename": "Profilimages BS", "alt_text": "Bharat Sukhwal", "rendered_width": 170, "rendered_height": 170}, null, {"document_url": "https://sharepointweblog.blogspot.com/2013/", "unformatted_src": "//2.bp.blogspot.com/-trkZidTm8Oo/Uom-2lRwUVI/AAAAAAAAAYg/cumfrC35rXc/s1600/MCTS_2013%2528rgb%2529_525_1347.png", "src": "http://2.bp.blogspot.com/-trkZidTm8Oo/Uom-2lRwUVI/AAAAAAAAAYg/cumfrC35rXc/s1600/MCTS_2013%2528rgb%2529_525_1347.png", "formatted_filename": "MCTS rgb", "alt_text": "MCTS", "rendered_width": 160, "rendered_height": 224}, null, {"document_url": "https://sharepointweblog.blogspot.com/2013/", "unformatted_src": "//4.bp.blogspot.com/-PiPi2gb02m0/Uom_T-UV7hI/AAAAAAAAAYs/IlJAhSU7Jc0/s1600/MCP_2013%2528rgb%2529_1519.png", "src": "http://4.bp.blogspot.com/-PiPi2gb02m0/Uom_T-UV7hI/AAAAAAAAAYs/IlJAhSU7Jc0/s1600/MCP_2013%2528rgb%2529_1519.png", "formatted_filename": "MCP rgb", "alt_text": "MCP", "rendered_width": 160, "rendered_height": 135}, null, null, null, null]

Create SharePoint(2013) Publishing pages using ECMASCRIPT

Well, to create paged from page layouts in the Publishing site in SP2013, I have tried the below code

First get the context for web,

context = new SP.ClientContext(webUrl);  web = context .get_web();

Then get the publishing web for the site

pubweb = SP.Publishing.PublishingWeb.getPublishingWeb(context1, web );

context .load(web );

context .load(pubweb);

context .executeQueryAsync(onquerysucced,onqueryfailed);

In onquerysucced get all the pages in the master page library

var pageLibrary = web.get_lists().getByTitle("Master Page Gallery");

var camlQuery = new SP.CamlQuery;

items = pageLibrary.getItems('');

context .load(items,'Include(Id,Title,File)');

context .executeQueryAsync(onPagelayoutsuccess,onqueryfailed);

In onPagelayoutsuccess method

var listItemEnumerator = items.getEnumerator();

var listItemInfo = '';

while (listItemEnumerator .moveNext()) {

var oListItem = listItemEnumerator.get_current();




"obj" :oListItem //Add Object in the list




//knockout js work for finding the required page layout item from the list

var newPage = ko.utils.arrayFirst(pageItems(), function(item) {

return item.Title == "CT_PageLayout.aspx";


pageInfo = new SP.Publishing.PublishingPageInformation();



newPage = pubweb.addPublishingPage(pageInfo);




LiveJournal Tags: SharePoint 2013,SharePoint,Publsihing,ECMA

function onPageCreationSuccess(){

listItem = newPage.get_listItem();




Posted by SharePoint Web Log at 11:15 PM No comments: Labels: Knockout Js, SharePoint 2013, SharePoint Designer


SharePoint 2013 : Get SharePoint items in Knockout js observableArray

To get the list tem in the observableArray, just declare a array in the js and get as below code

list = ko.observableArray(),

Posted by SharePoint Web Log at 3:15 AM No comments: Labels: Knockout Js, SharePoint 2013

SharePoint : Open the list item directly to edit mode. And see the properties which are associated, 


Posted by SharePoint Web Log at 2:58 AM No comments: Labels: SharePoint, SharePoint 2010, SharePoint 2013, SharePoint Designer

SharePoint 2013 : Add lookup column from in a list from VS2012

To add the lookup column in the SharePoint list in visual studio 2012 wizard we have to create first list from we have to add lookup column in anther list. Then add anther list, like below in this list Course is lookup column Just edit the properties other lookup column ‘Course’, and add the List to =Lists/Courses and  ShowField to Title Labels: SharePoint 2013, Visual Studio 2012

SharePoint 2013 : Add date and time field on your custom page The code block will look like as follows : Posted by SharePoint Web Log at 2:37 AM 4 comments: 

SharePoint 2013 : Create a declarative workflow in O365 SharePoint Hosted App


Well, recently I encountered 

Link for “Sign in as Different User” in SharePoint 2013 Enjoy SP 2013 
Bharat Sukhwal