Category Archives: PSUG

Palestinian SharePoint User Group.. am a board member and Proud to be.. all events and related things to it will be here …

Problem: Cant See all Content Type Fields when adding the Content Type to a SharePoint List

 

You might have faced this problem like me

Detailed Problem: When adding a content type to a list or a document library using the browser Interface, User cant see hidden fields neither in forms, views or even the list fields in list settings, and cant add them too, seems like they are added but cant be used in any way.

I honestly don’t know if this is a bug in SharePoint 2010, I searched online to find my same question but with no answer.

I noticed that this is a common problem when you have change fields properties to hidden in the main content type then you add the content type to the list and library.

Then I remembered my previous team leader saying when he told me, “GUI does not always listen to you, Command line is always more reliable”, he was talking about SharePoint PowerShell, but I decided to try it using C# code and it did work out.

So, the solution: in one word is CODING

And here is the Solution in details:

1- Go to your Target library and remove the content type out of it.

1- Navigate to your content type and change all hidden fields to optional, “don’t worry we’ll get them back to hidden later”.

2- Open Visual Studio 2010 and start a new console application (you really don’t need to start a SharePoint Application here!)

we’ll call it (FixHiddenFieldsIssue)

1

3-  First, add Reference to SharePoint dll to your project by Clicking right click on “References” to the right of your screen where you can see it under your project name

2

 

Under “.Net” tab, search for Microsoft.SharePoint and add it.

Note: if you cant find “Microsoft.SharePoint” dll make sure that your Project target framework is .NET framework 3.5 by navigating to your project properties.

5- Then add the Line (using Microsoft.SharePoint;”) before the namespace.

6- Now lets start coding:

static void Main(string[] args)
   {

//Connect to SharePoint Site
       SPSite TargetSite = new SPSite(“
<YOUR SharePoint SITE URL>“);
       SPWeb TargetWeb = TargetSite.OpenWeb();

//Get your List from the Site Lists

       SPList TargetList = TargetWeb.Lists[“<LIST NAME>“];

//If you did not enable it already from the advanced options of the list
       TargetList.ContentTypesEnabled = true;

//Get the Wanted Content type that you want to add to the List

       SPContentType ToAddContentType = TargetWeb.ContentTypes[“<CONTENT TYPE NAME>“];

//Add the Content Type to the List

       TargetList.ContentTypes.Add(ToAddContentType);

       TargetList.Update();
   }

7- Now build your project and run it.

8- after Checking your list on SharePoint and making sure content type is added and fields are shown, hide the fields you want to hide from library or list settings

 

Now you can finish your work without worrying about this problem. Hope that helped Smile.

SharePoint Saturday Palestine, its not about SharePoint anymore

 

2011_SPS_Logo_Palestine (1)

 

My Arabic teacher in school used to say you make everything political, yes we all do, we are Palestinians! Smile I’m ganna do it one more time in this post:

When PSUG organized the first SharePoint Saturday back in September 2010, speakers from the USA came to join, like Paul Swider, Michael Noel, Joel Oleson and Michel Lotter (The Founder of SPS’s around the world). I had the honor of interviewing them all using my small video camera, the thing that interested me the most was the idea they were having about Palestinians which is based on media.

They were mostly shocked about how peaceful people we are, and most importantly how we have high awareness technically and up to every new around the world, so they changed the idea they had about us after knowing the truth.

The Nice thing that they went back to their countries and started to change other people’s Idea about the Palestinians there, I really respect them and appreciate what they did Smile .

So, to Me, SharePoint Saturday Palestine is Not about SharePoint anymore, its about proving that we are worth having such events, regardless of our circumstances and political situation, and we can keep up with all technical matters around the world just as same as other free countries. and the fact that there are some people that actually spent much of their effort, time and even money to make this happen is really proud driving.

That means contributing in such events as organizers, speakers, or even audience is not a matter of individual benefits anymore, it’s a matter of national image, and making the ICT sector a better one.

Tomorrow the great community is holding the forth SharePoint Saturday Palestine, here are the full Information’s of it:

http://www.sharepointsaturday.org/palestine/default.aspx

and the link on Facebook:

https://www.facebook.com/pages/SharePoint-Saturday-Palestine-SPSPal/115104495204814

and here is a small video I made last year about the first SharePoint Saturday Palestine:

So. I would love to thank everybody who helped making this event come true, see you there Smile

PSUG Monthly Session, SharePoint Integration with Oracle

 

IMG_0010

This Month’s Session for Palestinian SharePoint User Group was about SharePoint Integration With Oracle, and how  to use Business Connectivity Services in Order to use SharePoint as an interface for other types of external databases.

IMG_0026

In SharePoint 2007, Business connectivity services was only reading data from Outer Databases such as Oracle and SQL, now in 2010 edition you can add and edit using SharePoint.

IMG_0012

You can use either SharePoint Designer or Visual Studio for Business Connectivity , in VS using a third party named BDC Meta Man. by Connecting to the wanted Database, Configure permissions, tables and records wanted.

IMG_0034

When Connection is done, an external content type is created, and external list will be created then to get data from that content type. then you can use the list as same as any other list in SharePoint (add, edit, delete, etc.) you also can set some rules such as cascading delete cases for example.

IMG_0058

 

the most important limitation about external lists is that you CANNOT create a workflow on those.

IMG_0062

You can also use SharePoint Powerful search engine to search content from external databases, set the rules of it and configure it and, we are done!. I loved the fact that some companies that have many software’s on different platforms  uses SharePoint Search engine because it can be attached to all those software’s databases and get results of all of them together.

 

IMG_0037  IMG_0068

IMG_0070

Come Join us next time Smile

 

PSUG Session, Office 365

IMG_0096

Yesterday, PSUG’s leader: Saed Shela Introduced the Beta Version on “Office 365” to the local community.

IMG_0108

The Session started with What is Office 365, the products included in it for End User, features and added value of it and benefits of Using it for Enterprise companies.

IMG_0102

Then Speaker moved to a live DEMO starting from creating a new account up to setting it for user Desktop and took the attendees in a tour around.

IMG_0103

Finally he talked about the Support, Helpdesk, Privacy and Security of the product, and the plans for pricing and licensing.

IMG_0131

Yes, its pretty cool to use for both Technical and none Technical people Smile

IMG_0138

Some Advantages like Co-Authoring (multiple authors at the same time on the same document), availability on multiple browsers and platforms , Using Lync and SharePoint are some of the features this new product has.

IMG_0154

If you care to know more visit Office 365 Site , you can create your own Beta Account form there.

Or visit Office 365 Facebook Page 

And if you care to attend such session visit our community page on Facebook: PSUG Page

You can also Download the Slides of the Session from HERE

Index for All Baby Steps

Baby Step

Title

Baby Step 1

First Steps to enter the SharePoint World.

Baby Step 2

What the Hell is SharePoint

Baby Step 3

The Wheel

Baby Step 3 (Arabic Version)

حلقة خدمات الشيربوينت

Baby Step 4

SharePoint Technologies Dependencies and Concepts

Baby Step 5

Is it MOSS, WSS, SharePoint Server or Foundation ?!

Baby Step 5 (Arabic Version)

التسمية الصحيحة للشيربوينت

Baby Step 6

SharePoint Installation

Baby Step 7

SharePoint Architecture

SharePoint 2010 For Students–Baby Steps (7)

 

SharePoint Architecture, Lets talk SharePoint Language

This blog’s goal (other than explaining SharePoint Architecture) is to simplify some variables and terms in SharePoint, that would be used in next posts, which means; from now on, we are going to talk SharePoint language;

Note: definition of terms is are not referenced to anybody or any site, they are written in my own words, it is not professional and maybe not same as Microsoft definition but my only goal here is to deliver the idea, if that was done it would be enough for me Smile

From My perspective and to make it seem easier I am going to classify the

hierarchal Levels into two categories, high level one and low level one

The high level one (which can be accessed only by administrator and includes some setting not necessarily SharePoint core ones, such as database, Active Directory, Networks and so on), this category level includes:

Image above explains how are these pieces related to each other to form a full system: 

Farm: You can consider it as a container for all servers you will be using including the network connecting them –how to set Servers in a farm and on what bases  is the Administrator’s job – which is a high level and won’t be explained in this post.

Server: I think I don’t need to explain what a server is, the difference in SharePoint that, the admin will decide which server will have what, as mentioned before, you need x64 hardware, at least Windows Server 2008 R2, you can find all other Prerequisites on Mohamed’s Blog here

Most beginners will deal with a term called “a single server farm” which means that all the system will be installed on one server, meaning if you installed SharePoint on your Laptop, you can call it a single server farm

Content Database: Is the Database keeping all the data of the contents of Site Collections and everything in them – site collection is defined later in the post –

Web Application: Although having a URL, application is a virtual term, which means you cannot see an application once you create it, application takes a port, security type and other parameters will be explained later.

“Once you install SharePoint, two applications will be automatically created, Central administration one (which admins will be able to handle all other applications, services, functionalities and features from) and a regular web application with a site collection to start from”

The other Terms when we go down the chart to smaller definitions will be considered in the low level category, they are:

 Site Collection: You can look at a site collection as a Site, but as a unique root site, that is a containerof other site or sites, so you can use all of site’s functionalities on a site collection

Site: A site is a unit of independent data, users and permissions, different sites can also be different in themes, templates and so on, each site can also be a parent of other site/sites and these sites can hold other sub-sites and so on. they also can contain lists, document libraries and pages, those will be defined next.

Document Library: Can be Considered as a container of documents (word, PowerPoint. Excel. PDF, etc.) But, it does not stop to that limit, you can add special parameters to define each document of those in order to help in classifying them and search for them, those parameters are called (metadata)

An Example of metadata for document would be like (name, author, date of creation, and any other field you would like to add)

List: Container of data that is structured in a customizable way according to need.

Lists are the most important storage units in SharePoint, most of Sites’ data is stored in them, and to be more specific, Document libraries are special type of lists. and because of their importance, we are going to define them in a little bit more detailed way:

Look at a list like a table of columns and rows, columns are called fields, as in excel sheets or any type of database, each field will have a type (text, number, date, etc.)

So when you insert data to those fields you will have records (horizontal rows in table), each record is called an item that have its special parameters.

Each Item has the ability to attach a document to it in an optional way.

So what is the difference between a document library and a list ?

Well, if you are lucky enough to use them you will notice that when adding a new Item to a document library, it is essential to start a new document (or upload one to the system) then you will see a form to add the metadata of that document. in case of adding a new Item to a list, you will add the metadata, and that would be enough, then you have the option to add (attach) a document or not.

So it means that a list can contain only data while a document library has to contain documents.

Other terms you will frequently hear:

View: A way to show data of a list or a library, or we can describe it as a way of reporting for data based on some conditions and filtering criteria, like: which user is viewing data, subject,date etc..

Web Parts: part of the page that provides a specific functionality with user interface and can be customized according to need, people knows them as widgets on famous sites. like a part showing today’s weather, or a part on the side to show your contact list and so on.

Page: page is where you can see It all, views of lists, Web Parts, texts, pictures, lets just describe it as the interface of data for the end user.

all pages of site are stored in a special Document Library called Pages Library, where it has all features of the Document Library Except that instead of Documents you will find site pages

Workflow: a set of actions on an item that can be predefined by creator an
d used to do changes as needed when needed. like action of sending email to admin when a user adds a new Item to list, this will happen each time an item is added and it is predefined by the admin to do so.

So lets put it all together:

a Farm has a set of servers (one or more)

A server that has SharePoint Installed on have one or more Web applications

a Web Application have one or more site collections

a site collection has one or more Sites

a Site has:

  • Sub-Site/Sites
  • Document libraries
  • Lists
  • Pages
  • Views of Lists and Document Libraries

Note: What you can view,create, edit, delete, etc. of those parts depends on your Permissions that were given to you by the administrator.

I know, I listed a lot of new Information at the same time, you will be able to get them in a better way when I start introduce them to you face to face in the next post and the coming posts Smile and surely nothing new can be fully understood without live examples,  so stay tuned.

you can check out all the previous posts for SharePoint Baby Steps here

SharePoint 2010 For Students–Baby Steps (5) Arabic Version

 

التسمية الصحيحة للشيربوينت

SharePoint-WSS-MOSS-logo

 

هناك العديد من الاختصارات التي تظهر أمام القارئ في المراحل الأولى للتعرف على منتج الشيربوينت مثل

MOSS, WSS, SharePoint Server, SharePoint Foundation

أيها هو الصحيح ومتى يتم استعمال كل واحد منها، هذا هو هدف هذه التدوينة

.. لنبدأ

“Microsoft Office SharePoint Server”  MOSS *

وهي نسخة الشيربونت لسنة 2007

“Windows SharePoint Services”WSS *

وهي النسخة المجانية للشيربوينت 2007 (مع العلم أن النسخة المجانية لا تحتوي على جميع الميزات الموجودة في النسخة غير المجانية)

SharePoint Foundation *

النسخة المجانية من الشيربوينت 2010 (والتي لا تحتوي على جميع الميزات في النسخة غير المجانية، تماماً كما هو الحال في نسخة 2007، ومثال على ذلك مواقع النشر)

SharePoint Server *

وهي التسمية الأنسب لنسخة الشيربوينت 2010 الكاملة

اذن وللتلخيص فإن التسميات تختلف فقط في النسخ وسنوات الاصدار

 

على أمل أن تكون هذه التدوينة قد أفادتكم

للانتقال الى جميع التدوينات السابقة في السلسلة الرجاء الضغط هنا

SharePoint 2010 For Students – Baby Steps (5)

 

Is it MOSS, WSS, SharePoint Server or Foundation ?!

SharePoint-WSS-MOSS-logo

Many names come up when reading about SharePoint in general, which makes some confused about the names. this post’s goal is to distinguish the meaning of every one of them and knowing when to use each one:

MOSS: stands for “Microsoft Office SharePoint Server” ; which means SharePoint server 2007

WSS: Windows SharePoint Services; which means the Free – not all features included – Edition of SharePoint 2007

SharePoint Foundation: the free Edition of SharePoint 2010 (not all features included like Publishing sites)

SharePoint Server: is SharePoint Server 2010.

So, SharePoint server is the 2010 edition of MOSS and SharePoint Foundation is the 2010 edition of WSS.

Don’t make a mistake of calling wrong name when you go for a job interview Smile

Hope that helped.

You can check out all Baby Steps Series here.