Riyadh SharePoint User Group Monthly Meeting

I am little bit back to blogging 🙂


For Registeration : http://rsugjuly11.eventbrite.com/


Hi Everyone,

First of we would like to thank you all who came to our monthly meeting for June 2011.  Special thanks to those who registered but did’nt showed up 🙂

The Riyadh SharePoint User Group Leads are pleased to announce our User Group meetings to be held on July 28, 2011 at the Prince Sultan University, Riyadh.

We will be covering more development topics on SharePoint 2010 and Windows Phone 7 Development.  There will be 3 sessions of 1 hour each. 

You will also have chance to win some cool prizes T-Shirts, Books and USBs

Please note that the Registration is must.  It will help you to keep updated about event details. 


Ahmed Abuabdou
Lead Solutions Developer Al-ELM
Ahmed enjoys exploring new operating systems, platforms, technologies and programming languages, and considers programming as a hobby. He has been involved with big e-learning SharePoint portals in Saudi-Arabia and is an active member in RSUG.
Ismail Enjreny
Development Manager, SURE
Has more than 5 years experience within portal and SharePoint, now I am the development manager of SURE company in Riyadh – KSA also I am MCITP certified as SharePoint 2010 administrator. also I am proud to announce that my book “Learn SharePoint 2010” is published now in Arabic Language.  My blog is: http://SharePoint4Arab.blogspot.com

Jerry Yasir – SharePoint MVP
Founder and President RSUG, SharePoint Consultant at EJADA
Jerry is SharePoint Server MVP, Trainer, Founder of Riyadh SharePoint User Group (RSUG.NET), Co-Owner of SharePoint Pakistan User Group and Sr. SharePoint Consultant at EJADA, Saudi Arabia. RSUG is one of the biggest SharePoint community in Saudi Arabia with over 1500 members. He holds a Master degree in Computer Sciences and has over 8 years of experience working in Microsoft Technologies including SharePoint, Microsoft .NET and Project Server. He is a regular speaker at Microsoft events and community related events around the world. He is currently responsible of developing and managing many large scale SharePoint implementations in Saudi Arabia.
He is Microsoft Certified Trainer (MCT) and also holds MCPD, MCTIP and MCTS for SharePoint 2010 Admin and Development, and MCTS WSS 3.0 & SharePoint Server 2007, MCPD, MCITP (EPM 2007) and MCSD.NET
He can be found at @
Mostafa Absy
Sr. SharePoint Developer – Bank Al Bilad
Mostafa has over 4 years of Experience working on Microsoft Technologies Specially SharePoint and .NET.  He specilizes in developing complex solutions using XSLT, JQuery and Content Query Web Part.


Event Agenda

Understanding the SP2010 Managed Client Object Model – Jerry 50 Minutes
This session we will take a look at the SharePoint2010 Managed Client Object Model. We will present an overview of what the Client Side Object Model is, why it was introduced, what are the best practices for using it for developing client applications for SharePoint 2010. 11-10 AM to 12:00 PM

Prayer Break (12:00 PM to 12:30 PM)

SharePoint 2010 JQuery, XSLT and Content Query Web Part – Mostafa 50 Minutes
Mostafa will show how we can use JQuery in SharePoint 2010 and Customize Content Query Web Part. 12:20 – 1:00PM 
OData in SharePoint 2010 – Ahmed 50 Minute
This sessions will learns you how to use OData with SharePoint 2010 Applications 1:00-1:50 PM
How to use “Visual Web Part” using Visual Studio 2010 – Ismail 50 Minutes
This sessions will learns you how to start working effectively with Visual Web Part + Visual Studio 2010, Best Practices and Most scenario you will need SharePoint 2010 project development cycle, Public properties, User Controls and others. 1:50-2:40 PM

For Registeration : http://rsugjuly11.eventbrite.com/

Starting Silverlight Development with Samples

I was never a Silverlight Developer but after spending some time on SharePoint 2010 and watching the SL Dialogs all way around I decided to play with it for a moment. I never knew how SL Works. Just saw couple of vidoes and some SharePoint Sessions talks on Silverlight and SharePoint Integration that also shows SharePoint Client OM. So After spending some time on Hello Worlds I search on SL Toolkit and I am so happy that I found this link. When you see a running examples of the controls it is so easy to start development. The Link to the sample is given below. some of you are already experts so dont feel tough on me. I am just a begginer.


but I have completed web part that displays pending tasks to users which prooved quite handy in my situation as I was able to develop it in just 2 days. I will try to post the code soon.

I must say that Silverlight is simply “AWSOME”.

Client Object Model Basic Example – CAMLQuery

I was able to make a nice CAML Query Work in my Silverlight application so though it might be worth posting it over here as it might help some one. It is a query to read all items assigned to me or the group I am part of and the status is not completed. Now you can go ahead by your self and play with Query as you wish and make it to complex. But it is a working example.

void DoIt()
using (ClientContext ctx = ClientContext.Current)

string OrderBy = <OrderBy><FieldRef Name=’Created’ Ascending=’FALSE’/></OrderBy>;
                string Where = <View><Query><Where><And> +
                        <Or> +
                            <Membership Type=’CurrentUserGroups’> +
                                <FieldRef Name=’AssignedTo’/> +
                            </Membership> +
                            <Eq> +
                                <FieldRef Name=’AssignedTo’/> +
                                <Value Type=’Integer’> +
                                    <UserID/> +
                                </Value> +
                            </Eq> +
                        </Or> +
                        <Neq> +
                            <FieldRef Name=’Status’/> +
                            <Value Type=’Text’>Completed</Value> +
                        </Neq> +
                    </And></Where></Query> + OrderBy + </View>;

CamlQuery Query = new CamlQuery();
Query.ViewXml = Where;

TasksListItemCollection = ctx.Web.Lists.GetByTitle(“Tasks”).GetItems(Query);

ctx.ExecuteQueryAsync(Success, Fail);


void Success(object sender, ClientRequestSucceededEventArgs e)
this.Dispatcher.BeginInvoke(() =>
txtTaskCount.Text = TasksListItemCollection.Count.ToString();
catch (Exception ex)
MessageBox.Show(ex.ToString() + ex.StackTrace);


void Fail(object sender, ClientRequestFailedEventArgs e)
this.Dispatcher.BeginInvoke(() =>
MessageBox.Show(“Failed to Load Items ” + e.Exception.ToString());

Thanks to Thousands of Blogers who blogged about Silverlight and SharePoint Client Object Model.

Get All Tasks Assigned to ME or Group I am part Off

Below is the CAML Query to get All the task assigned to me or the group I am part of.  And only tasks which are not complete.

     <GroupBy Collapse=”TRUE” GroupLimit=”50″>
      <FieldRef Name=”AssignedTo”/>
      <FieldRef Name=”Created” Ascending=”FALSE”/>
        <Membership Type=”CurrentUserGroups”>
         <FieldRef Name=”AssignedTo”/>
         <FieldRef Name=”AssignedTo”/>
         <Value Type=”Integer”>
        <FieldRef Name=”Status”/>
        <Value Type=”Text”>Completed</Value>
     <FieldRef Name=”Created”/>
     <FieldRef Name=”LinkTitleNoMenu”/>
     <FieldRef Name=”Status”/>

     <FieldRef Name=”Title”/>

     <FieldRef Name=”ID”/>
     <FieldRef Name=”WorkflowLink”/>

Some cool SPQuery Links



How to Set Null Values to Query


Working with Large Lists in SharePoint 2010 – List Throttling

1st Riyadh Online Community Summit

For more information visit http://rocs1.eventbrite.com/

Welcome to First Riyadh Online Community Summit. Riyadh SharePoint User Group, DevLifeStyle, Windows Phone Middle East, SQLPath, Community Leads from Riyadh and MVPs from all around the world are pleased to announce the the first Riyadh Online Community Summit being held on October 21-22, 2010. The event will cover a wide array of topics ranging from Client to Mobile Programming, Database Development and Administration, all the way to SharePoint Collaboration and Systems Integration. Please note that this is an ONLINE TWO Day Event.

Webinar Registeration Link:


The timings below are KSA Time (GMT +3) We will be giving away 1 MSDN Subscriptions with Visual Studio 2010 at the end of everyday (Worth 12K USD).

For more information visit http://rocs1.eventbrite.com/