sharepoint-2007

Sharepoint Conditional fields in Edit.aspx

僤鯓⒐⒋嵵緔 提交于 2020-01-01 07:12:08
问题 I would like to display certain meta data fields in the edit form based on the value of a fields. Example: Users upload a document to the Doclib to be approved by there manager. They are allowed to change the meta data Name,Case No, Location until the item is approved by the manager. Once the item is approved I would like to set Name and Case Number to read only. What is the best way to meet this requirement? If approved = yes set Name and Case No = Read only Else do nothing. I have tried

How to create a daily summary alert for any change in a SharePoint site

时光总嘲笑我的痴心妄想 提交于 2020-01-01 05:41:12
问题 I recently got the requirement for a person to receive a daily summary alert for any change within a SharePoint site; each site has an owner who is in charge of the content on their site. The current way we have something working is to automatically set up alerts for every list/library within the site. // Get the Lists on this Site SPListCollection siteLists = currentSite.Lists; foreach (SPList list in siteLists) { if (!list.ToString().Equals("Master Page Gallery")) { if (list.ReadSecurity ==

Sharepoint: Calculated column based on another list

你说的曾经没有我的故事 提交于 2019-12-30 18:49:07
问题 I could be looking at the wrong way to do this, but here I go: I have a Sharepoint list (titled "Trips"), which has a list of trips scheduled to particular zones. I have a second list ("Zones"), which has a fixed number of items, each item representing a particular zone. Zones has a column titled "Condition" describing the roads in that particular area. Now... given that an item in Trips contains a reference to the Zone item where the trip is heading, I want to be able to "look up" the

how to create Tag Cloud in sharepoint?

心不动则不痛 提交于 2019-12-25 10:52:11
问题 How to create tag cloud in sharepoint2007. Is there any default designed tag cloud templates etc in Sharepoint2007?I want to show all the list items in a Tag cloud based on an integer value of that item. How to do this in Sharepoint? 回答1: Take a look at Nuage - Tag cloud for Sharepoint Nuage is a SharePoint solution which makes possible to tag items and display the tag cloud. Features: The "Tags" column can be added on any list (including document libraries) by site administrators Items can

access sharepoint group item columns

旧街凉风 提交于 2019-12-25 04:42:35
问题 if we want to access a sharepoint list and get data in a item we can access like this: foreach (SPListItem item in itemcoll) { string modified = item["Modified"].ToString(); } Similarly, to access a Sharepoint Group SPGroup programmatically, how to do this? I want the modified column value for each user who joined a spgroup. 回答1: Your question is about querying information of some user in some group. In particular you are interested in the "modified" date of the user or when he/she joined a

Getting the SPWeb for a SPAuditEntry

℡╲_俬逩灬. 提交于 2019-12-25 03:32:35
问题 I'm currently building an app that will parse all of the Audit entries in a site collection and send out a pretty email to users. My problem is that the emails should be based on a particular web (essentially an email summarizing the changes that happened to each subsite). Apparently, there is no information in the SPAuditEntry object about the web it came from except for the DocLocation property. This means I can get any of the following DocLocations (ItemType = Document, Event = Update):

SharePoint WebParts MVP Pattern

限于喜欢 提交于 2019-12-25 03:21:33
问题 Can anyone explain how to implement MVP pattern for SharePoint Webparts when you have user controls (with dropdowns) and webpart properties (or even more editorparts). Thank you so much. 回答1: Treat the webpart controls and the webpart properties (including the data they store) as view code. You really don't want to persist any domain model information inside the webpart properties. This makes it easier to create a presenter interface the both the webpart property and webpart control views can

Timer Job not running

荒凉一梦 提交于 2019-12-25 03:11:57
问题 I created a custom timer job and deployed it into my development farm (MOSS 2007). The job runs fine. The thins is that after I deployed it to the QA farm. The status of the job says succeeded in central admin, but nothing happens. I added extra logging and nothing is being logged. I thought it was something with that specific timer job, so I created another timer job that just has an assert and displays a pop up when it runs. Again, it just in the dev farm but not in the QA one. In this case

SharePoint - checking Content Approval change status in event receiver

浪尽此生 提交于 2019-12-25 01:53:34
问题 I have a SharePoint list with Content Approval enabled. The business requirement is that once the new list item is approved it should stay approved despite further updates by any user. My first thought was to handle the ItemUpdating method, and if the corresponding before property is Approved then set the after property to Approved. This doesn't work however. In the ItemUpdating method the "Approval Status" column does not show up in properties.BeforeProperties or properties.AfterProperties.

Filenotfound exception while opening an SPSite object - x64

烈酒焚心 提交于 2019-12-25 01:44:14
问题 I've created a simple asp.net application to open a site and display the title of the corresponding web. But i'm getting FileNotFoundException while trying to open the site. The same code works perfectly when i run it in a console app. My spec Windows Server 2008 R2 x64, SharePoint 2007 x64, Visual Studio 2005 My target for the asp.net app is set to 'Any CPU'. As far as permissions is considered i've checked that the current identity using under which VS2005 hosts the asp.net app is having