Through this blog, it is my effort to share experiences with the community and make the journey enjoyable.

Sunday, October 05, 2008

SharePoint Custom View Actions

Posted a new article on CodeProject to add two new actions on Toolbar for SharePoint lists.

http://www.codeproject.com/KB/sharepoint/customviewactions.aspx.


Although, both of these functionalities are available out-of-box, but having these links on the toolbar itself, improves user productivity.

With respect to technical implementation -

  1. For action 'Creating new view, replicating existing view' : Used out-of-box application page 'viewnew.aspx'.
  2. For action 'Delete current view' : Added new application page and deleted the view using SharePoint Object model. However, discovered a issue with SharePoint object model. While deleting the view with object model, there is no check for default view. It deletes the default view also, which removes the list from the Quick Launch bar. Out-of-box Microsoft functionality, is making 'Delete' button visible true or false, on the frontend for ViewEdit.aspx, but it is not checked at the API level.

    For this custom action, I have checked for the default view, and changed the 'Action' Text accordingly.

Share:

Search This Blog

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway. All posts are provided "AS IS" with no warranties, and confers no rights. In addition, my thoughts and opinions often change, and as a weblog is intended to provide a semi-permanent point in time snapshot you should not consider out of date posts to reflect my current thoughts and opinions.

Popular Posts

Total Pageviews

Blogger Tutorials

Blogger Templates

Sample Text