Tuesday 26 May 2015

We can store the hyperlinks in the list by creating hyperlink data type, but we will be giving the URL while store into list along with the description. When you try to access the URL using CSOM we will get the URL instead of the description
To get the description using CSOM here we find the way to get it.

clientContext = new SP.ClientContext.get_current();
var vList = clientContext.get_web().get_lists().getByTitle("your listname");
var camlQuery = new SP.CamlQuery();
camlQuery.set_viewXml(‘<view></view>’);
this.collListItem = vList.getItems(camlQuery);   
clientContext.load(collListItem);
clientContext.executeQueryAsync(Function.createDelegate(this, this. success),Function.createDelegate(this, thisFailed));


function success(){
try{
var listItemEnumerator = collListItem.getEnumerator();
while(listItemEnumerator.moveNext())
{
var linkDesc = currentItem.get_item('URLfieldname').get_description();
var html = '<a href="'+Link+'">'+linkDesc+'</a>';
 }
You can show your hyperlink description now instead of link by append it to div or any way you want.


Cheers

Wednesday 20 May 2015

We can store the images in the list, but we will be giving the URL of the image while store into list. When you try to access the image using CSOM we will get the URL instead of the image.
To get the image using CSOM here we find the path to get it.

clientContext = new SP.ClientContext.get_current();
var vList = clientContext.get_web().get_lists().getByTitle("your listname");
var camlQuery = new SP.CamlQuery();
camlQuery.set_viewXml(‘<view></view>’);
this.collListItem = vList.getItems(camlQuery);   
clientContext.load(collListItem);
clientContext.executeQueryAsync(Function.createDelegate(this, this. success),Function.createDelegate(this, thisFailed));


function success(){
try{
var listItemEnumerator = collListItem.getEnumerator();
while(listItemEnumerator.moveNext())
{
var Image = currentItem.get_item('Imagefieldname').get_url();
var html = <img src="'+ Image+’”;
 }
You can show your image now by append it to div or any way you want.


Cheers

Saturday 16 May 2015

Permission Levels in SharePoint 2010

In SharePoint 2010, we will be having the different permission levels like list level, site level
The below tables will illustrate the permission level and little description.

List Permissions:

Permission Level
Description
Manage Lists
Create and delete lists, add or remove columns in a list, and add or remove public views of a list
Override Check out
Discard or check in a document which is checked out to another user.
Add Items  
Add items to lists and add documents to document libraries.
Edit Items  
Edit items in lists, edit documents in document libraries, and customize Web Part Pages in document libraries.
Delete Items  
Delete items from a list and documents from a document library.
View Items  
View items in lists and documents in document libraries.
Approve Items  
Approve a minor version of a list item or document.
Open Items
View the source of documents with server-side file handlers.
View Versions  
View past versions of a list item or document.
Delete Versions
Delete past versions of a list item or document.
Create Alerts  
Create alerts.
View Application Pageshttp://a1ml11690/_layouts/images/blank.gif
View forms, views, and application Pages. Enumerate lists.

Site Permissions:

Permission Level
Description
Manage Permissions
Create and change permission levels on the Web site and assign permissions to users and groups.
View Web Analytics Data
View reports on Web site usage.
Create Sub sites
Create sub sites such as team sites, Meeting Workspace sites, and Document Workspace sites.
Manage Web Site
Grants the ability to perform all administration tasks for the Web site as well as manage content.
Add and Customize Pages
Add, change, or delete HTML pages or Web Part Pages, and edit the Web site using a Microsoft SharePoint Foundation-compatible editor.
Apply Themes and Borders
Apply a theme or borders to the entire Web site.
Apply Style Sheets
Apply a style sheet (.CSS file) to the Web site.
Create Groups  
Create a group of users that can be used anywhere within the site collection.
Browse Directories  
Enumerate files and folders in a Web site using SharePoint Designer and Web DAV interfaces.
http://a1ml11690/_layouts/images/blank.gif
Use Self-Service Site Creation  
Create a Web site using Self-Service Site Creation.
View Pages  
View pages in a Web site.
Enumerate Permissions  
Enumerate permissions on the Web site, list, folder, document, or list item.
Browse User Information  
View information about users of the Web site.
Manage Alerts  
Manage alerts for all users of the Web site
Use Remote Interfaces  
Use SOAP, Web DAV, the Client Object Model or SharePoint Designer interfaces to access the Web site.
Use Client Integration Features  
Use features which launch client applications. Without this permission, users will have to work on documents locally and upload their changes.
http://a1ml11690/_layouts/images/blank.gif
Open
Allows users to open a Web site, list, or folder in order to access items inside that container.
Edit Personal User Information  
Allows a user to change his or her own user information, such as adding a picture.

Personal Permissions:

Permission Level
Description
Manage Personal Views
Create, change, and delete personal views of lists
Add/Remove Personal Web Parts
Add or remove personal Web parts on a Web part Page
Update Personal Web Parts
Update Web Parts to display personalized information





Tuesday 12 May 2015

Data View Web Part:

A Data view is a customizable view of data source(list), and it can be used to display data or write back data to a data source.

To create a data view web part , please follow the steps below:

Open the site in SharePoint Designer or Open the site and from the site actions click on Edit site in SharePoint Designer.



Then Open the page if you already created in your site or otherwise create your own.

How to create a page in SPD:

Open SPD and click on the “All files” in the site navigation (left panel)
Click on the “File” in the ribbon and select the type of page you want to create (like html, aspx...)
Name it and click to open the page
Then by click on the “Insert” tab from the ribbon select the “Empty Data view” 
Then “Click here for the data source” and select the list which you want to show as a data view.
Select the columns from the left panel and drag on to the data view
Use the options available in the ribbon inside the Options tab like filter, sort etc. (If you want any kind of sort or filter)
And click on save you are done with your data view
Open the page in the browser to see the web part. 





Monday 11 May 2015

Permission levels in SharePoint 2010

SharePoint has have default permission level in it where we can make use of those permissions for the security purpose. You can find these permission levels inside SharePoint by navigate to site settings page.

Site Actions --> Site Settings --> Users and Permissions --> Site Permissions

From the ribbon click on the permission levels you will find the permission levels

Here the details:

Permission Level
Description
Full Control
Has full control.
Design
Can view, add, update, delete, approve, and customize view and Pages
Contribute
Can view, add, update, and delete list items and documents.
Read
Can view pages and list items and download documents.
Limited Access
Can view specific lists, document libraries, list items, folders, or documents when given permissions.
View only
Can view pages, list items, and documents. Document types with server-side file handlers can be viewed in the browser but not downloaded.
Approve
Can edit and approve pages, list items, and documents.
Manage Hierarchy
Can create sites and edit pages, list items, and documents.
Restricted Read
Can view pages and documents, but cannot view historical versions or user permissions.

Happy Reading :)
All we know that there will be the items to view only for the respective people in the list. We can create a different view for the users. But creating view may lead to performance issue. So to avoid, we can make use of the SharePoint Designer. By writing the workflow we can assign permissions to the users.
Let find out the steps how we can achieve this functionality.
First create a list and add some items into the list.
Open the site in SharePoint Designer


From the Site Objects section click on the workflows and from the ribbon bar click on the List workflow icon and select the list name you created
Give the Appropriate name for the workflow, description also if you want.



Click on the Impersonation Step in the ribbon


Select the “Replace List Item permissions” option from the Actions in the ribbon



And by click on “these permissions” you can assign the permission levels to the users




Click on these permissions link and click on the ‘Add’ button and click on “choose” button to add the username and select the level of permission to that users and click Ok.



Finally you will get the below screen


  
Then save and publish the workflow

Create an item in the list by click on the item permissions in the item menu you can find the new permission levels to that item.   

Friday 8 May 2015

Here we can find the various library templates available in SharePoint 2010.If we know the requisite we can make use of the template to create library.

Template Name
Type
Category
Description
Asset Library
Library
Content
A place to share, browse and manage rich media assets, like image, audio and video files.
Data connection Library
Library
Data
A place where you can easily share files that contain information about external data connections.
Document Library
Library
Content
A Place for storing the documents or other files that you want to share. Document libraries allows folders, versioning and checkout.
Form Library
Library
Content
A place to manage business forms like status reports or purchase orders. Form libraries require a compatible XML editor, such as Microsoft Infopath.
Picture Library
Library
Content
A place to upload and share pictures.
Report Library
Library
Data
A place where you can easily create and manage webpages and documents to track metrics, goals and business intelligence information.
Slide library
Library
Content
Create a slide library when you want to share slides from Microsoft power point or a compatible application. Slide libraries also provide special features for finding, managing, and reusing slides.
Wiki Page Library
Library
Collaboration and Content
An interconnected set of easily editable web pages, which can contain text, images and web parts.
Here we can find the various list templates available in SharePoint 2010.If we know the requisite we can make use of the template to create list.


Template Name
Type
Category
Description
Announcements
List
Communication
A list of news items, statuses and other short bits of information
Calendar
List
Tracking
A calendar of upcoming meetings, deadlines and other events. Calendar information can be synchronized with Microsoft outlook or other compatible programs
Contacts
List
Communication,
Tracking
A list of people your team works with, like customers or partners. Contacts list can synchronize with Microsoft outlook or other compatible programs
Custom list
List
Blank & Custom
A blank list to which you can add your own columns and views. Use this if none of the built in list types are similar to the list you want to make.
Custom list in Datasheet view
List
Blank & Custom
A blank list which is displayed as a spreadsheet in order to allow easy data entry. You can add your own columns and views. This list type requires a compatible list datasheet ActiveX control, such as the one provided in Microsoft.
Discussion board
List
Communication
A place to have newsgroup-style discussions. Discussion board make it easy to manage discussion threads and can be configured to require approval for all the posts.
External list
List
Data
Create the external list to view the data in an external content type.
Import Spreadsheet
List
Blank & Custom
Creates the list which duplicates the columns and data of an existing spread sheet. Importing spreadsheet requires Microsoft excel and other compatible programs.
Issue Tracking
List
Tracking
A list of issues or problems associated with a project or item. You can assign, prioritize and track issue status.
Links
List
Communication, content
A list of web pages and other resources.
Project Tasks
List
Tracking
A place for team or personal tasks. Project tasks list provides a Gantt chart view and can be opened by Microsoft project or other compatible projects.
Status list
List
Tracking
A place to work and display a set of goals. Colored display the degree to which the goals have been achieved.
Survey
List
Data
A list of question which you would like to have people answer. Survey allow you to quickly create questions and view graphical summaries of the questions.
Tasks
List
Tracking
A place for team or personal tasks.

Here you can similar kind of information for the libraries also