SharePoint4us

Explore the Experience in SharePoint 2013

Showing posts with label SharePoint 2013. Show all posts

Saturday, March 19, 2016

What is Office 365 and Getting started with it ?



Hi friends, Thanks for visiting my blog . In this post i would like to post about Office 365 and its importance.so lets get started...

What is Office 365  and Getting started with it ?


SharePoint Online is a cloud-based service that helps organizations share and collaborate with colleagues, partners, and customers. With SharePoint Online, you can access internal sites, documents, and other information from anywhere—at the office, at home, or from a mobile device.

Microsoft Office 365 now includes Office 2016 and gives you the full Microsoft Office experience. With access to the latest Office applications as well as other cloud-based productivity services, whether you need Office for home, school, or business, there is an Office 365 plan to meet your needs.

Our Office 365 subscription plans include Office 365 Home, Office 365 Personal, Office 365 University and Office 365 for Mac. With each plan, you can install the 2016 versions of Word, Excel, PowerPoint, Outlook, and OneNote (Access, and Publisher are also included for PC users). When a new version of Microsoft Office is released, you’ll get instant access to it so your applications are always up-to-date -- and because Office 365 is optimized across your devices it's easy to get anywhere access to your stuff on your laptop, phone, tablet and more.

Along with the latest software, you'll also get 1TB of OneDrive cloud storage, which lets you keep documents in one place, and access them anywhere on any device -- making it easier than ever to create, edit, and share your documents on the go. In addition, Office 365 subscribers will get 60 minutes of Skype calling per month so you can stay in touch with friends and colleagues around the globe. Best of all, you can get tech support from the Microsoft Answer Desk experts, by phone or chat—at no extra charge.

Office 365 Home lets you install Office on up to 5 PCs or Macs, as well as 5 Windows, Android, or iPad tablets—an ideal solution for homes with more than one user. See the latest Microsoft Office 365 subscriptions -- and do more everywhere.

Getting Started with Office 365 

Please find the below link which will guide you step by step for creating Office 35developer account 
https://msdn.microsoft.com/en-us/office/office365/howto/setup-development-environment


Good luck  and start practicing  :-)

anywhere o
n your favorite devices.Office 365 Home is a subscription built to help you and your household get things d

one from nearly anywhere on your favorite devices.

Tuesday, November 17, 2015

How to Enable SharePoint Designer quickly in SharePoint 2013


Hi friends,

In this post we can explore how to enable SharePoint Designer for a site collection.

SharePoint Designer

SharePoint Designer can be locked due to multiple reasons. But, SharePoint Designer is required to customize pages, create custom workflows & lot of other quick tasks.

If you are the Site Collection Administrator, you can enable SharePoint Designer as following.

Open Site Settings Gear > Site Contents menu item.


Tuesday, May 26, 2015

Introduction to Workflows in SharePoint 2013



Hi friends,

Thanks for visiting my blog.


In this Post i would like to describe about "SharePoint Workflows".

  •   Introduction to workflows.
  • .Why we need Workflow?
  •  Common Workflow Scenario.
  •  Reusable and Non-Reusable Workflows.
  •  Typical Workflow Usage in SharePoint
  • Designer, Visio and Visual Studio
  • Declarative & Compiled Workflows
  •  Out of the Box Workflows

 Introduction to workflows.

            Workflows help people to collaborate on documents and to manage project tasks by implementing business processes on documents and items in a Microsoft Office SharePoint Server 2007 site. Workflows help organizations to adhere to consistent business processes, and they also improve organizational efficiency and productivity by managing the tasks and steps involved in business processes. This enables the people who perform these tasks to concentrate on performing the work rather than managing the workflow.

                                        



Why we need Workflow?

Workflow provides a convenient way to automate manual business processes.
The activities in the Workflow can be represented in a graphical manner and adds great flexibility to a developer and non-developer. Using Workflow we can easily achieve the branching, cases and executions in an easier manner


Common Workflow Scenario
We can apply Workflow for the following scenarios.

Scenario 1: A task list allows creation of task for users. Whenever a new task is created in the list, we need to notify the user associated with it. We can use Workflow to accomplish this easily.

Scenario 2: A company consists of developers with various skill sets. There is a set of Training Items. Each developer can apply for the training. The application will be notified to the Training Manager. He can check the skill set and approve or reject the applicant. If selected, the applicant can attend the training. On completion of training there is a verification exam to be undergone by the attendee. If he passes then Certificate is issued else the notification through email is done. We can use Workflow to accomplish this easily.

Scenario 3: People upload their expense reports into a Document Library. The library captures the expense as a separate field. Every week manager has to change status to Approved for the expenses with less than $ 500. The list contains hundreds of entries. The status updation can be done using Workflow in just 1 minute.

Scenario 4: Client can create a bug and it should be notified to Developer through email. Developer on completion of the bug fix changes the status and the Client gets notified. This whole process can be done through Workflow in an easier manner.

Reusable and Non-Reusable Workflows

In the case of SharePoint 2007 the workflow created for one list cannot be used for another list. But in SharePoint 2010.2013  the same workflow can be applied for multiple lists and thus making it Reusable. We can create reusable workflows using SharePoint Designer 2010,2013


Typical Workflow Usage in SharePoint
  • Developer creates the Workflow.
  • Administrator deploys the Workflow
  • Site Users use the Workflow.



Designer, Visio and Visual Studio

The SharePoint Designer provides an easier way for Administrators and Developers to create Workflows. Along with Microsoft Visio, Designer provides much more flexibility and features in Workflow creation.
Using Visual Studio developers can write more complex programming tasks with Workflow. Using the SharePoint extensions for Visual Studio, the inbuilt templates provide easier Workflow creation and deployment.
Declarative & Compiled Workflows

The workflows created using SharePoint Designer are known as Declarative workflows.

The workflows containing code and contained inside DLL files are known as Compiled workflows. They are usually created using Visual Studio 2010. 


Workflow Creators
·         A workflow can be created by:
·         Administrator
·         Developer
·         Power User
·          
Workflow Association
·         A workflow can be associated with the following:
·         Content Type
·         List / Library
·         Site


This makes easier to understand that a Workflow can be started manually or automatically.
Workflow Forms

Following are the types of forms associated with workflow:

1. Initiation Forms are shown to user when they start a workflow. The initiation form is used to capture parameters associated with a workflow.

Examples of parameters include Receiver Email list, Maximum Amount etc.

2. Association Forms are used to associate a workflow with a particular list or content type. The association form is by the Administrator.

In reality the Initiation form can be the same as Association form. The user can override the Association form settings using the Initiation form.

We can provide custom Initiation & Association forms using InfoPath as well.

                          Out of the Box Workflows

Following are the Out of the Box Workflows in SharePoint 2010:

·         Three-state
·         Disposition Approval
·         Collect Signatures
·         Collect Feedback
·         Approval





   


Monday, April 27, 2015

How to get multiple users from SharePoint list Pragmatically in SharePoint 2013,2010?


Hi friends,

Thanks for visiting my blog .

In this post, i would like to describe about "Getting multiple users from SharePoint list Programatically".

Scenario : 
I came across a situation where i want to fetch the usernames and email IDs   from list (Column is people Picker and Check the "allow multiple users" option).

Solution : 

Please find the the below code snippet
*********************************

 SPFieldUser UsersColumn = (SPFieldUser)lstNewPrsReq.Fields.GetField("ColumnName");
 SPFieldUserValueCollection Users = (SPFieldUserValueCollection)UsersColumn.GetFieldValue(lstitemCollection[0]["ColumnName"].ToString());   
   if (Users != null)
     {                                 
  foreach (SPFieldUserValue user in Users)
               {
                        SPUser spUser = user.User;                    
                        if (spUser != null)                                               
                        strCCEmail = strCCEmail + ";" + spUser.Email;
                }                                                                           
          strCCEmail = strCCEmail.TrimStart(';');                             
     }      


strCCEmail : This string contains all the mail ids of the users for that particular list item.

hope this blog helps you........

Wednesday, March 18, 2015

What is JS Link in SharePoint 2013 and How to use it ?

Hello,

In this post i am going to give you an overview on client side rendering using JSLink in SharePoint 2013.

Client side rendering is nothing but transformation of data at client side. Using this we can do branding on SharePoint List Views, Fields, Search Results etc. This is pretty easy to implement like  changing the look and feel of default web parts like list view web parts.

Lets start with implementation. I have used below script to render an Announcements list view fields. Copy the below script in to your js file.

Java Script:

(function () {
    /*
     * Initialize the variable that store the overrides objects.
     */
var overrideCtx = {};
overrideCtx.Templates = {};

   // Assign functions or plain html strings to the templateset objects:
   // header, footer and item.

overrideCtx.Templates.Header =
    "<div class='WebpartBGColor'><div class='AnnouncementWebpart Webpart'><div class='WebpartHeader'><a href='<#=ctx.listUrlDir#>'><h3 class='Blue'><#=ctx.ListTitle#></h3></a>" +
    "<a href='<#=ctx.newFormUrl#>' id='AnnouncementWebpart' class='Links' ><span>"+ "CONTRIBUTE"  +"</span></a></div>" +
    "<div class='WebpartBody'><div class='ContentArea'><div class='SlideContent' id='Announcement'><ul class='ItemContent'>";

overrideCtx.Templates.Footer = "</ul></div></div><div class='row-fluid AnnouncementWebpartFooter'><div class='ArrowBlock' ><a class='Prev'></a><a class='Next'></a></div></div></div></div>";

 // This template is assigned to the CustomItem function.
overrideCtx.Templates.Item = CustomItem;
overrideCtx.BaseViewID = 1;
overrideCtx.ListTemplateType = 104; //Announcements list template id

 //  Register the template overrides.

SPClientTemplates.TemplateManager.RegisterTemplateOverrides(overrideCtx);

})();

/*
 * This function builds the output for the item template.
 * Uses the Context object to access announcement data.
 */
function CustomItem(ctx) {

    if(!ctx.BasePermissions.ManageLists)
    {
      $(document).ready(function(){

      $('#AnnouncementWebpart').addClass('Hide');
     });
    }
 
    var cUrl = window.location.href;
    // Build a listitem entry for every announcement in the list.
    var ret = "<li><div class='row-fluid'><div class='span4'><a href=" + ctx.listUrlDir + "/DispForm.aspx?ID=" + ctx.CurrentItem.ID +
              "&Source=" + cUrl + ">" ;
           
              if(ctx.CurrentItem.AnnouncementImage.indexOf("img") > 0)
              {
             
                ret = ret +"<div class='Image'>" + ctx.CurrentItem.AnnouncementImage+ "</div></div></a>";
              }
              else
              {
           
                ret = ret + "<div class='Image'>" + "<img src='/Style Library/images/DefaultImage.png' />" + "</div></div></a>";
              }
              ret = ret + "<div class='span8'><div class='Title'>" + ctx.CurrentItem.Title+ "</div>" +
           
              "<div class='ReadmoreLink'><a href=" + ctx.listUrlDir + "/DispForm.aspx?ID=" + ctx.CurrentItem.ID +
              "&Source=" + cUrl  + ">" + "Read More..." + "</a></div></div></div></li>";
           
return ret;
}



You need to have below css classes which are used in the above script. Copy below css  to your css file.

CSS:

.AnnouncementWebpart{
position:relative;
padding:12px 15px;
height:135px;
overflow:hidden;
}
.AnnouncementWebpart .WebpartHeader{
width:100%;
float:left;
margin:0px;
padding:0px;
}

.AnnouncementWebpart .SlideContent{
width:100%;
float:left;
height:100px;
overflow:hidden;
margin:0px;
padding:0px;
}


.AnnouncementWebpart li{
height: 100px;
display:none;
}

.AnnouncementWebpart .Image{
width:30%;
height:110px;
float:left;
}

.AnnouncementWebpart .Image img{
width:100px;
height:100px;
border:1px #ccc solid;
}

.AnnouncementWebpart .Title{
color:#333 !important;
width:70%;
height:60px;
overflow:hidden;
float:left;
overflow:hidden;
}

.AnnouncementWebpart .ReadmoreLink{
width:70%;
float:left;
}

.AnnouncementWebpart .ReadmoreLink a,
.AnnouncementWebpart .ReadmoreLink a:link,
.AnnouncementWebpart .ReadmoreLink a:active,
.AnnouncementWebpart .ReadmoreLink a:visited,
.AnnouncementWebpart .ReadmoreLink a:focus,
.AnnouncementWebpart .ReadmoreLink a:hover{
color:#0088cc !important;
}

.AnnouncementWebpart .WebpartFooter {
position:relative;
width:55px;
height:25px;
right:9px;
margin-top:-20px;
float:right;
text-align:right;
z-index:9999;
}

.AnnouncementWebpart .WebpartFooter a.ButtonLeft{
display:block;
float:left;
height:25px;
width:25px;
cursor:pointer;
background-image:url('../../../../../Style%20Library/images/LeftIcon.gif');
}
.AnnouncementWebpart .WebpartFooter a.ButtonRight{
display:block;
float:left;
height:25px;
width:25px;
cursor:pointer;
background-image:url('../../../../../Style%20Library/images/RightIcon.gif');
}
.AnnouncementWebpart .WebpartFooter a{
border:0px;
}


To use this script you have to create an announcements list. In that create a publishing image column named 'AnnouncementImage'. Using the above script i have branded announcements list view to a customized view with scrolling of all announcements having right and left arrows and having 'CONTRIBUTE' link to add the announcements, which can be visible if user having sufficient permissions to add announcement.

Add items and images in to announcements list and perform following activities to achieve the above context.

Add announcements list view web part on to a page

Add announcements list view web part on to a page. Make sure the list is created using announcements list template.

Upload the js file having above script in to style library

Upload your js file to style library or you can upload to some other location in sharepoint site.

Add the js file path to JS link reference of the list view web part

To add js file reference, edit the list view web part and in tool pane properties JS Link field add your file path.

If your file is at site collection level then use ~sitecollection to represent your site collection url or if is at your site level use ~site.

Associate the css file having above classes to the page

You can add your css into common css file of master page or else you can have a separate css file and associate that to this page.


Now we are done! You can see a different look of Announcements list view web part on the page.

Thanks!!!


Friday, March 13, 2015

What is List Defination in SharePoint and how to Create List Defination using Visual Studio ?


Hi Friends,

Thanks for visiting my blog...

   Today , I would like  to Post an about List Defination in SharePoint 2013

1. What is List Defination ?
2. Why  we need to list Defination ?
3. How to Create List Definition using  Visual Studio


 List Definition 

A list definition includes a Feature.xml file, an element manifest file (see List Template Files), and a Schema.xml file within a Feature folder (%ProgramFiles%\Common Files\Microsoft Shared\web server extensions\15\TEMPLATE\FEATURES).
 
A list template Feature includes a Schema.xml file that serves as the base file for a list definition. The List element is the root element of a Schema.xml file, which contains default view definitions, definitions for special fields used in the list, the toolbar definition for list views, content type declarations, and other metadata for the list.


Why we need List Definitions?
We need to have List Definitions for creating multiple list instances from it. This is the best way if we are dealing with data capture of same column types.
The built-in list definitions of SharePoint serve the same purpose. Example: Contact List, Task List, etc. Similarly depending on your project domain, it might be a good idea to turn common list formats into list definitions so that you can create multiple instances easily.
For example: a Computer Configuration list definition could be created for later creation of actual lists like Desktops and Laptops.

 How to Create List Definition using Visual Studio  
 
In Visual Studio 2012 select File | New Project
Select Templates | Visual C# | Office/SharePoint | SharePoint 2013 – Empty Project

If you don’t see this type of project available then you may need to download and install the Microsoft Office Developer Tools for Visual Studio 2012
Provide a name and location for the project/solution and OK
In the SharePoint Customization Wizard Prompt, configure the server to use for developing/debugging. If possible you will want to try and achieve a Sandboxed solution over a Farm Solution due to it’s ability to be able to be reused in more scenarios requiring less permission is the SharePoint environment.

Once the new solution has been created, we can use the new Visual Designer to create the List Definition. Right click the project in the solution explorer and select Add | New Item


Select Visual C# Items | Office/SharePoint | List, provide a name and click OK


Provide a display name for the list. We just want to create a list definition, not an instance of the list; This isn’t an option so what we do instead is go with the “Create a customizable list template and a list instance of it” and we will make some mods to the generated project files to remove the list instance so we are just left with the definition.



You should now see the list instance and definition files in solution explorer.

If you select the SettingsProfile in the solution explorer you will get the new List Visual Designer. Notice the “List” tab, this represents the instance of the list.


Since we only want the list definition, we are going to delete the list instance files from solution explorer. Select SettingProfileInstance, right-click and Delete.


You should now be left with just the list definition, the “List” tab will now be greyed out.

 Deploy the Solution in  your targeted web application .

 You Can able  to see the list names in quick launch

Thursday, March 12, 2015

What is Managed meta data service in SharePoint 2010, 2013 and how to Configure it?



Hi Friends,

Today , I would like to post  about Managed Metadata Service in SharePoint 2013.
Managed Metadata is a hierarchical collection of terms that can be associated with items in SharePoint 2010. We can use Central Administration website to manage these terms.

 Managed Metadata Service.
 The managed metadata service application makes it possible to use managed metadata and share content types across site collections and web applications.
A managed metadata service publishes a term store and, optionally, content types; a managed metadata connection consumes these. This article describes the managed metadata service and connections, and provides an example scenario for using them.

Metadata  
 Metadata is information about information. For example, the title and author is metadata about the book. Metadata can be many kinds of information -- a location, a date, or a catalog item number. When you use SharePoint products, you can manage the metadata centrally. You can organize the metadata in a way that makes sense in your business and use the metadata to make it easier to find what you want. 

 This is a new feature introduced  in SharePoint 2010.

Example: You have a document library to upload chapters. For each item you can specify a column metadata of category like CSharp, ASP.NET etc.


Why is the Purpose?

So you might be wondering that there exist list columns for the same purpose.
Following are some advantages provided by Managed Metadata:
1. Term Sets can be shared across a site collection or globally
2. Searching using Metadata gives more relevant result
           
                       Some Concepts inside Managed Metadata


 
Term: A term is keyword that can be associated with a SharePoint item.
Term Set: A term set is a group of terms. You can restrict that a particular item should contain a term from a particular term set. For example: setting the category of an chapter item from term set [c#, asp.net]
Local Term Sets: Site collection scoped term set. Only site user can see it.
Global Term Sets: Global Term Set created outside the site collection. They are visible to all users.
  
Managed Metadata Service
 The metadata is managed through Central Administration and using the Service Application Managed Metadata Service.

Practical

So now we can proceed to see how to setup Managed Metadata and use it along with a Document Library. Following are the activities involved:

1. Setup Term Store Administrator
2. Setup Term Set and Terms
3. Set Managed Metadata Column

How to configure managed meta data service?

We can configure the managed meta data service in central administration. 

Central Administration--> Application management-->Manage service applications 



In Manage service applications, add new managed meta data service as shown in the image below.


Add Name, Database name, Application pool name details in the popup as shown images below.

Name: Name of the service.
Database name: Name of the data base for the service.
Application Pool: Application pool to run the service.


Followed screen

  Managed meta data service will be created in the service applications. 

Check managed metadata web service is running in the services (Application management--> manage services)


After creating managed meta data service, we need to check the following properties (Managed meta data service--> Properties(top ribbon))



Default Keyword location: To store new enterprise keywords in the keyword set associated term store in the managed meta data or not.


Default term set location: To store term sets, while creating managed meta data site columns in managed meta data term store.


Use Content Types: This option will available only if the service has hub defined to share content types. This option need to select when to make content types that associated managed meta data service available to users of sites in the web application.


Push-down Content Type Publishing updates from the Content Type Gallery to sub-sites and lists using the content type: This option need to select when update the existing instances of the changed content types in sub-sites and libraries.


Check the permissions for managed meta data service (Select the service--> click on Administrators (top ribbon)), assign administrator to the service as shown the images below.


 Select the Service and click on Administrators in ribbon.


By clicking on the managed meta data service, it will redirect to managed meta data screen as shown in the image below. There we can create new groups, term sets and terms.



 
 RC on Managed Meta data Services


Give Name as Courses
 

Right Click on Courses



Create a List Column 






New Form 



Select the course Details



Now you can Able to see the  Course details


finally , we have configured the managed metadata service and used in the list .

 Hope  you like this post...