Home

Buscar

Thursday, March 29, 2012

Sharepoint :: ListInstance create new Contacts list

<ListInstance
TemplateType="105"
FeautureId="00bfea71-7e6d-4186-9ba8-c0727181919191"
Title="Clientes"
Description="Lista de Clientes"
Url="Lists/Customers"
OnQuickLaunch="TRUE" >
</ListInstance>

Sharepoint :: List Templates



Template Name 


Template Type


Template Type ID

Custom List

GenericList

100

Document Library

DocumentLibrary

101

Survey

Survey

102

Links List

Links

103

Announcements List

Announcements

104

Contacts List

Contacts

105

Calendar

Events

106

Tasks List

Tasks

107

Discussion Lists

DiscussionBoard

108

Picture Library

PictureLibrary

109

Form Library

XMLForm

115

Wiki Page Library

WebPageLibrary

119

Wednesday, March 21, 2012

What Is a Workflow?

SharePoint, a workflow is a series of steps - some automatic, some manual - that must be performed as part of a business process for a document or a list item.

What Does Check-in/Check-out Mean?

Check-in and check-out are common terms in many document management systems, including SharePoint.

Their purpose is to prevent conflicts in an environment where multiple people might want to edit the same piece of content (in SharePoint, list items or files) at the same time. The term check-in describes the process of adding a new or modified item or file to a document library or a list to replace the previous version.

The term check-out describes the process of getting a version of a document or list item in a list or library. By checking out an item or a file, a user can prevent others from editing that content. By checking in the item, the user can allow others to edit the content, without needing to worry about overriding changes that others have made.

What Are Versions?

Document libraries and lists in SharePoint have an option to track versions.

This option stores old versions of files or items each time a change is made. For example, if a user What Does Check-in/Check-out Mean? 27 uploads a document, and then another user edits the document and saves it, SharePoint saves the original document as a version of the file. Later, users can look at the version history of the file and choose to open a specific version or restore it (that is, make that version the current one).

SharePoint supports two types of versioning. In the first type, each change is regarded as a major change, and the version numbers go from 1 (the first time a document was uploaded) to 2 (after the first change) and then 3 and 4 and so on.

In the second type, each change is regarded as a minor change, unless the user specifies that it is a major one. The version numbers go from 0.1 (the first time a document was uploaded) to 0.2 (the first change) and so on, until a user selects the option to perform a major change, and the version number changes to 1.0, and subsequent changes raise it to 1.1, 1.2, and so on.

What Is Managed Metadata?

Available only through Microsoft SharePoint 2010 Server (not SPF), managed metadata is a mechanism that enables administrators to create hierarchical term sets that can then be used in document libraries and lists as columns.

A term set is similar to a list that contains items, except that these items can contain more items under them in a hierarchy. For example, if you have a term set called Products, you could have a term for each product that you have in the organization.

By using managed metadata, you can create the list as a hierarchical list, grouping the products into categories (creating terms for the categories and then terms for the products under them) or into product groups;

What Is Tagging?

Tagging is a social web mechanism available in Microsoft SharePoint 2010 Server (not in SPF) that enables you as the user to tag a document or a list item or a even a page - in the SharePoint site or outside it.

You can tag something to help remember it and find it more easily later on.

One tag that SharePoint comes with is the I Like It tag. This tag enables you to signify that you like a document or a page, and then other people can see that you liked it.

You  can easily find that document or page again by looking at the list of items you’ve tagged as things you like (usually from your personal site).

What Is a Content Type?

Lists and document libraries can store different kinds of content, known as content types. A site manager can create and manage the content types in a site. The content types are then available in that site and in all the
sites under it. The different types of content may have different site columns and/or different settings, such as policies and workflows, associated with them.

Content types can use site columns only for column definitions. This means that to create a content type, you must choose what site columns should be included in that content type.

A simple example of a content type is a list of contacts that stores two types of contacts—an internal contact and an external contact. The Internal Contact content type is used for a contact inside the company—and as such does not need the company property because all internal contacts are from the same company. However, the External Contact content type does require the company property because every contact may be from a different company. Hence, a single list has two different column requirements.

What Is a Site Column?

A site column is a column for a list or a document library that can be used in all document libraries or lists in the site in which it is created, as well as in the subsites for that site.

A site manager can define a specific column of data once and manage it from a central location instead of creating that column many times in many lists and libraries. In addition, content types can only use site columns. (In lists and libraries, on the other hand, columns can be created separately.)

What Are Alerts?

Using alerts is a great way to be notified by e-mail of changes in lists and libraries or even specific documents or list items.

SharePoint has a built-in alert mechanism that enables users to register for different kinds of alerts. Basically, a user selects the piece of content she wants to be alerted on and requests that SharePoint send her an e-mail when that content changes.

What Are Web Parts?

Web parts are the building blocks of pages in SharePoint.

They are components that show data, and they can be placed in certain regions of a page—known as web part
zones. A page can hold many web parts, in different zones or in the same zone. They may be one under another in some zones and side-by-side in other zones.

For example, to show on the home page of a site the contents of a list of links, you can use a web part that displays the content of a list.

What Is a View?

Using views is a useful way for a list manager to create different ways to show the information in a list or library. Different views may show different columns and have different sorting and filtering, grouping, and styles.

In SharePoint, views can be either public or private:
   Public - The list’s or library’s managers create public views, and these views are available to anyone to use.
   Private - Users create private views. Only the user who created a private view can use that view. You may, for example, create a private view and customize it to show the information that you usually need to find the items or files that you usually work with.

There are several types of views in SharePoint. Most of the views that you will see are the standard tabular views that resemble printed worksheets—with column headers and values in rows but no ability to edit the data directly.

What Is a Picture Library?

A picture library is a special type of a document library that is dedicated to images. A picture library is useful for sharing photos with other people.

What Is a Slide Library?

A slide library is a special type of library that has features not available in other types.

This library type is designed to help people in an organization collaborate to create PowerPoint presentations by sharing slides. One user can allow other users to import those slides into their presentations.

What Is an Asset Library?

An asset library is a special instance of a document library that is specially designed to store digital assets such as images, audio files, and videos.

This kind of library can be used as a repository for media files that will be used throughout the SharePoint environment—for example, corporate logos, training videos, and podcasts.

What Is a Form Library?

A form library is much like a document library, but it is supposed to host only Microsoft InfoPath forms. Microsoft InfoPath is electronic form-creation software that integrates with SharePoint. Forms created with InfoPath can be published to SharePoint form libraries, and users can then fill out these forms.

With SharePoint Server, you can load some InfoPath forms without having Microsoft InfoPath installed on your machine.

What Is a Wiki Page Library?

A wiki page library is a special instance of a document library that is designed to store web pages. On those web pages, you can display different types of content—text, images, videos, and web parts.

What Is a Document Library?

A document library a special instance of a list, in which every list item is a file.

Files can be Microsoft Office documents, Adobe Acrobat documents (PDF files), or any other type of file that the system administrator allows.

Most of the attributes of lists exist in document libraries. In fact, lists and documents libraries are similar in many ways. However, each item in a document library is a file. Therefore, when creating a new item in a document library, you need to either upload a file or create one.

What Is an External List?

An external list is unlike other SharePoint lists. Strictly speaking, it is not a SharePoint list at all because it doesn’t store information inside it. An external list is a view on external data—that is, data that is contained not within SharePoint but in external databases and systems.

What Is a List?

A SharePoint list is a container for information, similar to a very simple database or spreadsheet. Using a list is the most common way to manage information in a SharePoint site.

In a list, data is gathered in rows, and each row is known as a list item. A list can have multiple columns—also known as properties, fields, or metadata. So a list item is a row with data in those columns.

What Is a Ribbon?

As part of the Microsoft Office product family, SharePoint 2010 uses a design concept called a ribbon to display different menus and buttons, depending on what you are looking at. It is important to know how to use the ribbon so you can move around in a site and perform actions in it.

What Is a Personal Site?

A personal site is a site that belongs to a specific user and is used to show user information that belongs, personally, to that user. The user can upload documents to a personal document library in the personal site, and only that user will be able to see and manage these documents. The personal site is also a place where users can manage their personal favorite items and comments that they have tagged throughout SharePoint or even outside SharePoint.

The personal site has special pages with information that might be important to track.

A user can track information by using newsfeeds that tell you what your colleagues are up to. In addition, users can run searches and stay up-to-date on those subjects.

What Is a Site?

The structure of SharePoint sites (sometimes referred to as webs) is very different from the structure of typical Internet sites that contain only pages. In SharePoint, a site can house more than just pages. It is a container that holds lists and libraries, and it can have other sites under it.

For example, a corporate portal might have a home site called SharePoint Intranet that contains information that people see when they browse to that site. That portal also might have a subsite called Human Resources that stores forms such as travel requests, expense claims, and other forms. The two sites are linked because the Human Resources site is under the SharePoint Intranet site. The two sites may share some attributes, such
as security (who is allowed to do what in the sites) and navigation (so that visitors to the sites can navigate between the sites), but they have separate contents—for example, different pages, libraries, and lists.

Every SharePoint site is a member of a site collection. As the name implies, a site collection is a collection of sites. Every site collection has a single site as its root site, and other sites can be built under the root site. A site collection has some attributes that are common to all the sites in that collection (for example, some search settings, a Recycle Bin for deleted items).

Difference Between SPF and SharePoint Server

SharePoint Server is an extension of SPF.

SharePoint Server sites have features that are not available in SPF sites, and they enjoy all the features of SPF sites.

SPF sites work well for collaboration sites. Such a site gives groups of people the ability to upload and download documents, use discussion boards, assign tasks, share events, and use workflows. However, SPF does not have enough features to be a good platform for a corporate portal or for a corporate search solution. SharePoint Server offers extra features that upgrade SPF into a platform that can serve a corporation with enterprise searching (searching from one location across all the sites that corporate has
and on documents and external systems that are stored in other locations, not just in SharePoint). It also has features for storing details about people and searching on them, and it enables employees to have their own personal sites where they can store documents (instead of on their machines). SharePoint Server has many more features related to business intelligence and business processes and forms.

Finally, SharePoint Server has a publishing feature that enables site managers to create publishing sites where it is easy to author pages (as opposed to documents) and publish them using workflows. This is very important for large corporations that want to, for example, publish corporate news using an approval workflow or build an Internet site where every page must go through a special approval process.

What Is Microsoft SharePoint 2010?

SharePoint is a Microsoft platform that allows people to build websites. SharePoint 2010 is the fourth version of SharePoint from Microsoft, and it is also known as SharePoint v4 or Microsoft Office SharePoint Server 2010. It is very different from the versions that came before it.

SharePoint allows people to create websites with different content and different purposes. Its many built-in features and components make it a comprehensive solution that can fit many needs.

One common use of SharePoint in organizations is to create sites that are used for team collaboration. These collaborative sites, also known as team sites or group work sites, enable team members to better work with one another. They can use the site to share documents, assign tasks, track team events on a shared web calendar, and much more. This use is known as a team collaboration system. Many companies use SharePoint for their central document storage, replacing network folders. This use is known as an electronic document management system. Another common use is as a corporate portal where the corporate employees can go and download forms, read corporate news, fill in surveys, and search for documents.

This use is known as an electronic content management system or an intranet. Finally, some companies choose the SharePoint platform as the platform for their Internet sites—where visitors from around the world can visit the company’s website and read about the company’s products, register for events, and do whatever it is the site has been configured to allow them to do. This use is known as a web content
management system.

This variety of possible uses of SharePoint indicate the flexibility of the SharePoint platform. It is highly customizable—which means that one SharePoint site may look entirely different from another SharePoint site.

Wednesday, March 14, 2012

SharePoint :: ELEMENTS.XML

<Elements xmlns="http://microsoft.com/schemas/sharepoint/">

  <ListInstance
      FeatureId="9D2800B2-5125-4d73-A7DF-84E94F7AC586"
      TemplateType="105"
      Id="ListaExemplo1"
      Title="Exemplo de Element Manifest"
      Url="ListaExemplo1"
      OnQuickLaunch="TRUE"
      />
</Elements>

Sharepoint :: Feature.XML

<Feauture
  Id="AA661F05-6AE3-4a73-A1BD-13A3BB76F47B"
  Title="Exemplo1"
  Description="Exemplo SharePoint Feauture"
  Version="1.0.0.0"
  Scope="Web"
  Hidden="FALSE"
  ImageUrl="Exemplo1/xpto.gif"
  xmlns="http://schemas.microsoft.com/sharepoint/">

  <ElementManifests>
  <ElementManifest Location="elements.xml"
  </ElementManifests>
</Feauture>

Sunday, March 11, 2012

Sharepoint :: Root Directory

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\

Path Relative to Sharepoint Root Directory Template File Types
/ISAPI Web Services (.svc, .ashx, .asmx)
/Resources Resource Files (.resx)
/TEMPLATE/ADMIN Application pages exclusively used in CA
/TEMPLATE/CONTROLTEMPLATES ASP.NET User Controls (.ascx)
/TEMPLATE/FEAUTURES Feauture Definition (.xml)
/TEMPLATE/IMAGES Images (.gif, .jpg & .png)
/TEMPLATE/LAYOUTS  Application Pages (.aspx)
/TEMPLATE/LAYOUTS/1033/STYLES CSS Files (.css)
/TEMPLATE/LAYOUTS/ClientBin Silverlight Components (.xap)
/TEMPLATE/SiteTemplates Site Definition files (onet.xml)
/TEMPLATE/XML Custom field type definition files (fdltype*.xml)

Thursday, March 8, 2012

Sharepoint :: Enable Developer Dashboard

Console Application

using System;

using Microsoft.SharePoint;
using Microsoft.SharePoint.Administration;

namespace EnableDeveloperDashboard {
   class Program {
      static void Main() {
         SPDeveloperDashboardSettings settings =
SPDeveloperDashboardSettings.ContentService.DeveloperDashboardSettings;

         settings.DisplayLevel = SPDeveloperDashboardLevel.On;
         settings.TraceEnabled = True;
         settings.Update();
         }
      }
}

Sharepoint :: HelloWorld

Console Application
using System;
using Microsoft.SharePoint;


namespace HelloWorldSharePoint {
   class Program {
      static void Main() {
         const string siteUrl = "http://intranet.meusite.com";
         using (SPSite siteCollection = new SPSite(siteUrl)) {
                  SPWeb site = siteCollection.RootWeb;
                  foreach (SPList list in site.Lists) {
                           if (!list.Hidden) {
                                    Console.WriteLine (list.Title); 
                                             }
                                    }         
                           }
                  }         
         }
}