Monday, June 17, 2013

SharePoint 2010 Rating Feature Configuration - How to Activate? Fix Ratings not Updating Issue

Rating feature was introduced in SharePoint 2010, It helps to rate Lists, Documents, Pages on a SharePoint site.

How To Enable SharePoint 2010 Rating Setting:
To setup SharePoint 2010 rating configuration, follow these steps:

  • Navigate to your SharePoint site and then Target list or document library where you want Ratings to be enabled.
  • Go to the list settings, Click on "Rating Settings" under the "General Settings" section
    sharepoint 2010 rating document library
  • Enable "Allow items in this list to be rated" and click OK. This will add rating columns to SharePoint 2010 list/library.
    sharepoint 2010 enable rating feature
  • Now you will see two new columns: the Ratings (0-5) and the Number of Ratings under the Columns section of list settings.
    sharepoint 2010 list rating column
  • Go to the list items view, You can set the ratings inline or edit a list item/document and set the  rating for the item by simply mouse over the stars in the Rating(0-5) column and set the ratings as needed. (You need Edit permissions, BTW)
    sharepoint 2010 how to enable rating
The next time the service timer job responsible for this social feature runs, the rating scale and number will reflect the results

SharePoint 2010 Ratings not working?
So you rated a List item or a document, but upon refresh, found SharePoint 2010 ratings not updating? Ratings not saved? But when you mouse over the rating icons, SharePoint gives the previously selected rating in tool tip. Well, that's confusing most of the users!

This is due to: By default the Timer Jobs listed below, related to Rating service is set to run for every hour!
rating in sharepoint 2010 not working
Once ratings given to an item then it'll be stored in database. When the ratings are all gathered together it will show the average ratings, not just your ratings. When the page is refreshed, if the data hasn’t been analyzed yet by SharePoint via the below timer jobs, the ratings will be blank or old! This is how ratings work in SharePoint 2010.

SharePoint 2010 rating timer jobs
Rating values are compiled by these timer jobs
  1. User Profile Service Application - Social Data Maintenance Job
  2. User Profile Service Application - Social Rating Synchronization Job
By default, This timer job is scheduled to run every 1 Hour. You can Run these timer jobs on-demand by clicking "Run Now" or change the "Recurring Schedule" as required. Here is how - Go to:
Central Administration >> Monitoring >> Timer Jobs >> Review Job Definition >> and select the above timer jobs.

Click on "Run Now". our convenience and testing, schedule both these jobs to run every 1 min as shown below.
sharepoint 2010 rating timer job


As you hover over the ratings stars they light up, and then you just click to select your rating and record your vote,  users can see the average ratings  (Blue Stars) after the timer job run.
sharepoint 2010 rating documents
If a user giving rating which he already given, then his previous rating will be discarded and new selection only getting considered.

SharePoint 2010 rating settings not available? Here is how to activate rating feature:
Don't have "Rating Settings" appear on lists/libraries settings? Enable Rating feature to fix SharePoint 2010 rating settings missing issue:
Enable-SPFeature Ratings -url http://site-collection-url

Rating feature is available only with SharePoint Server 2010 and not with the SharePoint Foundation Services!


SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
SharePoint Project Management
Extend SharePoint for Total Work Management
*Sponsored


Sunday, June 16, 2013

SharePoint WSP Solution Deployment Stuck at "Deploying"

Issue: SharePoint WSP Solution got stuck at "Deploying" stage for hours while trying to deploy using STSADM command!

Workarounds: 
Try these workarounds to fix the solution deployment stuck at "deploying" stage.
  • Make sure all your WFE & DB Servers in the Farm has no Time zone different! Make them aligned!
  • Try running: stsadm -o execadmsvcjobs as the first step!
  • Cancel  the deployment, Remove the WSP and Re-deploy: 
    • stsadm -o enumdeployments - This will give the GUIDs of all solution in "Deploying" State. Cancel the deployment using stsadm -o canceldeployment <GUID> command. E.g.:
    • stsadm -o canceldeployment -id "95823b2b-8c92-4d08-99d5-7cf14c7be602"
    • Delete the stuck solution with stsdm -o deletesolution -name mysolution.wsp -override
    • Redeploy the solution.
  • Try deploying for a single web application rather all.
  • Try Restarting Timer Job on all servers of the Farm.
  • Try Clear Config Cache
  • As the last: Reboot the server!


SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
SharePoint Project Management
Extend SharePoint for Total Work Management
*Sponsored


IE 10 Browser Compatibility issues with MOSS 2007 and SharePoint 2010

Found so many user interface issues with Internet Explorer 10 while using it in MOSS 2007 and SharePoint 2010 sites. For instance, KPI didn't load, Grouped items stuck with "Loading.." message, etc. Additionally, Experienced many JavaScript errors when tying Datasheet view, Multiple File Upload, etc.

Temporary Fix: Set the Browser Mode to IE 8!

How? Press F12, which fires IE Developer Tools. Select "Browser Mode: IE8". You can also try setting User Agent string to IE 8 from tools menu of IE Development tools.


Permanent Fix: Install the Hot fix! http://support.microsoft.com/kb/2600100/en-us

SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
SharePoint Project Management
Extend SharePoint for Total Work Management
*Sponsored


Thursday, June 13, 2013

How to Hide SharePoint 2010 Ribbon Tab - Group - Button - Menu

How to hide Ribbon Tab - Group - Button - Menu in SharePoint 2010? But why? because, the requirement is: Users to fill the form and not upload any existing documents to the document libraries in a particular site. So wanted to disable Upload Document button from SharePoint ribbon.
hide sharepoint ribbon button

Solution:
Override the existing SharePoint 2010 Ribbon Tab/Group/Button/Menu by creating an empty CommandUIDefinition!

Steps in Detail:
1. Create an empty SharePoint 2010 farm solution project in Visual Studio 2010. Give it a name. Say, Crescent.TeamSites.HideUploadButton.
sharepoint hide ribbon items
2. Add a new "Empty Element" item to the project. This will create a Feature with Elements.xml file.
hide sharepoint ribbon tab

3. Update the Elements.xml file with below content.
 <?xml version="1.0" encoding="utf-8"?>
  <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <CustomAction
      Id="RemoveRibbonButton"
      Location="CommandUI.Ribbon">
      <CommandUIExtension>
        <CommandUIDefinitions>
          <CommandUIDefinition
            Location="Ribbon.Documents.New.AddDocument" />
        </CommandUIDefinitions>
      </CommandUIExtension>
    </CustomAction>
  </Elements> 
hide a ribbon button in sharepoint 2010

4. Now, Go to Feature designer, Name the Feature Title & Description. Specify the scope as Web and Include the Element to the feature.
sharepoint 2010 hide button from ribbon

5. Deploy the feature and see the result in action.
hide a ribbon button in sharepoint 2010
Here the Location is the key. For all available location values, refer MSDN: http://msdn.microsoft.com/en-us/library/ee537543%28v=office.14%29.aspx

Tips: You can also use IE Toolbar/Firebug to get the location ID! (Take the text till - Hyphen )
sharepoint ribbon hide tab

Hiding SharePoint 2010 Ribbon Tabs, Groups, Button Menus
The above method applies when you want to hide button menus from the Ribbon.
  • E.g. Hide "Upload Multiple Documents" Menu link under "Upload" button, specify the location as: Ribbon.Documents.New.AddDocument.Menu.Upload.UploadMultiple
  • To Hide Ribbon Tabs, E.g. Hide Documents tab in document library ribbon, the location should be "Ribbon.Document". 
  • Similarly to hide Ribbon Tab Button Groups, E.g. "New" group in SharePoint Ribbon, specify the location as: Ribbon.Documents.New

How to Hide Ribbon  Tab - Group - Button - Menu on a Particular List?
While its possible to target custom action to List types, Content Types, File Types, There is no way to target on specific list declaratively! So, we can get it done programmatically. Here is how to hide ribbon buttons in SharePoint 2010 programmatically:

    static void Main(string[] args)
        {
            using (SPSite site = new SPSite("http://sharepoint.crescent/"))
            using (SPWeb web = site.OpenWeb())
            {
                //Get the "Projects" List 
                SPList list = web.Lists.TryGetList("Projects");
                if (list != null)
                {
                    var action = list.UserCustomActions.Add();
                    action.Location = "CommandUI.Ribbon";
                    action.Sequence = 50;
                    action.Title = "Hide Upload Button from Ribbon";

                    action.CommandUIExtension = @" 
                        <CommandUIExtension><CommandUIDefinitions>
                        <CommandUIDefinition Location=""Ribbon.ListItem.New"">
                        </CommandUIDefinition>
                        </CommandUIDefinitions>
                        </CommandUIExtension>";
                    action.Update();
                }
            }
        }

To remove the custom action use this code:
      using (SPSite site = new SPSite("http://sharepoint.crescent.com/"))
            using (SPWeb web = site.OpenWeb())
            {   
                //Get the "Projects" List 
                SPList list = web.Lists.TryGetList("Projects");
                if (list != null)
                {
                     
                   foreach (SPUserCustomAction action in list.UserCustomActions)
                    {
                        if (action.Title == "Hide Upload Button from Ribbon")
                        {
                            action.Delete();
                            break;
                        }
                    }
                }
            }

Hide Ribbon Button by CSS:
We can hide ribbon buttons using CSS also. Refer this post for more info: How to Disable Multiple File Upload in SharePoint

Microsoft KB: http://support.microsoft.com/kb/2285182

SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
SharePoint Project Management
Extend SharePoint for Total Work Management
*Sponsored


Wednesday, June 12, 2013

Open with Explorer Error - Alternate Method

When you try to use "Open with Explorer" on SharePoint document library, Received Error "Your client does not support opening this list with Windows Explorer".
Your client does not support opening this list with Windows Explorer
You tried all the workarounds on Open with Windows Explorer Error: "Your client does not support opening this list with windows explorer" , but no luck!

Well, there is a alternate to Open with Explorer. Map to Network Drive!

Just go to My Computer >> Right Click "Computer" node from left side Tree view >> Choose "Map Network Drive" and provide the SharePoint document library location.
Open with Explorer Error - Alternate Method

You may be prompted to provide credentials. Once done, will get a New Drive in My computer, where you can copy/paste files as you do in windows explorer.




SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
SharePoint Project Management
Extend SharePoint for Total Work Management
*Sponsored


You might also like:

Related Posts Plugin for WordPress, Blogger...