Friday, December 18, 2009

Restrict document library from uploading and opening in Explorer view

Are you trying to restrict sharepoint users from adding files to the sharepoint document library via, Upload document option and  using 'Drag and Drop' after opening in Explorer view.


You can acheive this by just adding some javascript codes to the page.


So heres how it can be done ...........

  • Open the document library where you want to restrict the upload and open in explorer view option.



  • Add a Content Editor Webpart to the page.



  • In the tool pane of the CEWP - Source Editor.- Add the below javacript codes.



  • Delete the explorer view of document library. 




   You are done with what you were looking for



 


Tuesday, December 8, 2009

Export to excel

IF you find export to excel not working in any version of sharepoint installed then try out this noce solution which helps you out.

Download- Run - Activate , you are done to use the feature.

Download it from : http://www.vana.in/Pages/ExportToExcel.aspx

Tuesday, November 3, 2009

Who deleted the site/list/library

Hi All,

I was asked by many queries how to find the person who deleted the site, list, library. list column etc... in a sharepoint site.

Today i found the solution.

Configure your IIS logs for all the sites on Hourly basis at IIS - website - Right click - properties- Website - Enable logging - properties ( assgin an easy path) -Advanced- Hourly.

TO find th eperson who deleted, find the edit page in the IIS logs and find the name added to it.......

site >> "/_layouts/deleteweb"
list >> "/_layouts/editpage"
list column >> "_layouts/FldEditEx.aspx" etc....

Thursday, October 15, 2009

Archive contents from Team Discussion

Steps : To archive the contents from the Team Discussion

1. Open 'Team Discussion'
2. Create a new view from 'Settings' - New View
3. In 'Columns'- Check the 'Body' field- OK
4. Open the newly created view and from 'Actions' select 'Export to spread sheet'.
5. Open the file in Excel and save it to your archive destination.

Note: The above steps will not save any attachments in the mails, For archiving the attachments.

1. On you computer - Open 'My Network Places'.
2. Under 'Network Tasks' click on Add a network place
3. Click 'Next'- Select Choose another service provider option - Next
4. Add the above url of the 'Team Discussion' as network address- Next
5. Give a new name - Next - Finish
6. A new web page will be opened with Folders for each mail.
7. Select the folders with the attachment and save them. ( The folders name will be same as the subject of the mail)

Wednesday, September 9, 2009

Update Global Navigation Link

I was looking for a way to update the global navigation breadcum in a sharepoint site and doesn't found any valid solutions.
Today i got a chance to refer a white paper  published by microsoft which gives the steps which many may have noticed.









You can edit the portal site link at

Site Action site settings --> Under Site Administration -->Portal Site Connection.


Cheers!

Wednesday, July 1, 2009

Remove #NUM from the list data difference

To remove the #NUM from the resilt of taking difference between two sharepoint column values.

Here is a scenario :

There are two dates , date1 and date 2

date 2 - date1 will give result if date 2 is after date1, if not it will give the result #NUM

This can be resolve by using this formula :

=IF(ISERROR(DATEDIF(Date1,Date2,"d")), -DATEDIF(Date1,Date2,"d"))

If the difference between the two dates is negative ( ie, Date1 - Date2 = -ve value ) then it will return -(Date2-Date1)

for eg : 2008/02/02 - 2008/02/01 will give 1 as value, but 2008/02/01 - 2008/02/02 will give #NUM as result normally, but the above calculated will give -1 as result.

Cheers!!

Tuesday, June 23, 2009

Calculate age in sharepoint list

Hi All,

i started trying to answer a question in mocrosoft forums which has gone a long way today and this is my third editing of the post.

How to calculate age in a sharepoint list with only date of birth available.

it can be done with the formula listed below :

=FLOOR((DATEDIF(DOB,Todaydate,"d")-(ROUND(((YEAR(Todaydate))-YEAR(DOB))/4,0)))/365,1)

Now i will explain what the fields are:

DOB- date of birth Field in the sharepoint list.
Todaysdate - gives you the date today but need to carry difficult step to get it. you cannot get todays date directly anywhere in sharepoint list, thats sure.

i got it via, the steps given at :

http://abstractspaces.wordpress.com/2008/05/19/use-today-and-me-in-calculated-column/

now what the formula does :

First it takes the difference between todays date and DOB. then substracts the no of leap years from it, divide it by 365 and took a round value.

Cheers!!!