• Know more about me

Mai Omar Desouki

~ Senior Cloud Solution Architect @ Microsoft

Mai Omar Desouki

Monthly Archives: August 2013

Should I say “Discontinued Feature” in the Developer Dashboard in SP 2013

27 Tuesday Aug 2013

Posted by Mai Omar Desouki in SharePoint 2013

≈ Leave a comment

Tags

Developer Dashboard, SharePoint 2013


I always liked the 3 border colors in the Developer Dashboard in SharePoint 2010 but it doesn’t exists anymore in SharePoint 2013.

I had an article from 2 years talking about the 3 colors [Green, Yellow, Red] Developer Dashboard in SharePoint 2010

Well not that Microsoft removed feature from it but Microsoft added more features to the developer dashboard, I just think those colors were nice to have L

Anyway so what did Microsoft added to the Developer Dashboard in SharePoint 2013?

  1. Dedicated tab to view ULS logs for specific requests,
  2. Opening in a separate window with no risk of affecting rendering of actual page,
  3. Additional information included for request analyzing,
  4. View cumulative requests not only the last request,
  5. Scopes tabs showing you an easy to read progress performance bar,
  6. SPRequests in separate tab to easily diagnose leaked SP Requests.

Copied those features from this Blog, Author: eImagine SharePoint Team

I think the reason they removed the colors, is that it opens in a new window, may be, but even though it can still exists in new window if they want to.

How to enable or disable the Developer Dashboard, nothing new here, it is still the same way:

  1. Either PowerShell,
  2. Command promot,
  3. Programmatically

All 3 different ways are explained here: http://maiomardesouki.com/category/sharepoint-2010/developer-dashboard/

Enjoy SharePointing J

Share this:

  • Facebook
  • LinkedIn
  • Twitter
  • Email
  • Print
  • Reddit

Like this:

Like Loading...

SharePoint 2013 CSOM in managed code – Where is the “Current” in the client context!?

22 Thursday Aug 2013

Posted by Mai Omar Desouki in SharePoint 2013

≈ 2 Comments


This was a question I posted in the SharePoint Community as I was investigating around SP APIs and came to try CSOM, to see what’s there and what not.

Just at the start of utilizing CSOM and as anyone I am trying to call property “Current” for the web application instead of writing the Web Full URL which is a vvvvvv basic thing.

I looked here http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client in this Namespace: Microsoft.SharePoint.Client to find “Current” property, but nothing.

And looked for the namespace Microsoft.SharePoint.Client.Silverlight for Silverlight here http://msdn.microsoft.com/en-us/library/sharepoint/microsoft.sharepoint.client.clientcontext.aspx and it does have the “Current” property.

And view the DLL in Object Browser, there you go;

Does this means only for Silverlight web parts or what exactly?

And in JSOM JavaScript Object model, there is a “Current” function: SP.ClientContext.get_current()

While and of course everyone knows this in the .NET Server API it exists http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spcontext.aspx

Example:

SPList oListCur = SPContext.Current.List;

SPWeb oWeb = SPContext.Current.Web;

SPSite oSite = SPContext.Current.Site;

SPWebApplication oWebApplicationCur = SPContext.Current.Site.WebApplication;

So my question to confirm with anyone was… is “Current” property really doesn’t exists in CSOM in managed code!?

Below was the reply; I am not going to write it but rather took screen shot to read it as is; but I highlighted the important parts where he confirms it doesn’t exists in CSOM, then he explains the reason, deep dive details in the background where everyone needs to understand..


And here is the link to this discussion in SharePoint Community

Share this:

  • Facebook
  • LinkedIn
  • Twitter
  • Email
  • Print
  • Reddit

Like this:

Like Loading...

SharePoint 2013, REST, oDATA, part 1: reading/fetching information (no code)

15 Thursday Aug 2013

Posted by Mai Omar Desouki in SharePoint 2013

≈ Leave a comment


Serge Luca aka "Doctor Flow" (Microsoft Power Platform/Business Applications MVP)

Introduction

In this post I will give you a quick overview of the SharePoint 2013 REST/oData service; I will only use the browser (and Http GET calls) to illustrates several REST statements; in other posts, we will start writing code (.net and javascript)

Step1.The big picture.

In SharePoint 2013, Microsoft has extended the impact of CSOM which is often considered as the reference api instead of the good old server side api. In the past SharePoint developers started their SharePoint training path buy learning the server side api, but today with new the app model, learning the client side apis should be the first priority. CSOM can be used in remote .Net applications, but also in javascript : however the javascript CSOM can only be used within SharePoint pages : keeping the client side code as independent of SharePoint as possible might be very important for some customers and…

View original post 1,286 more words

Share this:

  • Facebook
  • LinkedIn
  • Twitter
  • Email
  • Print
  • Reddit

Like this:

Like Loading...

SharePoint 2013 CSOM – Retrieve only selected properties of a website

12 Monday Aug 2013

Posted by Mai Omar Desouki in SharePoint 2013, Visual Studio 2012

≈ Leave a comment


Sometimes, the client is interested only in a few properties of an object. The SharePoint .NET Framework CSOM does not require you to get all properties from the object on a server—you can use anonymous methods, which can be lambda expressions, to specifically request property names. The client library will query only for those properties on the server, and the server will send only those properties to the client. This technique reduces unnecessary data transfer between the client and the server. It is also useful when the user does not have permission to one or more of the other, unused properties on an object. Note that you will need to add a using statement for System.Linq.

// Starting with ClientContext, the constructor requires a URL to the // server running SharePoint.

ClientContext context = new ClientContext(“http://SiteUrl”);

// The SharePoint web at the URL.

Web web = context.Web;

// We want to retrieve the web’s title and description.

context.Load(web, w => w.Title, w => w.Description);

// Execute the query to server.

context.ExecuteQuery();

// Now, only the web’s title and description are available. If you

// try to print out other properties, the code will throw

// an exception because other properties are not available.

label1.Text = web.Title;

label1.Text = web. Description;

 

Note: If you try to access other properties, the code throws an exception because other properties are not available.

Share this:

  • Facebook
  • LinkedIn
  • Twitter
  • Email
  • Print
  • Reddit

Like this:

Like Loading...

SharePoint Conferences.. Stay tuned

04 Sunday Aug 2013

Posted by Mai Omar Desouki in SharePoint 2013

≈ Leave a comment


The coming SharePoint Conference are quite interesting, in different countries, you don’t want to miss at least 1 or 2 of it.

Date: 18 November 2013 to 22 November 2013

Location: Orlando, FL

Street: 6300 Hollywood way

Website: http://www.splive360.com

Event Type: conference

Organized By: Ani Arth

 

Date: 19 November 2013 to 20 November 2013

Location: Amsterdam Netherlands

Event Type: Conference

 

Date: 3 March 2014 to 6 March 2013

Location: The Venetian, Las Vegas

Website: http://www.sharepointconference.com

Event type: Conference

Organized By: Microsoft

 

Date: 5 May 2013 to 8 May 2013

Location: Palau de Congressos de Catalunya

City: Barcelona

Website: http://www.sharepointeurope.com

Event Type: Conference

Organized By: @EuropeanSP

Share this:

  • Facebook
  • LinkedIn
  • Twitter
  • Email
  • Print
  • Reddit

Like this:

Like Loading...

Blog Visitors

  • 82,365 Visitors

Categories

  • About me (1)
  • Microsoft Teams (3)
    • SharePoint Online (1)
  • Microsoft Viva (1)
  • Migration (2)
  • OneDrive for Business (1)
  • Parents (1)
  • Power Platform (1)
  • SharePoint 15 (5)
  • SharePoint 2010 (56)
    • Content Types (1)
    • Developer Dashboard (1)
    • Document Set (1)
    • Events I am Speaking In (2)
    • External Lists (1)
    • FAQ (2)
    • FBA (1)
    • Form Based Authentication (1)
    • Integration of CRM 2011 with SharePoint 2010 (1)
    • JQuery (1)
    • Master Page (1)
    • My Site (1)
    • PowerShell (3)
    • SharePoint Administration (5)
    • SharePoint Branding (1)
    • SharePoint Customization (5)
    • SharePoint Designer (4)
    • SharePoint Designer Workflow (1)
    • SharePoint Events (2)
    • SharePoint Online (1)
    • SharePoint Permissions (1)
    • SharePoint Workflow (1)
    • User Profile (2)
    • User Profile Sync (1)
    • Videos (1)
    • WebParts (1)
    • Workflow (1)
  • SharePoint 2013 (91)
    • Cloud App (1)
    • Event Handler (1)
    • iPad (1)
    • IPhone (1)
    • Napa (1)
  • SharePoint Updates (1)
  • Visual Studio 2012 (3)
  • Viva Engage (1)
  • Yammer (1)

Tag Cloud

About me Document Set Events I am Speaking In FAQ FBA Form Based Authentication JQuery Master Page Microsoft Teams Migration My Site PowerShell SharePoint 15 SharePoint 2010 SharePoint 2013 SharePoint Administration SharePoint Branding SharePoint Customization SharePoint Designer SharePoint Designer Workflow SharePoint Events SharePoint Online SharePoint Permissions SharePoint Workflow User Profile User Profile Sync Videos Visual Studio 2012 WebParts Workflow

Calendar

August 2013
M T W T F S S
 1234
567891011
12131415161718
19202122232425
262728293031  
« Jul   Sep »

Archive

  • September 2022 (2)
  • August 2022 (2)
  • July 2022 (2)
  • March 2022 (1)
  • August 2021 (2)
  • September 2020 (2)
  • May 2020 (2)
  • April 2020 (6)
  • March 2020 (1)
  • September 2019 (2)
  • July 2015 (1)
  • May 2015 (3)
  • April 2015 (1)
  • March 2015 (1)
  • February 2015 (2)
  • January 2015 (1)
  • October 2014 (1)
  • September 2014 (3)
  • June 2014 (7)
  • May 2014 (5)
  • April 2014 (4)
  • March 2014 (3)
  • February 2014 (1)
  • January 2014 (2)
  • December 2013 (6)
  • November 2013 (5)
  • October 2013 (6)
  • September 2013 (5)
  • August 2013 (5)
  • July 2013 (5)
  • June 2013 (2)
  • May 2013 (2)
  • February 2013 (2)
  • January 2013 (1)
  • October 2012 (2)
  • September 2012 (7)
  • August 2012 (15)
  • July 2012 (5)
  • June 2012 (2)
  • May 2012 (4)
  • April 2012 (2)
  • March 2012 (1)
  • August 2011 (3)
  • July 2011 (15)

Blog at WordPress.com.

  • Follow Following
    • Mai Omar Desouki
    • Join 63 other followers
    • Already have a WordPress.com account? Log in now.
    • Mai Omar Desouki
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
%d bloggers like this: