Mar 1, 2011

Showing Related List Items in List Display Form Sharepoint 2010

Hi,


This is a new feature came with sharepoint 2010 list. Here I am going to explain List Relations feature using the Lookup column and showing the associated list items of a list Item.

List 1 :  Groups

Columns : Title(Single line of text)

Add items in this List .

List 2 :   Students

Columns : StudentId (Single line of text)
                     Group (Lookup)

For column Group do the settings as below
Get Information from : Groups
In this Column :               Title
Check  Enforce Relationship Behavior checkbox
Select Restrict Delete (When an item in the target list is deleted, cascade delete will delete all related items in this list. Restrict delete will prevent the deletion of an item in the target list if it has one or more related items in this list)




Now add items to Students List.

Now we are going to show the associated List Items(students) of Group
Select Groups List à Select List In Ribbon àSelect  Modify Form Webparts and in that Select Default Display Form option(as shown below)



Then select the Insert Option in the Ribbon and Click Related List. You will see “Students”

Click Students.


Then the Students List Webpart with the heading “Related Items in Students” will be added to the page.




Now save the page. (Or Select Groups List).


Select a item in Groups list (eg : Electronics Engineering) , you will find the related students under that.







 
Enjoy Reading...

Feb 28, 2011

Twitter in SharePoint CEWP

Hi,

To get the twitter tweets/feeds in to your sharepoint do this simple work. Open your site and add a CEWP (Content Editor Webpart) to the page. And add the following java script in to that




script src="http://widgets.twimg.com/j/2/widget.js">< /script ( Here I have missed open brace'<' and closed brace '>'  to show script to you )

And write the below in the script tags

new TWTR.Widget({
version: 2,
type: 'profile',
rpp: 5,
interval: 6000,
width: 200,
height: 500,
theme: {
shell: {
background: '#F45C00',
color: '#ffffff'
},
tweets: {
background: '#000000',
color: '#ffffff',
links: '#4aed05'
}
},
features: {
scrollbar: true,
loop: false,
live: true,
hashtags: true,
timestamp: true,
avatars: true,
behavior: 'all'
}
}).render().setUser('SharePoint2010').start();


The source of the java script file taken from http://widgets.twimg.com/j/2/widget.js.

Note : Here the type of the display is Profile. And also u can show the list . HereI have set the value of the setUser property is Sharepoint2010(http://twitter.com/SharePoint2010) .Instead you can display your own feeds/tweets by giving your twitter account over there(ex:.render().setUser('purnamadugula').start();).Also you can show  the list and customize the user interface...

Here is the more information on this:

Source Links :

http://www.readwriteweb.com/archives/10_twitter_list_widgets_you_can_grab_embed_right_n.php
http://bombshelter.org/TweetCode.txt

Feb 25, 2011

Record Center in Sharepoint 2010

 Hi Guys,

In this post I am going to explain a basic level of the Record Management concept in Sharepoint 2010.Records Management by name itself “Managing the Records”. We can say It is an approach or a way to manage the records in a flexible fashion for further needs. For example I have 100 docs in my library, I need to send some of these docs to another specified location for archival purpose (like a storage).We will use this process to achieve this.
In Simple my aim is : I should be able to send my docs to another Location(Here Records Center).

Here are the steps to implement this

Here I am sending the docs in my Shared documents to Records Center




Select a document and click on Send To Option as below, You will not find any location(record center) to send

For  this I am going to create a site using Records Center template

Go to site Actions-->New Site-->Select Records Center

Give Title and Url
Title : MPC Records Center
Url : http://MyServername:port/MPCRecordCenter/default.aspx





The Record Center Creation is Now done.

I need to send my documents in Shared Documents to this Records Center. For this I need to set a communication path between these so go for

Central Administration-->General Application Settings-->Under External Service ConnectionsConfigure send to Connections


Then you will be redirected to Configure Send To Connections Page


Select the webApplication (where you have Shared document ), Check the Allow sites to send to connections outside the site subscription(if u need) and in Send To Connections

In Connection Settings section give the following

Display Name : give a display name what you want to appear when a document is selected “Send To” Menu option (Here I am giving MPCRecordsCenter)

Send To URL : Give the URL of the Records Center Which we have created earlier(http://MyServername:port/MPCRecordCenter/default.aspx)

Check the box allow manual submission from send to menu

Send To Action : Copy, Move, Move and Leave a Link

Here I am selected Copy (When I am sending (using “Send To” option) the document to record center I don’t want to remove from Shared documents. If you select Move it will be moved to Records Center and disappears in Shared documents)

Explanation : Just give a small desc..

Click on Add Connection Button. A connection will be established to the Document Library and the Record Center which we created earlier.

So go for our Shared Documents and click on a document (here Book3.docx) and select “Send To” option from the context menu. You will find the Record Center name (MPCRecordCenter) which we have created earlier


Click on it. It will pop up saying “Do u want to copy this doc to MPCRecord Center”. Click OK. A page will be opened with the status and Url of the copied document in Record Center. Click on that link (or Check the Record Center ‘s Drop-off Library , you will find this document.)

There are different methods and scenarios to manage the records using records center. Here I have explained just basic level of Record Management. For further information go to these links


Source Links: http://technet.microsoft.com/en-us/library/ee424395.aspx
http://blogs.pointbridge.com/Blogs/2010wave/Pages/Post.aspx?_ID=37
http://grounding.co.za/blogs/neil/archive/2008/03/04/setting-up-a-record-centre-in-sharepoint.aspx

 
Enjoy Reading..!


Rating Feature for Sharepoint 2010 Document Library


In 2010 a new feature is introduced for rating the documents in doc library..I will explain here how to rate the documents and what are things we need to set to get this feature...

Open the Document library(here my library name is BOOKS) which you want to set the rating feature.





Go for Doc Library Settings-->Rating Settings-->Select Yes under "Allow items in this list to be rated



Click Ok 
Then you will find the rating column in your document library as follows


Give Rating to the Docs(select the rating Stars.) You will notice that the rating will be applied.But upon refreshing the page ,the applied rating will be disappear.
This is due to By default the Timer Job(Social Rating Syncronization) related to this service is set to run for every hour. Instead if you want to change to minutes/some other you have to change the settings as follows

Central AdministrationàMonitoringà Select Review Job Definations


In that Select User Profile Service Application-Social Rating Synchronization Job



Then you will be navigated to the Timer Job Edit page
In Recurring Schedule section "This timer job is scheduled to run " Hourly by default. Change it to minutes (here i kept it to 2 mins)
 


Click on Run Now Button
Now go back to your document library  and give rating to a document




It works ..
 

Jan 15, 2011

Document ID Feature in Sharepoint 2010

Document ID:


This is a new feature in Sharepoint 2010.

There is some inconsistency in Sharepoint 2007 Document Management which are resolved by Sharepoint 2010.

In Moss
------------

1.There is no Unique ID for the Documents.

2.The Documents are referred by the location where they present(i.e if we want to retrieve the document in a library we need to give the path of the library and rootfolder etc etc).

So If we move this document to another location we need to change the path/code to retrieve it.

In Sharepoint 2010
--------------------------

1.Docuement contains Unique number.We can assign numbering in differnt formats.

2. Document keeps its UniqueId across sites,sitecollections and Webapplications too.

Implementation Steps:
1.Site Actions--> Site Settings--->Select Site Collection Features under Site Collection Administration category:
2.You will be able to see a Feature called Document ID Service. Activate it. Ref figue below.



3.Upload a document to the Document Libary and then you will find a new unique Document Id(Not the Id which reference to library). Refer below fig( I uploaded a document named TestMPC.docx to the Shared Documents)




Here the generated Document Id is : FZTVS7J5YPAK-1-30


4.Now you can get the document by using this Id instead giving the total path like(http://yoursite/xyz/Shared%20Documents/TestMPC.docx)

http://Yoursite/xyz/_layouts/DocIdRedir.aspx?ID=FZTVS7J5YPAK-1-30

5.Even if this Document moved to any other Folder or library we can retrieve this by using this URL only.

6.For Docuement ID setttings

Site Actions--> Site Settings--->Select Documnet ID settings under Site Collection Administration category:



You will find these options here

Assign Document ID's:- If we chek this All Existing and new Documents will get an Id.

Begin Id's with the following characters :- This is a 4-12 Id u can give here so that sharepoint will add this no at end . like -1,-2 etc

Document Id Look Up Search Scope:   If you provide a search scope here, If you search the docuement by entering its Document Id it will directly open the document instead showing search results.( Here In my site search is not configured)


Hope you liked !!

Oct 12, 2010

Getting the URL parameter in Javascript

Sample URL : http://mysite/sites/Demos/Training/PCM.aspx?ID=429

var paramID=GetValue('ID');

alert('Result ID '+paramID)

function GetValue(name)
{
   name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
   var regexS = "[\\?&]"+name+"=([^&#]*)";
   var regex = new RegExp( regexS );
   var results = regex.exec( unescape(window.location.href) );
   if( results == null )
     return "";
  else
    return results[1];
}

Oct 9, 2010

Developer Dashboard in Sharepoint 2010

What is Developer Dashboard ?

Developer dashboard in SharePoint gives developers the ability to monitor how well their code base is performing – on a page by page basis.

For instance – when enabled, at the bottom of every page you'll see a report of all the custom code that has ran on that page, as well as how long it took to run.

This becomes very valuable information especially when querying SharePoint content. You may have several web parts on one page all querying information from across your Farm, and the SharePoint developer dashboard helps you know how well each performs, which can help you identify if one is becoming a bottle neck for your whole page

The report shows the following information:

1. What controls loaded and how long each took to load

2. What specific database queries executed and the execution time of each

3. Events that were fired during the page load

4. Order of the page lifecycle and time during each stage

5. Requests with timings for each one.

6. Database queries and their response times.

7. Load times for each Web Part on the page and Pre-render time.

8.Number of Web server SPRequest(s) and their timing.

9. Any critical events.

There are two methods to initialize this tool to work on your sites. You can do this with your handy old stsadm.exe or with PowerShell.

Stsadm.exe (either set your path statement to read in the Bin Directory or navigate to c:\program files\common files\microsoft shared\web server extensions\14\bin)

Enter the following command
stsadm –o setproperty –pn developer-dashboard –pv OnDemand

In PowerShell

(Get-SPFarm).PerformanceMonitor.DeveloperDashboardLevel = "OnDemand"


The results will show you the following little icon on the top right corner of your page


Clicking on the icon circled with either display or hide the results. Scrolling down your page you will see the following results:



Ref links: http://www.spfoxhole.com/Blog/Lists/Posts/Post.aspx?ID=131