views:

633

answers:

2

Hi,

I currently do some testings on the multipage meeting workspace template to check whether it fit our needs to be the base template for our projects.

As you might know, a multipage meeting workspace is designed to be able to manage several dates within a single workspace and to display either pages that are only related to a certain date or pages that should appear on every date.

If you examine a multipage meeting workspace with SharePoint Designer you can see that there is a library which contains all the pages of the workspace. Pages that are displayed on every date are stored in the root folder, pages that are only displayed on single dates are stored in folders which are named with the according date.

So now we come to my problem. In order to set the permission for a single page that is displayed on each date, I iterate over the page library to find the page I want to change the permissions on. Strangely, the ListItemCollection of the library pretend to contain the number of pages I expected it to contain. But when I then iterate over the collection it only returns the pages that are attached to the actual date. Neither does it return the pages which should be displayed on every date nor the pages for the other dates.

I have already tried to get the pages by using SPSecruity.RunWithElevatedPrivilges() and with impersonation as the system account. I've also tried to get them via a command line application without using any context information. It seems as the behavior, that you can only get the items which are related to a certain date, is also followed by the object model.

So how could I get all pages of a multipages meeting workspace regardless of the actual date???

A: 

Hi.

The pages for this kind of events get created only when a user tries to access them. This is by design, and the only solution I found was to try and access the page via the website (or some emulation) and then try to access them by code.

Regarding Flo's Comment, I fount the source for this on Microsoft Sharepoint 2007 Development unleashed (sams, ISBN 0-672-32903-4). on p 101 says:

CAUTION

Obtaining data from recurring meetings can be tricky. You might encounter situations in which your code attempts to access a list item for a meeting occurrence that has not yet been provisioned in the Meeting Series list. To ensure that the individual instance has been created, you can make a dummy web request to the instance’s home page, for example: http://server/sites/mymeeting/default.aspx?InstanceID=20061012

If you find another way, please post it It will save us lots of effort!!!

Nicolas Irisarri
Mh, I cannot imagine that this is really the only way to be able to access these files.
Flo
Flo, I just edited my answer, adding the source for my statement.Nicolas.
Nicolas Irisarri
Puh, that's really a little bit shocking. ;) I will update my post if I found another way.
Flo
+1  A: 
Janis Veinbergs