Showing posts with label SharePoint 2010. Show all posts
Showing posts with label SharePoint 2010. Show all posts

Friday

SharePoint NewForm not working

Hi All,

    If you do customization to newform/dispform/editform. Sometimes there are some chances to get the page corrupted and all the lists in that sub site don't work. The best solution is to replace the guid with new one. Make sure to change the guid's to lower case and just fit it the existing guid.

Click here to create guid

Thursday

STSADM Commands for Solutions and Features

Working with Solutions


stsadm –o addsolution –filename “D:\Deploy\MySharePointSolution.wsp
We used the following command to deploy the solution once installed to a specific web application:
stsadm –o deploysolution –name MySharePointSolution.wsp –url http://myspwebappp –allowgacdeployment –immediate
If we would upgrade an existing solution, we would use the following:
stsadm –o upgradesolution –name MySharePointSolution.wsp –filename “D:\Deploy\MySharePointSolution.wsp” -immediate
And finally, we used the following commands to retract and delete a specific solution from the web application:
stsadm –o retractsolution –name MySharePointSolution.wsp –url http://myspwebapp –immediate
stsadm –o deletesolution –name MySharePointSolution.wsp
Now, let us see how we could do above operations with PowerShell. For this, we use the following PowerShell commands:
Add-SPSolutionD:\Deploy\MySharePointSolution.wsp
Install-SPSolution –Identity MySharePointSolution.wsp –WebApplication http://myspwebapp –GACDeployment
If you would like to add the solution as sandboxed, you would use the Install-SPUserSolution command instead. To upgrade a solution, we specify which solution is to be updated and with which new solution file:
Update-SPSolution –Identity MySharePointSolution.wsp –LiteralPath “D:\Deploy\MySharePointSolution.wsp” –GacDeployment
To retract and remove a solution, we use the following commands:
Uninstall-SPSolution –Identity MySharePointSolution.wsp –WebApplication http://myspwebapp
Remove-SPSolution–Identity MySharePointSolution.wsp

Working with features

Similarly, commands exist for working with features. The stsadm equivalents:
stsadm –o activatefeature –name MyFeatureName –url http://myspwebapp
stsadm –o deactivatefeature –name MyFeatureName –url http://myspwebapp
Needless to say, there are easy equivalents in PowerShell:
Enable-SPFeature –Identity MyFeatureNameOrGuid –url http://myspwebapp
Disable-SPFeature –Identity MyFeatureNameOrGuid –url http://myspwebapp

A deployment or retraction is already under way for the solution

It occurs if anomalies deployment is running for the some package in the backend and some previous deployment has been crashed before due to reason.
To resolve this problem do the next steps:
1.       Run the command prompt
Click "Start", click "Run" type cmd
2.       Go to web server extensions folder
cd C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN
3.       stsadm -o execadmsvcjobs
OR
Locate deployment jobId to break the running process
stsadm-o enumdeployments
Then cancel the deploy
stsadm-o canceldeployment-id "GUID jobId"

Monday

Disable approval workflow for a publishing site in SP2010

Most of the times, When you request publishing site you may end up with publishing site with workflow. If you don't want the approval workflow for a publishing site then you can do the following two steps.


1.  Go to the Pages library settings and click on versioning settings and click “no”:
2.  Click workflow settings and remove the approval workflow:

Thursday

Display PDF File in SharePoint

By using “Content Editor Web part” we can display PDF File in
SharePoint site.
  1. Add a “Content Editor Web part” to your SharePoint page.
  2. Click on the “Open the Tool Pane”, click on “Source Editor” to place the HTML source.
  3. Place the following piece of code in to the Source Editor and click ok
    src=”http://source/test.pdf” type=”application/pdf”>

Friday

SharePoint 2010 Ribbon scroll like a normal site!

Hi All,

    I got couple of emails regarding the scrolling issues with SharePoint 2010, One of them had issues with visitors unable to read the content which is available in the bottom of the page. so the best solution as follows:


  1. First thing you need to do is remove or change scroll=”no” to “yes” in the – this will make the page scroll conventionally.
  2. Next you need to remove or change the “s4-workspace” ID tag from line 293 (in v4.master).
  3. I usually just rename it to s4-workspaced so if you need to change it make, you can just remove the ‘d’
  4. Next you need to add some CSS either in a referenced custom stylesheet or directly in the masterpage. The CSS code is very simple it is - body {overflow:auto!important;}

Tuesday

Hide column header in a SharePoint list web part

To remove these annoying headers I used a simple content editor web part. Open up the Source editor and enter the following three lines:
style
.ms-viewheadertr { display: none;}
/style
Under Layout in the Content Editor Web Part check the “Hidden” check box so you’re web part wont’ be seen on your site and click OK.  The column headers will now be hidden from view.

This method can also be used to hide and/or change the look of other aspects of your SharePoint site without using SharePoint Designer or making any custom modifications.

Wednesday

How to Remove I like it -- Tags and Notes using SharePoint Designer

There are two ways to remove social tags i.e. I like it ---  Tags and Notes

1) go to central admin- Farm Management -- Manage Farm Features-- Deactivate Social Tags and Note Board Ribbon Controls, but it will impact all the web application.

2) using SharePoint Designer open the master page i.e. v4.master and add style="display:none" to the following code.
                                     class="s4-socialdata-notif" style="display: none"                                        SharePoint:DelegateControl ControlId="GlobalSiteLink3" Scope="Farm" runat="server"                                   

                                   
                                       
                                   

Tuesday

“You must specify a value for this required field” error when hidding PlaceHolderPageTitleInTitleArea

 Instead of commenting or deleting the following code

asp:ContentPlaceHolder ID="PlaceHolderPageTitleInTitleArea" runat="server

use style="display:none;" as follows

asp:Panel style="display:none;"

asp:ContentPlaceHolder ID="PlaceHolderPageTitleInTitleArea" runat="server" /

asp:Panel

 

When customizing SharePoint 2010 MasterPages you often don’t want certain content placeholders to show up on the page.  You should not delete or comment these elements out but instead set the visible=”false”  or display:none attribute on the content placeholder.  


 

Friday

Add BCC Recipient in SharePoint Designer 2010 Workflow E-Mails

When you design your email in SharePoint Designer workflows, you do not get the opportunity to include blind carbon-copy recipients. Here is the initial screenshot:

In order to add BCC, you need to click Advanced Properties located in the ribbon UI:

This will launch a separate window where you can now set your BCC recipients.

Thursday

How To Hide Ribbon From Visitors in SharePoint 2010

  •       Open your SharePoint master page
  •       Locate this line:
    <div id="s4-ribbonrow" class="s4-pr s4-ribbonrowhidetitle">
  •       Change it to: <div id="s4-ribbonrow" class="s4-pr s4-ribbonrowhidetitle" style="display:none">
  •       Now find the end of the “s4-ribbonrow” tag and add following block right after it:
<Sharepoint:SPSecurityTrimmedControl ID="SPSecurityTrimmedControl2" runat="server" PermissionsString="AddAndCustomizePages">    <script type="text/javascript">        document.getElementById("s4-ribbonrow").style.display = "block";
    script>
Sharepoint:SPSecurityTrimmedControl>
  •       Save the new master page and publish it.

Tuesday

Download Visual Studio 2010 Extensibility Projects for SharePoint 2010

There are three extensibility projects included in this Beta release (that target the SharePoint RC version):

1. Silverlight and SharePoint project template
2. SharePoint Ribbon project template
3. OBA Deployment project template
There are three extensibility projects included in this Beta release (that target the SharePoint RC version):


Link

Datasheet View of list/library not supported when 64 bit of Office 2010 is used

By default, the Datasheet view of a list or library is not supported when you are using the 64-bit version of Microsoft Office 2010 installed on a 64-bit Windows operating system.

In order for Datasheet view to work download Data Connectivity Components driver.  These components are available on the Microsoft download center:
2007 Office System Driver: Data Connectivity Components

What to Install in Office 2010 64-bit or 32-bit?

Microsoft Office 2010 is the first version of office that will ship in both 32-bit (x86) and 64-bit (x64) flavors. If you are running a 32-bit version of Windows, you can only use a 32-bit version of Office. However, on x64 Windows, you can decide to install either 32-bit Office or 64-bit Office, but not both.
Microsoft recommendation is to install the 32-bit Office, even on 64-bit Windows.  Unless you have special needs that require the use of 64-bit Office apps.

Wednesday

Migration from MOSS 2007 to SharePoint Server 2010

Migration from MOSS 2007 to SharePoint Server 2010

Step 1: Make sure that SharePoint 2007 farm is running SP2 or later
Step 2: Run the pre upgrade check command on the 2007 farm
Step 3: You can either select In-place upgrade or database attach upgrade
In-place upgrade: Here you are installing the SharePoint 2010 on existing server. Some disadvantage are it will upgrade the existing Moss 2007 server to SharePoint 2010 hence it is difficult to revert back until unless you have the back up.
Database attach upgrade: In this approach you are installing the MOSS 2010 on new server. You can use the moss 2007 content database and migrate to new server as shown below. This approach works perfect and you can use the visual upgrade feature
   Find the content Database by opening the SharePoint 2007 form; Content database are listed under Central Admin->Application Management->Site Collection List
   Backup the content database, you could alternatively detach it, and copy it. Just doing a backup in SQL Server Management studio is easier.
   Restore content database to new server, Copy the BAK file to new server. Create an empty DB in Management Studio, restore from backup, you may need to change an option in the “options” tab of the restore dialog to get it to work. (Overwrite db).
   Create Web App on SharePoint 2010 and remove Content Database from the new web app.
Note: Now use STSADM to add restored DB to this web app c:\program files\common files\Microsoft shared\web server extensions\14\bin on new server is where you can find the STSADM. Run below command, which will upgrade the content db to 2010 or you can use central admin to update the content database.
  •   stsadm -o addcontentdb -url http://yourwebapp:port -databasename    yourcontentdb -databaseserver yoursqlserver
  •  Run ISSRESET from command prompt
  • Deploy all the package and features used in SP 2007 server.

       Srikanth kothakanti sharepoint MCP

Sunday

SharePoint 2010 Designer and WorkFlow New Features

SharePoint 2010 Designer and WorkFlows New Features

SharePoint Designer and WorkFlows:

2 flavors
- System workflow
- human workflow

System workflow - moving data in and out
Human - long running processes of business.


- We can now modify built-in workflows within SPD 2010
- We can modify workflows forms in InfoPath invoked directly from SPD
- We can modify list forms with InfoPath
- We can visualize workflows with Visio Services right inside the browser
- We can let business folks build conceptual workflows in Visio that we export and import to SPD for publishing to SP
- We can take workflows built in SPD and export them to Visio for modification or visualization
- We can create re-usable workflows
- We can save workflows as templates to be used on other sites or to even be modified in Visual Studio
- We can do conditional formatting on views straight from SPD without using JScript, JQuery, or data view web parts
- In SPD workflows, we have built-in string builders for the subject line
- In SPD workflow emails, we have built-in rich text so that we don't have to write html by hand

Friday

SharePoint 2010 OverView

Tuesday

Top Ten Reasons to upgrade to SharePoint Server 2010

Following are my compilation for the Top Ten Reasons to upgrade to SharePoint Server 2010:


Business Connectivity Services

SharePoint Server 2010 and the Microsoft Office 2010 suites include Microsoft Business Connectivity Services, which is a set of services and features that provide a way to connect SharePoint-based solutions to sources of external data and to define external content types based on that external data.

Enterprise Search

With the new capabilities in SharePoint Server 2010, search administrators can configure an optimal search infrastructure that helps end users find information in the enterprise quickly and efficiently.

Excel/Access/Visio Services

Excel Services in Microsoft SharePoint Server 2010 can be used to publish Excel client workbooks on SharePoint Server 2010.
Use Access Services in Microsoft SharePoint Server 2010 to edit, update, and create linked Microsoft Access 2010 databases that can be viewed and manipulated by using an Internet browser, the Access client, or a linked HTML page.
The Visio Graphics Service is a service on the SharePoint Server 2010 platform that enables users to share and view Visio diagrams and enables data-connected Microsoft Visio 2010 diagrams to be refreshed and updated from a variety of data sources.

Health Monitoring

SharePoint Server 2010 includes an integrated health analysis tool called SharePoint Maintenance Manager that enables SharePoint Server to automatically check for potential configuration, performance, and usage problems.

Managed Metadata

Managed metadata is a hierarchical collection of centrally managed terms that you can define, and then use as attributes for items in SharePoint Server 2010. The Managed Metadata Service supports the use of managed metadata, as well as the sharing of content types across the enterprise.

PerformancePoint Services

PerformancePoint Services in Microsoft SharePoint Server 2010 provides flexible, easy-to-use tools for building dashboards, scorecards, and key performance indicators (KPIs).
  

Sandboxed Solutions

You can deploy sandboxed solutions to quickly and more securely solve business problems. Sandboxed solutions are like farm solutions except in the following ways: they are rights-restricted and have a more permissive deployment policy than farm solutions; they are limited to the site collection to which they are deployed; and their server resource usage is monitored against an administrator-controlled quota for the site collection.

Social Computing

SharePoint Server 2010 includes social networking tools such as My Site Web sites and social content technologies such as blogs, wikis, and really simple syndication (RSS). These features are built upon a database of properties that integrates information about people from many kinds of business applications and directory services. You can adapt content to each user while enabling administrators to set policies to protect privacy.

Web Content Management 

With SharePoint 2010, it’s really easy to create and manage web pages. The Ribbon makes it intuitive, features likes one-click page creation and the ability to swap page-layouts very easily improve web content management productivity. Of course, features like ratings and tagging apply to web pages. Of course, we support WCAG 2.0 AA and allow users to comply with XHTML standards.


Upgrade/Windows Power Shell

Review upgrade requirements and find out about new upgrade tools and options, including information about the pre-upgrade checker, Visual Upgrade, and the test-spcontentdatabase Windows PowerShell cmdlet.
Windows PowerShell is the new command-line interface and scripting language specifically designed for system administrators.

Friday

SharePoint 2010 Downloads

I want to let my readers know about the SharePoint 2010 RTM Release to the world.
It was Successful completion of SharePoint 2010 Global Launch Event and it is available from May 12th 2010. Following are the important links for the downloads from Microsoft Site.

NOTE: 1) SharePoint Designer 2010 will not support SharePoint 2007
             2) It is no more called MOSS, now it is SharePoint Server 2010.

1) SharePoint Foundation Server 2010
2) SharePoint Designer 2010 (64 bit)
3) SharePoint Designer 2010 (32 bit)
4) SharePoint Server 2010
5) SharePoint Server 2010 RTM Software Development Tool Kit (Newly Added Link)

Free SharePoint 2010 Developer Guide

Free SharePoint 2010 Developer Guide