One way to do this is to create a feature with an event receiver. When a user creates a list, you can check if the list is of the proper type (101), and then add new views to it. The feature could also add this view to existing document libraries on activation. Shouldn't be too much of an effort. The view is not truly global. As list definitions are duplicated for each instance, there are no such thing as a global view (afaik) in WSS. We could all hope that views are a part of content type in the next version.
+2
A:
Øyvind Skaar
2009-02-09 06:09:12
I'm still newbie in Sharepoint, so I'll google more about event receiver :D But, if the view itself isn't a global one, can it be applied to the new doc lib? I'm not asking about the doc lib creation. As for the doc lib creation is triggered from CRM plugin. How to make a view that is global?
cyrene
2009-02-09 07:09:34
Its not truly global, the view would be added to new document libraries as they are created, but changes to the view would not update document libraries that are using a previous version (without extra coding).
Jason
2009-02-09 08:03:43
+4
A:
You could also create a new custom document library type, with the view embedded in it. Whenever a new library is created from the new doc lib type, it will get the new view.
This is still a not truly "global" view, and you may have the same problems if the view gets changed (the view won't be updated on document libraries that have been created with previous versions of the view).
Jason
2009-02-09 08:07:10
nice suggestion :D I made that doc lib as a template, then tried creating doc lib from that template. It had the view I wanted! Thanks :D And now I have to find out how to create doc lib from the template by code, using the web services. If it is applicable, your suggestion is the solution I need :D
cyrene
2009-02-09 08:31:18
http://andrewconnell.com/blog/archive/2009/02/08/A-Quicker-Way-to-Create-Custom-SharePoint-List-Templates.aspx
Nat
2009-02-09 21:44:52