How to add view to schema.xml in sharepoint

I am trying to add a view to a custom list. The goal is MOSS 2007, I am using VS2008 with VSeWSS 1.3. The function already has its own list definition, including a custom view called Calendar. For starters, I thought I was creating another view called NewCalendar, which is simply a duplicate of an existing custom calendar.

So, I copied Calendar.aspx to NewCalendar.aspx, copied the existing “View” node for the current calendar and pasted a new node, and then changed the following attributes of the new node: DisplayName, Url and DefaultView.

When I update WSP View NewCalendar.aspx appears. When I deploy and go to NewCalendar.aspx, I get 404. Using SharePoint Manager, I confirm that the page is missing.

How to add a custom view through a function so that it appears in the "View" drop-down list?

UPDATE: it works if I create a new instance of my user list. How to get a custom view for existing listings?

+5
source share
1 answer

Unfortunately, functions do not have retroactive effect at all. You cannot update a function and expect all existing elements created from this function to be updated. This is what I suggest by design. If it were possible, it could have far-reaching (unexpected) consequences.

senario script script .

+2

All Articles