sharepoint

where are site features in sharepoint?

i want to add ASP.NET pages in sharepoint having the same theme, so i watched this video http://msdn.microsoft.com/en-ca/library/bb418732.aspx however, i found that in the video, they added something through site features "sample feature custom application page" which i cant find on mine. on my site features there is only "team collabora...

What are valid SPAlert EventTypeBitmask values?

According to many blogs on the internet when creating a SharePoint alert (SPAlert) from code you have to specify values for both the EventType and the EventTypeBitmask. However, I cannot find any explanation about the values of EventTypeBitmask. I created some alerts using the SharePoint web GUI and inspected the EventTypeBitmask values ...

sharepoint custom theme behaving oddly

I'm deploying a sharepoint theme as a feature. the theme contains my css and images etc. when i deploy the theme and activate it it doesnt work. i accidently got the theme to work by opening up the masterpage i created in sharepoint designer checking it out and saving it without making any changes. then deactivating and then reactivat...

SharePoint List calculations

I was wondering is there a way to have a column in share point that is a sum but only of the current column and the previous column Like this Title Value Total entry1 10 10 entry2 20 30 entry3 20 50 ...

How to prevent a mysite owner form deleting the MySite root website

Hi, I'm looking for a way to prevent a user in SharePoint from deleting his MySite or be more precise from deleting the MySite's root web site. If I could archive this, I could place some lists the user will also not be allowed to delete. I first thought about taking the user the right to delete sites but I think this will prevent him...

SharePoint: Writing to the search index directly via APIs.

I have a need to write directly to a SharePoint search index after loading a .tif file to a document library. We have a custom OCR process that works quite well for scanned images, however, we need to write the OCR results to the search index for a given document in SharePoint. I know that SharePoint has a crawler that indexes the files,...

Manually start SharePoint timer job

I'd like to invoke a timer job installed on a SharePoint server manually. What would be useful is something along the lines of an stsadm command. My scenario is, I've deployed a solution with a bunch of features to a customers server. I don't want to wait for the weekly schedule to kick a particular timer job to life. I would like to ju...

WSS 3.0 on Windows 2003 Server with Forms-Based Authentication 'File not Found' Error

Hi, We have WSS 3.0 running on Windows 2003 Server with Forms-Based Authentication. It has been running for months but now if I now try selecting ‘Register’ or ‘Forgot password’ I now get a ‘File not found’ error (looking for https: //www.....uk/_layouts/useradmin/register.aspx and https: //www.....org.uk/_layouts/useradmin/retrieve-pas...

Invoke an external WCF Service from a SmartPart in SharePoint

Hello fellow code monkies! Here is my situation: I have a WCF service that is hosted on IIS that connects to a DB and pulls data into a SmartPart on my MOSS 2007 Server. The reason for this setup is that my external DB has customer information that we dont want SharePoint to host because other applications/reports are using this data. ...

Lookup Field as a Site Column via CAML

I'm trying to create a Lookup Field as a Site Column via CAML. The list I want to use as the source of the lookup is created in the Feature Receiver so I don't know it's ID. I've read several blog posts that indicate that I can just put the path to the list in the List attribute. It seems from the comments on these post that this solutio...

Sharepoint 2007 AddList and AddListFromFeature are missing template columns and data content

What I've Done Inside SharePoint I created a List based on the Project Tasks template I deleted most default columns, and added new custom columns I added data using the new format Then I did a "Save as template" and chose to save the template with the content What IS Working Now, when I use that template to create a new List inside...

Can I easily add a "send to friend" or "email this" feature to a SharePoint list?

We want to make it easy for users to send a piece of content (say a Word Document) from an internal SharePoint site to someone else, similar to the "send to friend" feature you see everywhere, but actually sending the content, not just the link. Is this easily achievable with SharePoint? The answer "No" from someone reputable is an a...

Modifying a SharePoint Site Template's manifest.xml

I am trying to manually code some changes into my SharePoint Site Template. I can get the stp/cab file open and have added a new Element to the manifest.xml file, but when I repackage the stp and load it onto the server - the new site that I create using the updated .stp does not reflect the new link that I have added to the manifest.xml...

SPSite Directory Selection (C#)

I have a code that is running through all the Sites that we have created in SharePoint and finding the Sites that have documentation. When I create the SPSite object (?), I am defining a specific directory, but no matter what I seem to do, the script always runs through all the Sites in SharePoint, not just the sites in the specified dir...

How to start learning SharePoint

I'm a fairly experienced developer (.NET, C#, XML, Webservices, HTML, Javascript, various databases etc.) who have been tasked with a new project in SharePoint. I know nothing about SharePoint. My question is: What is the best way for an experienced developer to start learning SharePoint 2007. I'm not looking for long lists of books or w...

How to copy SPListitem from one SPList to Another SPList

I have requirement to copy items from one SPList to another, Here is the code which is not working: public void CopyList(SPList src) { //Copy items from source List to Destination List foreach (SPListItem item in src.Items) { if(isUnique(item.UniqueId)) { foreach (SPField field in src.Fields) { ...

Change browser levels in Sharepoint.

I have a very peculiar problem. I had written some custom columns for SharePoint. Recently, I found these custom columns break when I group the list items in SharePoint. Now the problem is peculiar because, these custom columns work perfectly in FireFox browsers, they break only in IE! After googling around for browser compatiblity i...

PageViewer WebPart won't load URL with GET parameters

Hi everyone. I need to show an external website in my SharePoint portal so I have added a PageViewerWebPart. But the URL includes login parameters like www.mywebsite.com?login=X&passwd=Y. I tried to add ASP code at the ContentLink PageViewer property like that : <WebPartPages:PageViewerWebPart runat="server" ContentLink="<% ="URL" %>"...

creating fields programatically in featureactivated

I need help creating a method that allows me to create a bunch of fields during featureactivated. C#. There are about 15 different fields, of varying types, and I'd like to be able to pass in all of the necessary attributes to create each field. Anyone have any sample code or guidance on this? ...

SharePoint KPI and Advanced Evaluation Expressions

Does any one know how to evaluate an empty item using the standard KPI creation form in SharePoint. For instance, I have a content type called "StaffPositions". The type defines the staff position title, salary for the position, when the position must be filled by and finally, has a cell (that can be empty) for an employee (Contact typ...