sharepoint-2007

Why does my SharePoint workflow fail when the client is running Vista or Windows 7?

◇◆丶佛笑我妖孽 提交于 2019-12-25 00:33:52
问题 I have a similar situation to this question. I have a custom sequential SharePoint workflow, deleoped in Visual Studio 2008. It is associated with an InfoPath form submitted to a form library. It is configured to automatically start when an item is created. It works sometimes. Sometimes it just fails to start. Just like the question linked above, I checked in the debugger, and the issue is that the InfoPath fields published as columns in the library are empty when the workflow fires. (I

Layouts directory in SharePoint 2007

浪子不回头ぞ 提交于 2019-12-24 19:31:10
问题 I have MOSS 2007. I can't find any _layouts directory. Do I have to create it or do some configuration? I need it because I have to add a JavaScript (.js) file to it according to this link: http://weblogs.asp.net/wesleybakker/archive/2009/03/05/select-multiple-list-items-in-sharepoint-feature.aspx Edit: For me - C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12 directory has only one folder called bin. There is no layouts directory. Where is it? 回答1: THe _layouts folder

'Activate feature' step error :Object Reference not set to an instance of an object

与世无争的帅哥 提交于 2019-12-24 17:07:16
问题 I created a custom timer job and implemented it through a feature event in sharepoint. when i tried to activate it, its showing this particular error: Object reference not set to an instance of an object. at TimerJobExample.MyFeatureReceiver.FeatureActivated(SPFeatureReceiverProperties properties) in C:\Documents and Settings\admin-shuklag.INFRADEV\My Documents\Visual Studio 2008\Projects\TimerJobExample\TimerJobExample\MyFeatureReceiver.cs:line 22 at Microsoft.SharePoint.SPFeature

Pass 2 parameters to Silverlight control from SharePoint web part project into Silverlight application

心不动则不痛 提交于 2019-12-24 10:38:35
问题 I have 2 parameters defined in SharePoint web part project, meant to be passed into Application_Startup() in a Silverlight application when a user selects from 2 combo boxes (browsable properties). Somehow the Silverlight control does not render when i load it on the SharePoint site. With 1 parameter passed in, the control displays without error. Any ideas? Syntax? Examples? App.xaml.cs: private void Application_Startup(object sender, StartupEventArgs e) { //testing string _setArticles = null

Specifying Item Level Permissions using Sharepoint List Event Handler but to a list on which user has Contribute rights

孤街醉人 提交于 2019-12-24 09:46:46
问题 I have a List to which users have contribute rights I have a Event Handler which changes the Item Level Permissions on adding or Updating events on list by 2.a CurrentlistItem.BreakRoleInheritance(true); 2.b and by adding users to that list Now above does not work if user who is adding has rights of contribute but works if users has full control. I think a solution could be to run these privileged calls by system admin user. How can i solve this problem , Please guide, Thanks. //Amit 回答1:

How to add existing field information to a newly added infoPath textbox?

☆樱花仙子☆ 提交于 2019-12-24 08:45:50
问题 How to pre-fill new fields in a InfoPath form base on the old fields, when I add a fields to a form. In my InfoPath form I have a field name called: "Description". Now I added another field called: "SummaryDescription". Which is suppose to take the first 10 words from the Description field. Even though I added field and the logic, the existing form data in SharePoint Database does not get modified. Edit @PatrickPitre Thank you very much for the quick response. I'm dealing with a web-based

Button Click event not getting fired in Webparts when inherited from other webparts

孤人 提交于 2019-12-24 08:45:29
问题 I have 3 Webpart namely WebPart-1.dwp, Webpart-2.dwp and WebPart-3.dwp. I have the following scenario: WebPart-1 : WebPart-2 (Inheritance) WebPart-2 : WebPArt-3 (Inheritance) WebPart-3 : Microsoft.SharePoint.WebPartPages.WebPart (Inheritance) If I load WebPart-1, all the web parts gets loaded correctly but the click event of the button on the WebPart-3 doesn't get fired. My WebPart-3 code looks like: protected override void CreateChildControls() { base.CreateChildControls(); m_MessageLabel =

Solving Assembly not Found | FileNotFoundException | Fusion Log

前提是你 提交于 2019-12-24 02:48:37
问题 I am trying to deploy my solution package (wsp) to SharePoint 2007 environment. The WSP contains a feature which loads the feature receiver class to deploy a timer job at run time. While deploying this WSP, I am consistently getting Feature 'fb631f6c-2c46-4ab5-b7b3-f3d0c949c5f0' could not be installed because the loading of event receiver assembly "XXX, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bad6857072694970" failed: System.IO.FileNotFoundException I have double checked everything

Sharepoint 2007: Create a multi-line text custom property for a custom field type?

别来无恙 提交于 2019-12-23 19:31:01
问题 I'm trying to extend the built-in Choice field type to include another piece of data: a correct answer. With this, users would be able to create their own tests directly within Sharepoint instead of having to use InfoPath or some other convoluted solution. I was hoping to just inherit the existing SPFieldChoice type and add one more custom property to hold an integer representing the correct answer from the choices entered. I've got a FieldTestQuestion class that inherits from SPFieldChoice

Default All Day Event to Check/Yes

爷,独闯天下 提交于 2019-12-23 01:52:55
问题 Thanks for the great help. Another question. How do I set my "All Day Event" field on the calendar to default to "Checked/Yes?" If we can set the default on All Day Event to Yes, is there a way to hide the time fields (keep the date fields - just no time fields)? I'd also like to hide the "Workspace" field as well (if possible). Thank You Dave M 回答1: If you have access to run code on your server, I've run this from a console application and it worked like a charm: using(SPSite site = new