sharepoint2007

Error Modifying MOSS web part

Whenever I try to edit the shared properties of my custom web part in sharepoint 2007, I get the following error: Exception has been thrown by the target of an invocation. at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOw...

Sum up a calculated column's values for each user in Sharepoint 2007?

Hello, I've been looking around for quite some time, and I'm not entirely sure how to accomplish this in Sharepoint 2007. I'm trying to create a web part view that takes the entries of a particular data source, groups the entries by the user, and then sums up a calculated column from said source. I've found similar tutorials online ab...

DefaultAssetImageLocation property of RichImageField control does not work

I would like to have the "Look In" of the Asset Picker to default to the Site Collection Images for a given RichImageField. I tried using the DefaultAssetImageLocation attribute, but it doesn't seem to work properly. I found that unanswered post on msdn: http://social.technet.microsoft.com/Forums/en/sharepoint2010customization/thread/ba...

How do I stack duplicate custom list to master list in Sharepoint?

I have duplicate list and I would like that to have rolled up to master list. Any possibilities without using code? ...

how to get number of matched results of a query to SharePoint?

Hello everyone, I am using VSTS 2008 + C# + .Net 3.5 + ASP.Net + SharePoint Server Enterprise 2007 on IIS 7.0 with Windows Server 2008 Enterprise. I am currently using queryex web serivces API to get matched query results for a specific query. My question is, how to get the number of matched query results without returning the whole qu...

How to grouping questions into sections and create descriptions in Sharepoint 2007 Surveys

Hi all, I would like to create a SharePoint 2007 survey with an introduction and background to the survey; confidentiality note at the beginning of the survey. I would also like to group questions into sections such as Personal Details (for questions 1 - 6), Training Needs (for questions 7 - 10), Challenges (for questions 11 - 25), etc....

Scope of a feature activated Custom Sharepoint-Timer Job

Hey... So I'm developing a custom timer job for sharepoint using the SPJobDefinition. This job is activated through a feature receiver. As I understand it the SPJobDefinition runs on the web-application. if the feature scope is site or web based, is there any way code-wise to determine which site the feature is activated through in t...

Custom function for WSS 3.0 calculated columns

Is there any way I can add a custom function to WSS 3.0 that can be used in calculated fields? For example, I want to add a function that URL Encodes strings, so that the users can create columns with the URLs based on the other fields something like this: "http://www.test.com?fname="&URLENCODE([FirstName])&"&lname="&U...

Adding Validation to a Custom List Control in sharepoint designer

Hi, I'm trying to implement the requiredfieldvalidator asp.net control in sharepoint designer. I have dragged the control to the page and associated the control with the field in the tag properties editor by going to the controltovalidate property. I save and test the page. The field is blank yet does not show the validation alert. ...

How to sort Sharepoint discussion thread by the number of Replies

Since this isn't available OOB, I tried sorting the discussion list using Sharepoint Designer, converting "Replies" to number using XPath..but it sorts it like a string (e.g., 1, 10, 11, 2, 3, 4, 5, and so on...). How do sort by number of replies properly? ...

whether visual studio 2008 extensions available for sharepoint 2010?

In visual studio 2008 is have any plugines or extensions (executable file) for the sharepoint 2010 ...

About unit test, I want to ask that what kind of function/method we can use as unit testing object.

I am beginner of unit testing so I want to ask what kind of function/method we can use as unit testing object. I want unit test sharepoint code which written on C#. By the way, I don't ask about unit testing framework. I want to know that what kind of function I can use as unit test object. Ex: // function that return a value. ...

BDC Filtering in Sharepoint

I've created a BDC for Sharepoint 2007 to integrate data from a third party database. This all works fine but now I want to filter the search result depending on the current user. Anyone has a idea how this can be accomplished? ...

Activating custom sharepoint feature on forms authenticated web app

Hey guys. So I created a custom feature with a receiver. Everything works fine and dandy - under a windows authenticated sharepoint application. The same web application has been extended to include a forms based authenticated site. Activating the feature on this site gives me a 403 forbidden error. Can anyone help me out here? It's ...

SharePoint CreateWebPage.aspx is different for SharePoint 2010 and MOSS 2007

I am trying to upgrade a site from MOSS 2007 to SP 2010, but there is a document library which uses the CreateWebPage.aspx to create the pages in MOSS 2007. However, when I try to add an item to the library in 2010 version, I get a NullReferenceException, I opened the code of CreateWebPage.aspx in _layouts folder on the 2007 machine and ...

SPFieldUrl - doesn't always appear

Within my SharePoint list I use a field to hold a url and text, this is not a custom field, but its a standard SharePoint hyperlink field, SPFieldUrl type. When I set the SpFieldUrl Description and Url properties and save it to my list, on rare occations my data is never saved. How does this happen? Below is a sample of my code. Populat...

Set Sharepoint drop down list equal to value entered in text box

Hi all, I have a sharepoint list with several columns, one of which is a text box that is set to accept numbers. I would like to auto populate a drop down box based on the number entered into that text box. I am not very code-savvy, and so far all the answers I have found involve getting a number/value from a drop down box to insert i...

Programmatically Set the Title of a SharePoint Page?

Hi, I need to set the page title (Page Title) of a SharePoint page in code. I have already tested this.Page.Title = "My Page Title"; But this does not change the title when the page loads. Can anyone offer any advise on how to do this? Thanks, MagicAndi ...

SharePoint 2007 Designer: Read-only Date/Time disappears with Update Item

I have a simple workflow that creates a User and Date/Time stamp when the user checks complete = Yes. Everything works fine when the columns are unprotected, but when the columns are Hidden or Read-only, the Date/Time from the previous step disappears. I've tried Hiding the fields by managing site content, and by using SharePoint Boost...

How to Traverse SharePoint Wiki to Print Hierarchical Pages into One PDF or to a Printer?

I am not a Sharepoint programmer, I'll admit up front. But I'm a user, and I know if I find a solution online it'll be a lot faster than waiting for my I/S team to find it.... I am building a wiki with a main page and one level deep of subsidiary pages. (I don't want to debate if it should be a wiki or not... I'm looking for shared acce...