sharepoint

blank option in drop down disappears from custom Sharepoint list

I have a custom list template that is deployed as a .wsp. The list has almost 30 columns, including several DropDownLists of column type "Choice". None of the columns are required and the customer wants a blank option as the default selection for each. Unfortunately once the list item has been saved, any columns that have had values s...

Customizing pages view in Sharepoint

Hi, I'm customize the fields displayed in the Pages document library (the table displayed clicking site actions->all site content->pages). It was suggested by someone who knows more about sharepoint than me that I should perhaps remove the fields which I didn't want from the default view programmatically on the activation of a feature,...

Is there a way of auto-generating elements.xml etc files for sharepoint development?

I have matched the "12 hive" structure in my solution, and I am using SPDeploy to create and deploy .wsp files and to deploy to my test servers. I am about to add a whole bunch of files throughout the structure and there is quite a lot of redundancy in the elements.xml and feature.xml files. Has anyone done the work to assist in the cre...

How can "Modified By" be changed when using RunWithElevatedPrivileges?

We have a web part that uploads a document to a document library. The user uploading the document may not have access to the destination location, so the code adding the file executes within a RunWithElevatedPrivileges block. This means the "Modified By" field is always set to System Account. Here is the code: SPSecurity.RunWithElevated...

Can I programaticaly replace one webpart with another in Sharepoint?

We have a sharepoint website that has been quite heavily developed with content using the out of the box content editor webpart. This is a bit rubbish when it comes to using any other browser than IE. We have in mind to update to the free Telerik content editor, however we would like to save ourselves a large amount of copy and pasting,...

SharePoint remembering changed password

Hey all, I'm witnessing some strange behavior with SharePoint when changing user's Active Directory passwords. I created a custom Application Page to change a user's password in Active Directory. The code seems to be working great as I can verify within Windows that the password was changed. However, the strange thing is that after t...

Writing Database Blobs to SharePoint Document Libaray

I'm working on moving a large number of documents from an older document management system to SharePoint (MOSS 2007). The original system stored the documents as binary data in image fields in a SQL server database. My thought is to programmatically create multiple document libraries to group these documents. I then plan to read the b...

How to modify "Summary View" in SharePoint list web part?

I'm using the Announcements list on a team site and I'm displaying the list on a page using the out of the box list web part. I like the fact that the Summary View trims the body of each list item, but I would like to display an additional column in the summary view. Is there a way to do that without having to use SharePoint Designer? ...

Sync SharePoint Sets with File System?

Does anyone out there find it useful to sync' SharePoint sets (lists, documents, etc.) with "external" sources like the file system? What about SharePoint-to-SharePoint sync? Do we have any explanation why Microsoft Sync Framework lacks any serious hooks into SharePoint? Is this stuff coming out in some Office 14 timeframe? Under NDA? ...

What is the best way to handle all SPItem's on SharePoint web Application level?

What is the best way to handle all the newly added documents and items to the SharePoint lists and Document Libraries on Share Point Web Application Level. My case is that I want to do some insertions to database when any new document or item added. note: 1- The Site Collections , Web or Sub Sites and Lists are not predefined. 2- I...

Visual Studio 2008 "Add Service Reference" for Sharepoint: 401 and port numbers

I'm trying to "Add Service Reference" to SharePoint web services (e.g., "http://cogent-moss/_vti_bin/Webs.asmx"), but am having trouble. I seem to always get this error: The document at the url http://cogent-moss/_vti_bin/Webs.asmx was not recognized as a known document type. The error message from each known type may help y...

How to deploy usercontrols using the Team Definition in Sharepoint?

Now i am using the sharepoint extensions 1.1 for Visual Studio 2005 to deploy my website. I want to add usercontrols, but i don't know how to add it to the Team Definition. I know how to add webparts, but i would like to deploy usercontrols to use them in the master or to add them with a webpart or sonofasmartpart. Could someone give so...

How to modify Sharepoint filetype icons depending on parts of the filename?

We have a SharePoint Document library, where we store html files with links to external files. Samples: mypicture.jpg.html mywordfile.docx.html mypdffile.pdf.html and so on. Now by default all Files show up with the HTML Icon, referenced in the DOCICON.XML file. Thats of course correct as the .html extension shows, it is a HTML file....

SharePoint 2007 Log Viewer

SharePoint 2007 (WSS or MOSS) logs are not easy to read even on a large screen, has anyone come across a log viewer that is able to: Display SharePoint logs live and historical Filter the events by various parameters Cope with SharePoint's log rotation A subset of the above features would be acceptable, as would a range of tools eith...

how to change default page for a site in Sharepoint using Team Definition?

Now i am using the sharepoint extensions 1.1 for Visual Studio 2005 to deploy my website in Sharepoint 2007. When you create a new site, there is a new default page with the contenttype: Welcomelinks..., i would like to change it including my own ContentType and PageLayout in the onet.xml. The way to deploy I am using is Team Definition....

Sharepoint development - Microsoft VPC vs. VMWare

I've developed few little Sharepoint application on Microsoft Virtual PC but now we start a new and bigger project on Sharepoint. What do you think? Should we switch from VPC to VMWare (Server?) or there is no significant performance differences? (Developer's hardware: notebook with external hard drive, 2GB memory, Core 2 Duo) ...

import webpart to page layout in sharepoint

How can i add my own custom webparts to a page layout in sharepoint. i've exported the wepart and have a .webpart file. i tried importing them in sharepoint designer without any success. I read a little on the AllUsersWebPart...but not really sure how this works thanks ...

How do I convert Elevated Privilege code from C# to VB.Net for use with SharePoint?

I have built a method to pull some UserProfile information out of SharePoint. It works great in C#, but I can't figure out how to convert one part of it to VB.NET. I'm not that great at VB but usually the basic code converters online get me past any problem I have. The problem is concerning the SPSecurity.RunWithEleveatedPrivilages secti...

Call long running operation in WSS feature OnActivated Event

More specifically - How do I reference SPContext in Web Service with [SoapDocumentMethod(OneWay=true)]? We are creating a feature that needs to run a job when a site is created. The job takes about 4 minutes to complete. So, we made a web service that we can call when the feature is activated. This works but we want it to run asynchr...

Querying List Data From SharePoint Web Services

Has anybody ever successfully written code to extract data from a SharePoint 2007 list (specifically, an InfoPath form library) using the GetListItems() method in the http:///_vti_bin/lists.asmx service (and lived to tell about it)? It returns some of the worst XML I've seen in my life (it's not even compliant XML). Is there some easy w...