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

Saturday 18 August 2012

SharePoint 2013 What does SYNC button do


No comments:
Today one of my fellow SharePointer friends asked me about the SYNC button that we see on the top right in Follow bar in the new Preview site.






So What does the SharePoint 2013 SYNC button do?



The “Sync” icon in the top right corner of the page is used to synchronize the library with your computer. Once you sync a library, you can access all of the files in it from Windows Explorer and Office even if you don’t have an internet connection.

cool isn't it!

SharePoint 2013 - The New "Geolocation" Field Type


No comments:
SharePoint 2013 Introduces a new field type named Geolocation that
can show Bing maps instead of location entered in list item.

How does it work -

In columns of type Geolocation, you can enter location information
as a pair of latitude and longitude coordinates in decimal degrees or
retrieve the coordinates of the user’s current location from the browser.

Code Example- 
oGeolocationValue.Latitude = (double)17.4;
oGeolocationValue.Longitude = (double)78.4;
oListItem["location"] = oGeolocationValue;

Prerequisites -

SQLSysClrTypes.msi must be installed on every SharePoint front-end web
server to view the geolocation field value or data in a list. You should be member
of the Farm Administrators group to perform this operation.

A valid Bing Maps key set at the farm or web level, which can be
obtained from the Bing Maps Account Center.

How to Create a Geolocation column in the list -

The Geolocation column is not available by default in SharePoint lists.
To add the column to a SharePoint list, you have to write code.
In this article, learn how to add the Geolocation field to a list programmatically
by using the SharePoint client object model.

class Program
    {
        static void Main(string[] args)
        {
            AddGeolocationField();
            Console.WriteLine("Location field added successfully");
        }
        private static void AddGeolocationField()
        { 
         // Replace site URL and List Title with Valid values.
            ClientContext context = new ClientContext("<Site Url>"); 
            List oList = context.Web.Lists.GetByTitle("<List Title>");
            oList.Fields.AddFieldAsXml("<Field Type='Geolocation' DisplayName='Location'/>",true, AddFieldOptions.DefaultValue);                                        
            oList.Update();
            context.ExecuteQuery();
        } 
    }


Friday 17 August 2012

SharePoint 2013 - Hide Help and Feedback button


2 comments:
This is post that will help you with Javascirpt that you need to hide Help and Feedback button.

HELP button -

Help button has ID "ctl00_TopHelpLink".

Script to Hide it -
<script language="javascript">
_spBodyOnLoadFunctionNames.push("HideHelpButton");
function HideHelpButton()
{
document.getElementById('ctl00_TopHelpLink').style.visibility = 'hidden';
}
</script>



Feedback button -

Help button has ID "ctl00_FeedbackLink".

Script to Hide it -

 <script language="javascript">
 _spBodyOnLoadFunctionNames.push("HideFeedbackButton");

 function HideFeedbackButton()
 {
 document.getElementById('ctl00_FeedbackLink').style.visibility = 'hidden';
 }
 </script>

Thursday 16 August 2012

Sharepoint 2013 Apps - Pros and Cons


No comments:
Apps for SharePoint are self-contained pieces of functionality that extend the capabilities of a SharePoint website. Apps integrate the best of the web and SharePoint; they are targeted, lightweight, and easy-to-use, and do a great job at solving a user need. Users discover and download apps from the SharePoint Store or from their organization's private App Catalog and install them on their SharePoint sites.

In this post I will list out some of the Pros and Cons of Apps in SharePoint 2013.
Pros :
  • Protects data  since they run as isolated
  • Avoids security breaches
  • Controlled Security access per App
  • Deployed to own App Web
  • Different Hosted options.
  • Easier to upgrade.
  • Advantage is that the Code is out of sharepoint
  • Reduction of server outages and downtown
  • Admins can Monitor apps
  • Multiple development platforms supported for creating Apps
  • Apps will work with Cross device

Corns :
  • Need to Create a Subsite to install App
  • You need new Dns entry for each App (if required)
  • Corporate catalog is paid or needs to be purchased
  • Aps cannot talk to each other

Tuesday 14 August 2012

Where to add Google Analytics in SharePoint 2013


1 comment:
You can either add the google Analytics code or any other code the old way to the Master Page or into a new APP "Web Analytics Integration"

This is a Free App that lets gives you a placeholder to add Codes to the site.

Here is the App Offical description -

"This application enables integration of third party web analytics services to your public website. Third party analytics service is integrated by injecting javascript on all site pages. The javascript to inject is determined by the third party analytics service. Examples of third party analytics services are Webtrends, Yahoo! Analytics, Google Analytics, and others."

Here is the link - Web Analytics Integration

Saturday 11 August 2012

SharePoint Designer 2013 - Using Dictionary Actions


No comments:
Dictionary is a new lind of variable (storage container) that can be used to save multiple values during the workflow. For example, your workflow might need to store more than just the name of the employee. It might also need to store his address and birth date. If you do not use the Dictionary variable you will have to create multiple stand-alone variables.

Since this will be widely used MS also Introduced three actions specifically designed for the Dictionary variable type.
  • Build Dictionary
  • Count Items in a Dictionary
  • Get an Item from a Dictionary

Build Dictionary - You use the Build Dictionary action to create a variable of type Dictionary. A Dictionary can contain any type of variable available in the SharePoint 2013 Workflow platform. The following list defines the variable types available:

  • Boolean: A Yes or No value
  • Date/Time: A date and time
  • Dictionary: A collection of variables
  • Guid: A Globally Unique Identifier (GUID)
  • Integer: A whole number without decimals
  • Number: A number that can contain decimals
  • String: A string of characters
In addition A Dictionary variable can contain a variable of type Dictionary.
Count Items in a Dictionary -  You use the Count Items in a Dictionary action to count the variables that a Dictionary contains and then store that number in an Integer variable. You can then use the item count to loop through the Dictionary.

Get an Item from a Dictionary -  You use the Get an Item from a Dictionary action to retrieve a variable stored in the Dictionary and place it in a variable. This is valuable when you need a value in the dictionary stored in a stand-alone variable. You can retrieve a value by entering the name of the variable.

Start a SharePoint 2010 Workflow from SharePoint 2013 Workflow


No comments:
Since a number of "Actions" have been deprecated in the SharePoint 2013 Workflow platform.To accommodate legacy workflows you can use Coordination Actions.

Coordination Actions can be used to start a List workflow or a Site workflow that has been built by using the SharePoint 2010 Workflow platform.

There are two Coordination Actions added:
  • Start a List Workflow: Used to start a workflow developed for a specific list in SharePoint 2010 Workflow platform.
  • Start a Site Workflow: Used to start a workflow developed for the site in SharePoint 2010 Workflow platform.
Figure: Start a List Workflow coordination action


The three editable regions are:
  • SharePoint 2010 list workflow Select the 2010 workflow to start.
  • parameters Parameters to send to the 2010 workflow.
  • this item The item which the 2010 workflow should be run on.
Please Note - The coordination actions only support starting a workflow based on the SharePoint 2010 Workflow platform from a workflow based on the SharePoint 2013 Workflow platform. Starting a workflow built on the SharePoint 2013 Workflow platform from within a workflow built on the same platform is not supported.


Friday 10 August 2012

Installing SharePoint 2013 on Windows 8 and Windows 7 - not going to happen!


No comments:
One of my friends yesterday said he tried Installing SharePoint 2013 on Windows 8 Client as it was specified in the document. I did some reasearch about it beacuse to my knowledge non eof the Client Operating systems were supported at this time.

So here is the offical page which says Windows 8 and Windows 7 Client Install is not supported (doesn't say that but they really mean that)

Hardware and software requirements for SharePoint 2013

Thursday 9 August 2012

SharePoint 2013 List Item Rating (Stars, Likes)


No comments:
A quick tip about SharePoint 2013 List Item Rating  - Stars and Likes. You can now Turn-on the rating for any list item bu simply setting as switch in the Rating Settings. So here are the steps

1. Navigate to your list and click on List tab.
2. Click on List Settings to Open list settings page.
3. Click on "Rating Settings"



3. Next select "Yes" for "Allow itms in this list to be rated?" and select the Rating method i.e "Which voting/rating experience you would like to enable for this list?"
Star or Likes.

4. This is how it shows up for a list item

SharePoint 2013 - Signin as different user is Missing!


No comments:
So Finally you have noticed that Signin as different user is Missing in Welcome menu. Wonder why MS has remove it or may this is one of the beta blues.

Well not to worry the camps of SharePoint Community are here to resuce. While I was searching for a solution to bring it back I found this post by Nick Grattan where he has well documented the process of bringin the "Signin as different user" option back.

Great work Nick and big thanks for the post.

Sunday 5 August 2012

How to add Javascript\Jquery in SharePoint 2013 site


No comments:
One of the most questions asked in how to add Javascript\Jquery in SharePoint 2013 site. In Sp2013 you have many options to do this. Lets look at the options -


1. Script Editor WebPart - If you want to add Javascript\Jquery to a page in SharePointy you can use the "Script Editor WebPart". This is a special webpart added to insert HTML\JavaScript\Jquery to your site.

How to use this webpart - Edit a page and click on Webpart zone “Add a WebPart”. In the Ribbon under Insert select Add a webpart. In webparts windows “Script Editor” under Media and Content. Once the webPart is added click the “Edit Snippet” and add JavaScript in it.

2. JS Link - If you add a JavaScript function to a Listview\Dataview webpart without modifying the webpart in SharePoint designer, this is the option that you would love to use. MS has Introduced a new webpart property for Listview\Dataview webparts called "Js Link".

How to use this webpart - Add a listview webpart on page and then edit the webpart. In webpart ptoperties expand the last section “Miscellaneous” and scroll down. You would find “Js Link” as last option in Miscellaneous section.

3. Content editor WebPart - In addition to Script Editor WebPart you can still add javascript to this old and famous webpart editor webpart.

How to use this webpart - Edit a page and click on Webpart zone “Add a WebPart”. In the Ribbon under Insert select Add a webpart. In webparts windows add "Content Editor" under Media and Content. Next under Format text tab in Ribbon select "Edit Source" to add the javascript.


4.Adding JS to Master Page Custom Action - You can either manually mody your Mastre page and add Javascript or refence to it or simply use a Custom Action Feature to do this.

Wednesday 1 August 2012

Turn off E-mail alerts for Conversations in SharePoint 2013 from My Sites\NewsFeed


No comments:
You probaly want to turn-off E-mail alerts that you get when some one replies to your conversations or has mentioned you in their post .. I know this can be annoying..

So here is how you do it.  Navigate to your My Site\NewsFeed and  click on About me. Next click on "..." and click on NewsFeed settings .. here you can select Email Notifications that you need to tun-off.


From NewsFeed settings you can also set preferences for
  • Email Notifications
  • People I follow
  • Activities I want to share

Sunday 29 July 2012

SharePoint 2013 - Access data from One site-collection in another (Catalogs and Cross-site publishing)


1 comment:
SharePoint 2013 introduces Cross-site publishing feature by which you can publish and access content across site collections. Cross-site publishing features depend on Catalogs.

Cross-site publishing was designed with some common scenarios in mind, including:

  • Share an item list or a page library as a publishing catalog
  • Consume a catalog from search
  • Combine cross-site publishing with the variations feature to enable authoring multilingual sites from a common authoring site collection.
     
With Cross-site publishing, for the first time you can design sites that cross SharePoint farms enabling your sites to span the boundary between intranets and the Internet.

Catalogs - You can use catalogs to reuse content across your sites and across the boundary between your intranet sites and Internet sites. A catalog is a list or library that is shared out to search for consumption on publishing sites. You can shares lists as catalogs for content reuse using APIs.

To Add a list or library as Catalog you need to add it to Catalog colletcion.
public void AddCatalogConnection(CatalogConnectionSettings catalogInfo, 
string[] orderedPropertiesForUrlRewrite,
string webUrl, 
string catalogTaxonomyManagedProperty,
bool isManualRule)

How to access content from Catalogs - You can surface content stored in catalogs across site collections by using the Content Search Web Part in SharePoint 2013.

Use the PublishingCatalogUtility API class to retrieve a list of available catalogs, get information about catalogs and their statuses, get information about lists and libraries that can be connected to catalogs, and start or stop sharing catalogs.

Sunday 22 July 2012

SharePoint 2013 - How to add a new link next to Sites, NewsFeed, SkyDrive


2 comments:
If you are looking to add a new link just next to Sites, NewsFeed, SkyDrive etc on the top bar of your SharePoint site..  you can now do that with a new delegate control "SuiteLinksDelegate".

If you modify your master page in designer you can find it at

<SharePoint:DelegateControl id="ID_SuiteLinksDelegate" ControlId="SuiteLinksDelegate" runat="server" />


So if in case you need to hide it or override it you have your refrence of the control that displays Sites, SkyDrive, NewsFeed etc.

SharePoint 2013 - Content Search Web Part (CSWP) Tutorial


No comments:
In SharePoint 2013 microsoft has introduced Content Search Web Part (CSWP) - The Content Search Web Part (CSWP) is a Web Part introduced in SharePoint 2013 Preview that displays search results  based on a search query and shows the results for that search query. Content Search Web Part displays search results in a way that you can easily format.

How does it display Results – The CSWP can return any content from the search index. It queries against the Index to display results.

Result Accuracy – The CSWP returns content that is as fresh as the latest crawl of your content, so if you crawl often, the content that the CSWP returns is more up-to-date than if you crawl infrequently.

Content in Results - Search crawls only the major versions of content, never the minor versions. So no minor version documents are included in results.

Results Availability -
 If the site collection or site is marked to not be indexed, the content is not available using CSWP.

Friday 20 July 2012

SharePoint 2013 - How To Change a Theme for your SharePoint site


No comments:
A simple How To Turorial on how to Change a Theme for your SharePoint site

On your SharePoint 2013 site click on "site Settings" a wheel up next to your Login Name. Next in the Site Settings page click on "Change the look"



Next you would see a list Themes available. Click on the one you need to set for your site.I will choose Sea Monster.

Next on the "Change the look" page select Site Layout, Color and Font scheme of the Theme. Click Try it Out towards the Top of big picture to see the preview.


Try it Out is a Preview of the Theme. Click on "Yes Keep it" to set this theme for your site. And this is how your Site will look like

You can set the Theme back the same way. Check out our artcile SharePoint 2013 - Composed looks and Themes to know more about Themes.

SharePoint 2013 - Composed looks and Themes


No comments:
SharePoint 2013 has Introduced somthing called "Composed looks". These are essentially Themes that we use to see in old sharePoint versions. These are essentially List Items that tells you about Themes and its components. On th eother hand there is something called "Themes" aviable as well. In Sp2013 this is a simple Font Schema of the theme which is refered in Composed looks.


Themes - This library contain colors/fonts/palettes file from themes that exist in 15 hive at the below path -

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\THEMES

These are refrenced in the Composed Look list.

Composed Look -

This list records the following data for a Theme

Name – Name of the Composed Look

Master Page – Default Master page of Theme.

Theme URL – Theme file that defines colors you want to apply to different CSS. ( From Themes Folder)

Image URL – URL to Background image in the CSS.

Font Scheme URL – Theme File which defines the fonts that can be applied to CSS

Display Order – Order the Composed looks entries.

SharePoint 2013 - Most Popular Items in Document Library


3 comments:
I am always exicted to write about a new feature and SharePoint 2013 is giving me a lot of chance to do my thing. So here is the review of new Feature "Most Popular Items" in document library. Navigate to a document library and click on Library tab.You would see the below option towards middle. Click on Most Popular Items button.

This page has many options but the bottom line is it tells you the popularity and Visits of a document in your document library.

In the above screen "Test document" was accessed Recently 50 times and 50 times Ever. Filter Results - In the left side pane you should see Filter options by which you can filter your results.

Thursday 19 July 2012

What are the developer Tools available for SharePoint 2013


No comments:
Developers often seek for tools to make their life easy and as always Mircpsfot provides them with what they want .

I have listed some of the Tool's that will help in developing on SharePoint 2013

SharePoint development tools in Visual Studio 2012 -
In addition to the SharePoint project templates that were provided in previous versions, Microsoft Visual Studio 2012 now includes two app project templates in the Apps folder: Apps for SharePoint 2013 and Apps for Office 2013. By using the Apps for SharePoint 2013 wizard, you can specify how to host your app for SharePoint. Based on the hosting type that you specify, Visual Studio creates a solution that contains all of the necessary projects and files. For more information, Creating apps for SharePoint and project items from templates.

SharePoint Designer 2013 and Visio 2013 - Visio 2013 and SharePoint Designer 2013 make it easy for business analysts, process consultants, and IT professionals to collaborate and build workflows. Both Visio 2013 Preview and the Visual Designer in SharePoint Designer 2013 Preview provide a rich representation of workflows in a format that is understandable to programmers and non-programmers alike.

"Napa" Office 365 Development Tools - "Napa" Office 365 Development Tools enables you to manage your projects. This is where you create your mail app, content app, or SharePoint app project as well as rename and delete them. You can also open any project in Visual Studio if you decide that you want to leverage features such as advanced debugging or the ability to use a web project as part of your app for Office or SharePoint. Choose a filter to view recently modified projects or projects of a specific type. Click a project tile if you want to open an existing project.

Wednesday 18 July 2012

SharePoint 2013 - How to Upload Documents in Document library


No comments:
You have two Options to Uplaod a document to SharePoint 2013's Document library.

1. Classic File Upload Option -







Click on new documents in your document library. You would see something like below -

Clixk on "Upload Existing File" to upload documents.

2. Drag and Drop - Microsoft has done an incredible job by adding this feature to its highly popular document libraries. On any document library you can simple Drag and Drop the document and it will be upload with a quick progress bar. Here is how this feature works Simply select a document from local and drag it towards the document library. The window will change to “Drag here”