wss-3.0

SharePoint deployment, ghosted file returns 404

ぃ、小莉子 提交于 2019-12-11 04:19:54
问题 After deploying an upgrade to a particular feature which contains ghostable page template, the page starts returning a 404 response. In the SharePoint log, I get the following Cannot get ghost document: Features\FeatureName\SubFolder\PageName.aspx Unknown SPRequest error occurred. More information: 0x80070002 I am able to get the page working by going through SharePoint Designer and deleting the file, then deactivating/activating the feature on that site. I've attempted resetting the web to

SPWorkflowActivationProperties.Item is NULL in Simple SharePoint Workflow

我只是一个虾纸丫 提交于 2019-12-10 15:29:53
问题 I have generated a C# SharePoint Sequential Workflow project using the very handy STSDEV tool (it got me around the requirement to have access to a 32-bit SharePoint installation which is required for other tools such as VSeWSS 1.3). I've added a simple 'modify the title' action to test my basic setup: public sealed partial class CopyWorkflow : SharePointSequentialWorkflowActivity { public CopyWorkflow() { InitializeComponent(); workflowProperties = new SPWorkflowActivationProperties(); }

Filter a Sharepoint List based on current user's profile property

萝らか妹 提交于 2019-12-10 12:09:36
问题 How would you implement the filtering of a list in WSS 3.0 by a current user's profile property. Let's say there is a list with a Department column and I want that list filtered by the current's user department. 回答1: Repeated question: answer to your question 来源: https://stackoverflow.com/questions/2504132/filter-a-sharepoint-list-based-on-current-users-profile-property

SPFileVersionCollection - why versions are sorted in mixed order?

和自甴很熟 提交于 2019-12-08 16:27:03
问题 SPFileVersionCollection and SPListItemVersionCollection versioning seems inconsistent to me. Inconsistency wouldn't be a problem to me, but sort order is. SPListItemVersionCollection I can understand versioning of ListItems as they are stored in descending order: SPContext.Current.ListItem.Versions.Count -> 5 SPContext.Current.ListItem.Versions[0].VersionId -> 1026 (2.2 latest version) SPContext.Current.ListItem.Versions[1].VersionId -> 1025 (2.1) SPContext.Current.ListItem.Versions[2]

How to query the SPView object

本秂侑毒 提交于 2019-12-06 10:11:47
问题 I have a SPView object that contains a lot of SPListItem objects (there are many fields in the view). I am only interested in one of these fields. Let's call it specialField Given that view and specialField, I want to know if a value is contained in specialField. Here is a way of doing what I want to do : String specialField = "Special Field"; String specialValue = "value"; SPList list = SPContext.Current.Site.RootWeb.Lists["My List"]; SPView view = list.Views["My View"]; //This is the view I

How to query the SPView object

半世苍凉 提交于 2019-12-04 16:39:53
I have a SPView object that contains a lot of SPListItem objects (there are many fields in the view). I am only interested in one of these fields. Let's call it specialField Given that view and specialField, I want to know if a value is contained in specialField. Here is a way of doing what I want to do : String specialField = "Special Field"; String specialValue = "value"; SPList list = SPContext.Current.Site.RootWeb.Lists["My List"]; SPView view = list.Views["My View"]; //This is the view I want to query SPQuery query = new SPQuery(); query.Query = view.Query; SPListItemCollection items =

Edit only owned list items in Windows Sharepoint Services 3.0

馋奶兔 提交于 2019-12-03 20:59:27
Is there a way to limit the "edit item" permission in WSS 3.0 to only allow a user to edit his own documents or list items? We need the ability for a user to edit only documents/list items he creates - NOT items that someone else created. So, essentially we need a sub-set of the EDIT permission as well as ADD. Is this possible in Windows Sharepoint Services 3.0? Is there a way to create custom permissions in code or a feature? Abs WSS has a basic UI for setting item-level permission on list items, but they hide that from the UI for document libraries. If you go into Settings->List Settings-

How do I remove the “Personalize this Page” option in WSS 3 with feature code?

删除回忆录丶 提交于 2019-12-01 22:39:35
How can I remove the "Personalize this Page" option in WSS 3.0? I'd like to do it in code with a feature at the web application level if possible. It's a permission and can be accessed in the web UI of WSS: Site Settings > People and Groups (under Users and Perms) > Site Permissions (left quick launch bar) > Settings > Permission Levels Under each Permission Level there is a long list of permissions to include. At the bottom uncheck the items under Personal Permissions (mainly "Manage Personal Views"). I'm doing research on how to do it in code but our project requires custom user group

Programmatically instantiate a web part page in Sharepoint

丶灬走出姿态 提交于 2019-11-30 05:19:45
Is there a simple way to add a web part page to a Sharepoint site programmatically, using either the object model or web services? It seems straight-forward to create lists and add web parts in this manner, but I can't find an example of how to create a content page. Edit: For a plain WSS installation (not MOSS). I'm going to take the route that this isn't a collaboration/publishing site as this isn't mentioned and wss is in the tag list. Pretty clunky in comparison to using a publishing site... First choose the web part page template you'd like to use from: C:\Program Files\Common Files

Programmatically instantiate a web part page in Sharepoint

六眼飞鱼酱① 提交于 2019-11-29 03:28:03
问题 Is there a simple way to add a web part page to a Sharepoint site programmatically, using either the object model or web services? It seems straight-forward to create lists and add web parts in this manner, but I can't find an example of how to create a content page. Edit: For a plain WSS installation (not MOSS). 回答1: I'm going to take the route that this isn't a collaboration/publishing site as this isn't mentioned and wss is in the tag list. Pretty clunky in comparison to using a publishing