sharepoint

Hiding site actions menu in moss depending on page

I am trying to hide the site actions menu from certain pages with our moss enviroment, specifically non-publishing pages. I was looking to use the SPSecurityTrimmedControl to achieve it, so in my masterpage I have: <Sharepoint:SPSecurityTrimmedControl runat="server" Permissions="ApproveItems"> <PublishingSiteAction:SiteActionMenu runat...

How do I delete a list view via the SharePoint API?

Seems simple enough, but there doesn't seem to be a delete method on the SPList object to remove a view, or a Delete() method on the SPView item itself. ...

How to store the content of an email (the email & attachments) in one file in SharePoint?

SharePoint is breaking the emails apart separating the attachments from the emails were sent into, resulting in multiple files where should be only one. Does anyone knows a solution around this issue? How to store an email and its content in one file in SharePoint? Thanks, ...

SPListItemCollection.GetDataTable() doesn't return all columns?

I ran into an issue when using the GetDataTable() method. I'm trying to return the default SharePoint column "FileRef" in my results to use. I include it in my SPQuery.ViewFields Query: <Where><IsNotNull><FieldRef Name='FileRef'/></IsNotNull></Where> ViewFields: <FieldRef Name='Title' /><FieldRef Name='Category' /><FieldRef Name='Fi...

Large file upload into WSS v3

I'd built an WSSv3 application which upload files in small chunks; when every data piece arrives, I temporarly keep it into a SQL 2005 image data type field for performance reasons**. Problem come when upload ends; I need to move data from my SQL Server to Sharepoint Document Library through WSSv3 object model. Right now, I can think t...

Hiding a custom web part in SharePoint

I'm attempting to completely hide a custom web part I'm writing under specific circumstances. What I'm not finding a lot of help on is actually hiding the complete web part. Using: this.Hide = true; will hide the content of the web part, but it appears to leave the Chrome behind. I can't change the Chrome display, so that's not an ...

SharePoint import error - 'Access Denied'

I'm trying to import data from another environment to a new server that we just setup. I was initially running into this error, but I eventually resolved it by using localhost instead of the server name. Now, the import completes but skips some items with the following error: [9/28/2009 6:34:30 PM]: Progress: Importing File _catalogs/ma...

Form Library in publishing Portal

Hello All, I want to create a Forms Library on a Publishing Portal. Should I edit the Site Definition / is there any other way to get a Forms Library? Please help. ...

Check if user is not supposed to be in sharepoint

So I pieced together this little script to dump all users in Active Directory into all the groups that they belong to. This part works great. But as in most organizations, the people in the sales force move around. Now lets say I have 5 groups with one user in each group Region 1 (Mark) Region 2 (John) Region 3 (Matt) Region 4 (Liz)...

SharePoint Lists as DataSources - How to Manage

Hello All, Its a kind of newbie question: We have a web part with user controls and a SP list as data source. For different kind of sites say team sites, publishing portals etc the path for the respective list would be different. eg: Team Site it would be http://&lt;Server&gt;/Lists/&lt;List Name> and for Publishing portal with Locali...

What developer features excite you the most for WSS 4.0 / SharePoint 2010?

There's been a lot of developer frustration working with SharePoint but we all hope Microsoft has been listening. With that in mind... What updated and new features for developers excite you about working with WSS 4.0 and SharePoint Server 2010? One answer per feature please so the community can vote on each one. ...

How does SharePoint identify a new email to a Discussion Board as belonging to a thread?

Pretty much as the title really, I want to be able to create a new thread from a reply to an old thread, perhaps by adding a "New Thread: " or similar to the title of the message, but of course Sharepoint is using some other characteristics of the message to recognise messages as replies to other messages and I can't find what those are....

NULL Predicate in Windows SharePoint Services Search SQL Syntax

At http://msdn.microsoft.com/en-us/library/ms472953.aspx is stated that queries like WHERE column IS NULL and WHERE column IS NOT NULL are allowed. IS NOT NULL is working. IS NULL does not return any items. I think this is because the SharePoint indexer does not include null values in the Index. But this syntax is documented at MSD...

Web Part with a custom property bound to a "choice" field from a content type?

I'm trying to make a custom property for a WebPart. The custom property should be a drop down with choices coming from a "choice" column from a content type. Is that even possible? ...

Iterating through a SPListItem/SPList

Hi guys, I'm making a checklist for people to do tasks on our company website. The feature I'm working on right now is that once they complete a task and mark it as done, I want our sharepoint webpart to send an email to them containing a list of what they still need to finish. Since the powers that be want to be able to add and subtra...

Integrating PowerShell in SharePoint

For some time I have been looking at the possibility to integrate PowerShell as a scripting engine in SharePoint but I haven't found the right solution yet. My main objective is to enable event triggers in e.g. a list to call and execute a PowerShell script (by filename) on the local server. This would give me a lot of flexibility compa...

How To Create an unsecured layout page in SharePoint that can be accessed by anonmyous (guest) users

I'm trying to do something that should be really simple. I have created a SharePoint Application page that is deployed into the _layouts folder. This page uses a custom code behind that inherits from Microsoft.SharePoint.WebControls.UnsecuredLayoutsPageBase. I have the application page referencing a master page that can be best de...

SSIS - Sharepoint list data transfer

Is there a limit on the number of rows that can be transferred from a Oracle database(OLEDB source) to a sharepoint list using SSIS? I am getting exception after transferring 19000 records ...

Problems with impersonation when connecting via VPN?

We have a Sharepoint layouts page that calls a Webservice (.asmx) to get some data. We use Kerberos/Integrated Windows Auth with impersonation and for users on machines in the domain this works just fine. However for users on a VPN (ie. their machine is not in the domain) this fails. We're getting 401s on the Webservice connection... Is ...

Sharepoint find where webpart is in use

Is it possible to analyse on which pages a webpart is in use? I want to remove some webparts from my sharepoint server, but i don't know what's in use and what's not in use? Is there a solution for it? Im current using moss2007 ...