Blog about everything Microsoft Related specially .NET Technologies and Sharepoint related.
Thursday, July 22, 2010
Free SharePoint Developer Training
SharePoint 2010 Product Documentation
- SharePoint Server 2010 Tech Center is a gateway into the IT Pro documentation for SharePoint Server 2010 and a location for RSS feeds of new content.
- Resource Centers provide information across the product lifecycle for activities and solutions.
- TechNet articles are organized by the product lifecycle – evaluate, plan, deploy, operate, etc. Content includes a newly published page with an RSS feed, so you can keep up with what we’ve published, and a roadmap to the content.
- Worksheets are Microsoft Excel files that you can use to record information that you gather and decisions that you make as you plan your deployment of Microsoft SharePoint Server 2010.
- Models are poster-sized illustrations of Microsoft SharePoint Server 2010 architecture and concepts.
- SharePoint Foundation 2010 Tech Center is a gateway into the IT Pro documentation for SharePoint Foundation 2010 and a location for RSS feeds of new content.
- Resource Centers provide information across the product lifecycle for activities and solutions.
- TechNet articles are organized by the product lifecycle – evaluate, plan, deploy, operate, etc. Content includes a newly published page with an RSS feed, so you can keep up with what we’ve published, and a roadmap to the content.
- Worksheets are Microsoft Excel files that you can use to record information that you gather and decisions that you make as you plan your deployment of Microsoft SharePoint Foundation 2010.
- Models are poster-sized illustrations of Microsoft SharePoint Foundation 2010 architecture and concepts.
Free SharePoint videos from TechED 2009
- SharePoint Admins, the Reluctant DBAs. Todd Klindt of Solanite Consulting and Shane Young of SharePoint 911 discuss SQL Server for SharePoint admins.
- Following Best Practices and Avoiding Common Errors with Microsoft Office SharePoint Server 2007 Development. Eric Shupps, president of BinaryWave, presents proven methodologies and common API mistakes in SharePoint Server 2007 projects.
- Building High Performance Features and Solutions on Microsoft Office SharePoint Server 2007. Andrew Connell of Critical Path Training demonstrates proven publishing strategies for SharePoint developers.
- Top Five Ways to Make Your End Users Heroes with Microsoft Office SharePoint Designer 2007.
Asif Rehmani of SharePoint-eLearning.com shows how to instill best
practices for your company and users with SharePoint Designer 2007.
- Go Beyond with the Business Data Catalog.
Todd Baginski, enterprise solution strategist at Advaiya Inc., provides
a series of demos using BDC runtime APIs and custom Windows
Communication Foundation (WCF) services in Silverlight applications.
- Social Networking and User Profiles for Business. Matthew McDermott, MVP with Catapult Systems Inc., explains social networking profile integration in SharePoint.
- Saving the World, One Microsoft Office SharePoint Server 2007 Deployment at a Time: Backup and Disaster Recovery.
Todd Klindt of Solanite Consulting, and Shane Young of SharePoint 911
discuss data protection and recoverability in SharePoint Server 2007.
- Automate Business Processes Using InfoPath Forms with Integrated SharePoint Designer Workflows... All without Coding!
Asif Rehmani, of SharePoint-eLearning.com, provides a deep dive into
Office SharePoint Designer workflows, which let ordinary business users
build and validate complex data-driven forms in InfoPath.
SharePoint Server 2010 Advanced IT Professional & Developer Trainings
More information at http://technet.microsoft.com/hi-in/sharepoint/ff420396(en-us).aspx
Each module also has downloadable options:
1) Core Architecture of SharePoint 2010
2) Security in SharePoint 2010
3) IT Pro Management in SharePoint 2010
4) Upgrading to SharePoint 2010
5) Enterprise Search in SharePoint 2010
6) Content Management in SharePoint 2010
7) Composite Solutions in SharePoint 2010
8) Communities in SharePoint 2010
9) Business Intelligence in SharePoint 2010
For developers, SharePoint 2010 provides a business collaboration platform to rapidly build solutions and respond to business needs. SharePoint 2010 Advanced Developer Training offers technical training as self-paced modules and hosted labs for SharePoint 2007 professionals who want to upgrade their skills to SharePoint 2010.
More Information at http://msdn.microsoft.com/en-us/sharepoint/ff420377.aspx
Each module also has downloadable options:
1) Developer Roadmap and Tools
2) Core Development
3) User Interfaces and Lists
4) Data Access in Technologies
5) Composite Solutions
6) Enterprise Content Management
7) Enterprise Search
8) Business Intelligence
9) Communities
10) Development Life Cycle
Top 10 Resources to get you started on SharePoint 2010
1. Check out the Office 2010 & SharePoint 2010 Launch Keynote and on-demand sessions, and the SharePoint 2010 Product Site on Microsoft.com
2. Download the SharePoint 2010 Overview Evaluation Guide, the SharePoint 2010 Professional Developer Evaluation Guide and the SharePoint 2010 IT Professionals Evaluation Guide to quickly ramp up on platform updates and additions.
3. Check out the learning plans for IT Professionals, Developers and End Users and get started on your SharePoint 2010 learning plan.
4. Download the pre-configured Hyper-V SharePoint 2010 Evaluation and Demo Virtual Machine (~1.8GB) along with the SharePoint 2010 Walkthrough Guide for a chance to get hands on with SharePoint 2010 with zero set up and configuration.
5. Download 180 day trial versions of; SharePoint Server 2010, FAST Search Server 2010 for SharePoint, Office Professional Plus 2010, Windows Server 2008 R2, SQL Server 2008 R2 to install and evaluate SharePoint 2010 yourself, and while you’re downloading stuff here’s some links to the full versions of; SharePoint Foundation 2010, Search Server Express 2010, SharePoint Designer 2010
6. Watch the Getting Started with SharePoint 2010 for IT Professionals video series and the Getting Started with SharePoint 2010 for Professional Developers video series to get bite-sized video overviews of some of new and updated features.
7. Do the self paced IT Professional hosted virtual hands-on-labs and Developer hosted virtual hands-on-labs to get hands-on with SharePoint 2010 through a series of scripted tutorials, and if you want more, then download and install 10 getting started Developer Hands-on-labs.
8. Discover what’s new for end users with Getting started with SharePoint 2010 guides and Take SharePoint Server 2010 training at your desk.
9. Visit the TechNet and MSDN SharePoint 2010 sites for a wealth of technical reference documentation and prescriptive guidance through our categorized resource centers, such as the Installation and Deployment Resource Center to learn how to plan, install and configure SharePoint 2010 and the Upgrade and Migration Resource Center for the latest guidance and best practices for upgrading to SharePoint 2010.
10. Got questions? Search for an answer, or ask the community in the official Microsoft SharePoint 2010 Forums.
Already a SharePoint 2007 expert?
Check out the free advanced training content for IT Professionals and Developers looking to upgrade their skills from SharePoint Server 2007 to SharePoint 2010.
We’ve got 36 modules of self paced IT Professional Advanced Training and Developer Advanced Training that includes audio and video recordings. We’ll also be adding 24 hosted virtual hands-on-labs in the very near future to accompany the training content – All for FREE and on demand.
Want to get certified on SharePoint 2010?
Take a look at the Microsoft Learning SharePoint 2010 Training Portal for information and expected availability dates for SharePoint 2010 Certification, Classroom training, E-Learning, MS Press books and Learning Snacks.
Announcing: SharePoint 2010 Administration Toolkit V1
First version of SharePoint 2010 Administration Toolkit is now available. The toolkit included a couple of tools that were shipped releases and are now adapted to SharePoint 2010, along with two new tools.
· User Profile Replication Engine 2010 (UPRE2010): this tool got a complete overhaul and was converted to PowerShell. It now allows you to replicate Profile and Social data between SharePoint 2010’s User Profile Application (UPA), as well as backward compatibility with SharePoint 2007’s SSP. You can replicate between SSP’s or UPA services, as well as across versions. (Note that only Profile data can be replicated across versions, as SSP contains no Social activity tracking).
· The Security Configuration (SCW) Manifest: SCW is an attack surface reduction feature in Windows Server. This manifest adds roles for SharePoint 2010 Products to Windows Server 2008 with SP2 or Windows Server 2008 R2.
· The Content Management Interoperability Services (CMIS) Connector: enables SharePoint users to interact with content stored in any repository that has implemented the CMIS standard, as well as making SharePoint 2010 content available to any application that has implemented the CMIS standard.
· The Load Testing Kit (LTK): LTK generates a Visual Studio Team System 2008 (VSTS) load test based on Windows SharePoint Services 3.0 IIS logs. The VSTS load test can be used to generate synthetic load against Microsoft SharePoint Foundation 2010 as part of a capacity planning exercise or a pre-upgrade stress test.
The toolkit can be downloaded from here: http://www.microsoft.com/downloads/details.aspx?FamilyId=718447d8-0814-427a-81c3-c9c3d84c456e&displaylang=en
The toolkit documentation can be found here:
SharePoint Foundation 2010: http://technet.microsoft.com/en-us/library/cc508986.aspx
SharePoint Server 2010: http://technet.microsoft.com/en-us/library/cc508851.aspx
Thursday, July 15, 2010
Intellisense in Javascript with Sharepoint 2010 ECMAScript Libraries
This is pretty easy, just create a javascript file on your webpart project or wherever you need, once its done
Then on the file reference your js scripts like this>
/// <reference name="MicrosoftAjax.js"/>
/// <reference path="file://K:/Program Files/Common Files/Microsoft Shared/Web Server Extensions/14/TEMPLATE/LAYOUTS/SP.UI.debug.js" />
/// <reference path="file://K:/Program Files/Common Files/Microsoft Shared/Web Server Extensions/14/TEMPLATE/LAYOUTS/SP.UI.Core.debug.js" />
/// <reference path="file://K:/Program Files/Common Files/Microsoft Shared/Web Server Extensions/14/TEMPLATE/LAYOUTS/SP.UI.Dialog.debug.js" />
Once you do this, you have Intellisense!!
Customizing the ribbon (part 1) – creating tabs, groups and controls
Check Chris Post' comments to check why it has some simple bugs.
1st. Under Scaling the order was MaxSize,Scale, MaxSize,Scale, etc.
It has to be MaxSize, MaxSize,MaxSize,Scale,Scale,Scale
I guess the schema changed in the RMT and he used a BETA version
Also the enableRemoveStatusButton call had to be changed by RefreshCommandUI();
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction
Id="COB.SharePoint.Ribbon.CustomTab"
Location="CommandUI.Ribbon" RegistrationType="List" RegistrationId="101">
<CommandUIExtension>
<CommandUIDefinitions>
<CommandUIDefinition Location="Ribbon.Tabs._children">
<Tab Id="COB.SharePoint.Ribbon.CustomTab" Title="Mi aplicacion" Description="Groups and controls will go in here" Sequence="501">
<Scaling Id="COB.SharePoint.Ribbon.CustomTab.Scaling">
<MaxSize Id="COB.SharePoint.Ribbon.CustomTab.NotificationGroup.MaxSize"
GroupId="COB.SharePoint.Ribbon.CustomTab.NotificationGroup"
Size="OneLarge"/>
<MaxSize Id="COB.SharePoint.Ribbon.CustomTab.StatusGroup.MaxSize"
GroupId="COB.SharePoint.Ribbon.CustomTab.StatusGroup"
Size="TwoMedium"/>
<MaxSize Id="COB.SharePoint.Ribbon.CustomTab.RemoveStatusGroup.MaxSize"
GroupId="COB.SharePoint.Ribbon.CustomTab.RemoveStatusGroup"
Size="TwoLarge"/>
<Scale Id="COB.SharePoint.Ribbon.CustomTab.NotificationGroup.Scaling.CustomTabScaling"
GroupId="COB.SharePoint.Ribbon.CustomTab.NotificationGroup"
Size="OneLarge"/>
<Scale Id="COB.SharePoint.Ribbon.CustomTab.StatusGroup.Scaling.CustomTabScaling"
GroupId="COB.SharePoint.Ribbon.CustomTab.StatusGroup"
Size="TwoMedium"/>
<Scale Id="COB.SharePoint.Ribbon.CustomTab.RemoveStatusGroup.Scaling.CustomTabScaling"
GroupId="COB.SharePoint.Ribbon.CustomTab.RemoveStatusGroup"
Size="TwoLarge" />
</Scaling>
<Groups Id="COB.SharePoint.Ribbon.CustomTab.Groups">
<Group
Id="COB.SharePoint.Ribbon.CustomTab.NotificationGroup"
Description="Contains notification items"
Title="Notification messages"
Sequence="52"
Template="Ribbon.Templates.OneLargeExample">
<Controls Id="COB.SharePoint.Ribbon.CustomTab.NotificationGroup.Controls">
<Button
Id="COB.SharePoint.Ribbon.CustomTab.NotificationGroup.Notify"
Command="COB.Command.Notify"
Sequence="15" Image16by16="/_layouts/images/NoteBoard_16x16.png" Image32by32="/_layouts/images/NoteBoard_32x32.png"
Description="Uses the notification area to display a message."
LabelText="Notify hello"
TemplateAlias="cust1"/>
</Controls>
</Group>
<Group
Id="COB.SharePoint.Ribbon.CustomTab.StatusGroup"
Description="Contains 'add status' items"
Title="Add status messages"
Sequence="49"
Template="Ribbon.Templates.TwoMediumExample">
<Controls Id="COB.SharePoint.Ribbon.CustomTab.StatusGroup.Controls">
<Button
Id="COB.SharePoint.Ribbon.CustomTab.StatusGroup.AddStatusInfo"
Command="COB.Command.AddStatusInfo"
Sequence="17" Image16by16="/_layouts/images/info16by16.gif" Image32by32="/_layouts/images/info16by16.gif"
Description="Uses the status bar to display an info message."
LabelText="Info status"
TemplateAlias="cust2"/>
<Button
Id="COB.SharePoint.Ribbon.CustomTab.StatusGroup.AddStatusWarning"
Command="COB.Command.AddStatusWarning"
Sequence="17" Image16by16="/_layouts/images/warning16by16.gif" Image32by32="/_layouts/images/warning32by32.gif"
Description="Uses the status bar to display a warning message."
LabelText="Warning status"
TemplateAlias="cust3"/>
</Controls>
</Group>
<Group
Id="COB.SharePoint.Ribbon.CustomTab.RemoveStatusGroup"
Description="Contains 'remove status' items"
Title="Remove status messages"
Sequence="52"
Template="Ribbon.Templates.TwoLargeExample">
<Controls Id="COB.SharePoint.Ribbon.CustomTab.RemoveStatusGroup.Controls">
<Button
Id="COB.SharePoint.Ribbon.CustomTab.RemoveStatusGroup.RemoveLastStatusButton"
Command="COB.Command.RemoveLastStatus"
Sequence="15" Image16by16="/_layouts/images/warning16by16.gif" Image32by32="/_layouts/images/CRIT_32.GIF"
Description="Removes the last message from the status bar."
LabelText="Remove last status message"
TemplateAlias="cust4"/>
<Button
Id="COB.SharePoint.Ribbon.CustomTab.RemoveStatusGroup.RemoveAllStatusButton"
Command="COB.Command.RemoveAllStatus"
Sequence="15" Image16by16="/_layouts/images/warning16by16.gif" Image32by32="/_layouts/images/CRIT_32.GIF"
Description="Removes all messages from the status bar."
LabelText="Remove all status messages"
TemplateAlias="cust5"/>
</Controls>
</Group>
</Groups>
</Tab>
</CommandUIDefinition>
<CommandUIDefinition Location="Ribbon.Templates._children">
<GroupTemplate Id="Ribbon.Templates.OneLargeExample">
<Layout Title="OneLarge" LayoutTitle="OneLarge">
<Section Alignment="Top" Type="OneRow">
<Row>
<ControlRef DisplayMode="Large" TemplateAlias="cust1" />
</Row>
</Section>
</Layout>
</GroupTemplate>
</CommandUIDefinition>
<CommandUIDefinition Location="Ribbon.Templates._children">
<GroupTemplate Id="Ribbon.Templates.TwoMediumExample">
<Layout Title="TwoMedium" LayoutTitle="TwoMedium">
<Section Alignment="Top" Type="TwoRow">
<Row>
<ControlRef DisplayMode="Medium" TemplateAlias="cust2" />
</Row>
<Row>
<ControlRef DisplayMode="Medium" TemplateAlias="cust3" />
</Row>
</Section>
</Layout>
</GroupTemplate>
</CommandUIDefinition>
<CommandUIDefinition Location="Ribbon.Templates._children">
<GroupTemplate Id="Ribbon.Templates.TwoLargeExample">
<Layout Title="TwoLarge" LayoutTitle="TwoLarge">
<Section Alignment="Top" Type="OneRow">
<Row>
<ControlRef DisplayMode="Large" TemplateAlias="cust4" />
<ControlRef DisplayMode="Large" TemplateAlias="cust5" />
</Row>
</Section>
</Layout>
</GroupTemplate>
</CommandUIDefinition>
</CommandUIDefinitions>
<CommandUIHandlers>
<CommandUIHandler
Command="COB.Command.Notify"
CommandAction="javascript:
var notificationId = SP.UI.Notify.addNotification('Hello from the notification area');
" />
<CommandUIHandler
Command="COB.Command.AddStatusInfo"
CommandAction="javascript:
var statusId = SP.UI.Status.addStatus('Quite important status message');
latestId = statusId;
RefreshCommandUI();
" />
<CommandUIHandler
Command="COB.Command.AddStatusWarning"
CommandAction="javascript:
var statusId = SP.UI.Status.addStatus('Very important status message');
SP.UI.Status.setStatusPriColor(statusId, 'red');
latestId = statusId;
RefreshCommandUI();
" />
<CommandUIHandler
Command="COB.Command.RemoveLastStatus" EnabledScript="javascript:enableRemoveStatusButton();"
CommandAction="javascript:
SP.UI.Status.removeStatus(latestId);
latestId = '';
RefreshCommandUI();" />
<CommandUIHandler
Command="COB.Command.RemoveAllStatus" EnabledScript="javascript:enableRemoveStatusButton();"
CommandAction="javascript:
SP.UI.Status.removeAllStatus(true);
latestId = '';
RefreshCommandUI();" />
</CommandUIHandlers>
</CommandUIExtension>
</CustomAction>
<CustomAction Id="COB.Command.RemoveLastStatus.CheckEnable" Location="ScriptLink"
ScriptBlock="
var latestId = '';
function enableRemoveStatusButton()
{
if (latestId == '')
{
return false;
}
else
{
return true;
}
}"
/>
</Elements>
Customize Ribbons in SharePoint 2010
http://www.sharepointnutsandbolts.com/2010/01/customizing-ribbon-part-1-creating-tabs.html
Enabling a Button on the Ribbon Based on Selection
Basically, the enabling behavior all boils down to the following few lines of code:
{
var items = SP.ListOperation.Selection.getSelectedItems();
var ci = CountDictionary(items);
return (ci == 1);
}
singleEnable();"
With nothing selected:
With one item selected:
Clicking the button:
And with more than one item selected:
You could also change this to enable only if no items were selected, or if any number of items were selected. The way to make those kinds of changes should be relatively self-explanatory.
The full CustomAction code for a sample Ribbon button which enables when one item is selected is at the end of this post. The code assumes the following:
- You want to add this button to the New group on the Documents tab. If you want to add the button to another location, you should change the Location attribute of the CommandUIDefinition element (as well as change any appropriate attributes in the Button element, such as Id and Sequence, to match the new location).
- You have an icon image at LAYOUTS/SharePointProject1/DemoButton.jpg. If that’s not the case, you should either put an icon at that location or change the Image32x32 attribute to a valid icon path.
<CustomAction
Id="EnableSingleSelectButton"
Location="CommandUI.Ribbon" >
<CommandUIExtension>
<CommandUIDefinitions>
<CommandUIDefinition
Location="Ribbon.Documents.New.Controls._children">
<Button Id="Ribbon.Documents.New.EnableSingleSelectButton"
Alt="Button enabled on single selection"
Sequence="35"
LabelText="Single Select"
Image32by32="/_layouts/SharePointProject1/DemoButton.png"
Command="SingleSelectButton"
TemplateAlias="o1" />
</CommandUIDefinition>
</CommandUIDefinitions>
<CommandUIHandlers>
<CommandUIHandler
Command="SingleSelectButton"
CommandAction="javascript:alert('There is only one thing selected!');"
EnabledScript="javascript:function singleEnable()
{
var items = SP.ListOperation.Selection.getSelectedItems();
var ci = CountDictionary(items);
return (ci == 1);
}
singleEnable();" />
</CommandUIHandlers>
</CommandUIExtension>
</CustomAction>
Renaming Web Parts for SharePoint 2010 with Visual Studio 2010: Not a safe control?
But when you deploy it and try to add it to a page, you get the dreaded “this control isn’t registered as safe” error. So what gives? Savvy SharePoint developers know this usually means they should go check the web.config and see if their Web Part is listed correctly, which they find it isn’t.
Why?
The SharePoint Development Tools have a special place where it lists the safe control entries it ads. If you pick the SPI in the Visual Studio project and then open the Properties tool window (hit [F4] if it isn’t there), you’ll see a collection of Safe Control entries. Make sure it’s correct there and you’ll be good to go
From: http://www.andrewconnell.com/blog/Default.aspx
SharePoint 2010 Guidance from the Patterns and Practices Group
Developing Applications for SharePoint 2010 contains guidance documentation, detailed examples, and a reusable class library. These resources are designed to help solution developers and architects make the right decisions and follow proven practices when designing and developing applications for Microsoft® SharePoint® 2010. The guidance focuses on the building blocks that every developer needs to understand to become an effective SharePoint developer or architect. The guide is provided as a Help (.chm) file and has four core areas: application foundations, execution models, data models, and client models. Eight reference implementations illustrate the core concepts covered in the guide. The reusable class library provides code to help developers build more manageable, flexible, and testable applications. Source code is provided for all reference implementations and for the reusable library. The reference implementations have automated setup scripts to configure the applications.The SPG is filled with a lot of cool stuff. One bit of reusable code is the SharePoint Logger. This makes it much easier to write to the Windows Event Log as well as the SharePoint Unified Logging Service (ULS) logs. You’ll also find details on unit testing your application.
» P&P SharePoint 2010 Guidance Download Page
Another piece of the SPG provides guidance when doing different various data access techniques / tasks in SharePoint 2010. From working with data in lists to the different data access techniques to working with data that’s external to SharePoint, there is quite a bit of guidance on things you should be considering when working with data in SharePoint. This is just a tip of what you’ll find… you’ll also find models and guidance on building client applications as well.
While all this guidance is helpful, what I always find missing is a sample app to pick through. That’s where the SPG steps in. What you’ll find are these things called reference implementations (RI’s). Each RI addresses a different commonly experienced challenge from external lists, workflows, working with the sandbox and also working with full-trust proxies within the sandbox. Not only will you find executable code, but you’ll also find documentation that walks through each RI explaining it piece by piece.
Simply put, the SharePoint 2010 Guidance is a must read and a tool that should be in every SharePoint developer’s toolbox.
How To Hide the SharePoint 2010 Web Part Checkbox
How to hide the checkbox that is available for each Web Part in SharePoint 2010.
Resolution using CSS
Add the following CSS to your Master Page
.ms-WPHeaderTdSelection
{
display: none;
}
Resolution using OOTB available options
* Display the Web Part without a title
* Add a Content Editor Web Part right before the list Web Part, adding the title of the List Web Part to the Content Editor Web Part.
Long Time, Now Learning Sharepoint 2010.
Now I am on my track for Sharepoint 2010 Certifications, I expect to get them all in one year, I just have 15 days studying and I am already excited with all SP 2010 Features.
Expect more from me