wss-3.0

How to get currently adding item to SPList from SPItemEventProperties inside event handler?

只愿长相守 提交于 2020-01-24 09:37:27
问题 I'm using ItemAdding Event for one of my SPLists. The question is how I can get the new not yet added item from SPItemEventProperties? I've tried to ListItem.Item but the debuger shows that the property is set to Nothing. Any correction suggest? Best Regards T.S. 回答1: Ihe ItemAdding event fires before a recored is actually added so you can't access the fields using .Item. However you can access everything apart from ID (as its still not been created yet) in the .AfterProperties hash table.

How to get currently adding item to SPList from SPItemEventProperties inside event handler?

孤街浪徒 提交于 2020-01-24 09:37:11
问题 I'm using ItemAdding Event for one of my SPLists. The question is how I can get the new not yet added item from SPItemEventProperties? I've tried to ListItem.Item but the debuger shows that the property is set to Nothing. Any correction suggest? Best Regards T.S. 回答1: Ihe ItemAdding event fires before a recored is actually added so you can't access the fields using .Item. However you can access everything apart from ID (as its still not been created yet) in the .AfterProperties hash table.

What is a proper way to store site-level global variables in a SharePoint site?

旧巷老猫 提交于 2020-01-09 11:12:23
问题 One thing that has driven me nuts about SharePoint2007 is the apparent inability to have defineable settings that apply specifically to a site or site collection itself, and not the content. I mean, you have some pre-defined settings like the Site Logo, the Site Name, and various other things, but there doesn't appear to be anywhere to add new kinds of settings. The application I am working on needs to be able to create multiple kinds of "project site collections" that all follow a basic

WSS GetListItems Not Returning Folders without Inherited Permissions when Calling with GUID

我与影子孤独终老i 提交于 2020-01-06 16:33:27
问题 WSS 3.0 List Service I am running GetListItems() on a Picture Library (name Pictures) using the follow CAML query: <Query> </Query> <ViewFields> <FieldRef Name="EncodedAbsUrl"/> <FieldRef Name="Title"/> <FieldRef Name="ContentType"/> </ViewFields> <QueryOptions> <Folder>Pictures\Uploads</Folder> <ViewAttributes Scope="RecursiveAll"/> </QueryOptions> This query correctly returns all files and folders in the Uploads folder. However, if I navigate to the Uploads folder and select Edit

Deploying SharePoint Solution using VSeWSS

懵懂的女人 提交于 2019-12-25 13:17:10
问题 I have a development WSS 3.0 site that I wanted to move to a Production server. I am using VSeWSS 1.2 to do my deployment. I generated the SharePoint solution of the site with SharePoint Solution Generator 2008. When deploying it locally it works fine, but when I tried to deploy it to the remote Production server it would not deploy. I then had to install VS and the VSeWSS on the Production server and deploy from there because of time constraints. I have seen references where the generated

Edit only owned list items in Windows Sharepoint Services 3.0

只谈情不闲聊 提交于 2019-12-21 05:40:45
问题 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? 回答1: WSS has a basic UI for setting item-level permission on list

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

家住魔仙堡 提交于 2019-12-20 02:39:20
问题 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. 回答1: 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

Read/Write from/to Hierarchical Object Store - SharePoint 2007

旧街凉风 提交于 2019-12-19 04:40:09
问题 I've created a custom timer job which has requires some configurations to run. I'm trying to save the configurations as an SPPersistedObject in hierarchical object store. Hierarchical object store is saved in the SharePoint configuration database and hence I'm getting 'Security Error' while trying to save it with a SPWebApplication as the parent. I've even tried elevating the privileges but it dint help because it is just the application pool account for the current web application and it is

Call long running operation in WSS feature OnActivated Event

*爱你&永不变心* 提交于 2019-12-13 04:11:10
问题 More specifically - How do I reference SPContext in Web Service with [SoapDocumentMethod(OneWay=true)] ? We are creating a feature that needs to run a job when a site is created. The job takes about 4 minutes to complete. So, we made a web service that we can call when the feature is activated. This works but we want it to run asynchronously now. We've found the SoapDocumentMethod's OneWay property and that would work awesomely but the SPContext is now NULL. We have our web services in the

Dynamic service reference in Silverlight

落花浮王杯 提交于 2019-12-11 17:30:44
问题 I'm building a Silverlight application that interfaces with SharePoint Web Services. In a windows forms application I'd create a web reference to my local SharePoint server, then change the Uri of the reference at runtime to point to whatever SharePoint site I wanted to use. Silverlight doesn't seem to have web references, but similar functionality can be achieved with service references. However, there doesn't seem to be a way to change the Uri of the reference at runtime. Is there a way to