sharepoint2007

Visual Studio 2008 SharePoint WebPart Deploy Problem - "The HTTP request is unauthorized...'Negotiate,NTLM'"

Hello, I am trying develop a SharePoint WebPart with "Visual Studio 2008 Extensions, Version 1.3". When I try deploy or quick deploy or package or anything about deployment for my WebPart I am getting this message: The HTTP request is unauthorized with client authentication scheme 'Negotiate'. The authentication header received from...

Modify a file in SharePoint document library

Hi, I need to modify a file (text file) in a SharePoint document library. Tried to open a stream using SPFile.OpenBinaryStream() and write the data. But it doesn't work out. Any help/ suggestion would be appreciated. ...

Truncating text string in sharepoint

I'm using this script to truncate a text string in sharepoint 2007, but it doesn't work and I can't see why?! Any ideas offered greatly appreciated. From Header.xsl <xsl:template name="fixedstring"> <xsl:param name="targetVar"> <xsl:param name="allowablelength"> <xsl:value-of select="substring($targetVar, 1, $allowablelength)"> <xsl:if...

SharePoint Search Find Records between a date range

Hello All, This is my try to get records below the date: SELECT Title, XXXX from scope() where "scope" ='XYZScope' AND XYZDate < 1/1/2007 12:00:00 AM It says "Exception from HRESULT: 0x80040E07" Please help. ...

What control from InfoPath 2007 maps as SPFieldLookUp or SPFieldLookUpCollection field?

Hi. Does anyone know what control from InfoPath 2007 maps as SPFieldLookUp or SPFieldLookUpCollection field in SharePoint? Any idea is accepted. Thnx. ...

How can we get the Active Directory user info for a List

Is there any way with the built-in SharePoint web services which can give us the information about the Active Directory users present in a SharePoint Group? ...

Sharepoint content type not in page properties list

Hi, I think I have done everything right but my content type won't appear in the page properties. Here's what I did: Created 2 content types, one deriving from "Welcome Page" and one deriving from "Article Page" Created "Site Columns" and added them to my content types Opened Sharepoint designer to create a page layouts based on my C...

Sharepoint 2007 : How to disable TextBox

Hello, I am new to sharepoint 2007. I have a following requirement. 1) I would to create a custom list for employee where they can select the item and fill-out the form and submit. Example : List --> Hard Disk --> Click --> Create new list --> List has following fields 1) EmpID 2) Customer name (Text) , 3) Order Date, 4) Qty 5...

InfoPath Form Auto generate Name

Hello All, Here is the requirement: Anonymous Users need to enter some info into InfoPath on line form. They should not see the Save as and the file name prompted after they hit the Save. Should I find a way to auto generate name for InfoPath / write some code for this? I also need to create a workflow when a new form is created [se...

Unexplained delay when assigning a string to an SPListItem field

Hi, I am using the SharePoint Object Model via a console app on the same server as the SharePoint installation, and using the following code: SPSite MySite = new SPSite("http://server/"); SPWeb MyWeb = MySite.OpenWeb(); MyWeb.AllowUnsafeUpdates = true; SPList MyList = MyWeb.Lists["Test"]; const string EmptyQuery = "0"; SPQuery q = new...

Exporting List Template from the CUstom List created using a Feature

I have created a Custom List Template and wrote the Schema.xml,feature to deploy it,Installed to the server created a List based on that. Everything is fine. Now I wanted to Save this List as template and Deploy it to a different machine (Different SharePoint Server). But that feature is not visible in the Template List, when we try to c...

SharePoint 2007: How to Restrict Access at the Field Level?

Is it possible in a SharePoint 2007 list (MOSS, though I don't think that this is Enterprise Edition) to allow users in one SharePoint group to edit values in some fields and users in another group to edit values in the other fields? From all the searching I've done, this does not appear to be possible, so as a fallback I'll accept answ...

SharePoint, List.Items and List.GetItems(Query) and Linq

Following on from suggestions, I am trying to use List.GetItems(Query) to retrieve my initial data subset rather than the entire list contents via List.Items. However, whereas List.Items.Cast() results in a usable IEnumerable for Linq, List.GetItems(Query).Cast() does not. Working Code: IEnumerable<SPListItem> results = SPContext.Curr...

Sharepoint 2007 : How to set column level permission ?

Hi, I would like to set the column level permission on list in Sharepoint 2007. I would appreciate help. Example: I would like to employee to fill other information in the form but not allow them to change the salary. Only admin can change certain fields. ...

Check in and Check out in SPFile object

Hi, I use the following piece of code to check out and then check in a file. I use IronPython.(Say spfile is the SPFile object) spfile.CheckOut() spfile.CheckIn("Done by the script") spfile.Update() spfile.CheckOut() spfile.CheckIn("Done by the script-Second time") The file is checked in for the first time. But the second time, it th...

How to update Database User Password in Moss 2007 after changing it?

Being concerned about Security, I change my DataBase password over a period of time. So once this change happens, I also should update the same in all relative applications, and I am stuck with doing that on MOSS 2007. How can we update the DataBase User password on a MOSS 2007? ...

Sharepoint 2007 : Populate Drop down list box 2 based on selection of Drop down listbox1

Hi, I have two drop down list box . I would like to populate drop down listbox 2 based on selection in drop down listbox 1. Can you please guide me whether this possible in the sharepoint 2007. Both drop down listbox populate from database. I have created custom list that contains both the drop downbox. Any help would be highly app...

Differentiate between Sharepoint User defined columns and default columns

Hi, I am using SharePoint 2007. How do I differentiate a user created column (the column that a user creates on his own for a SPList) from the columns that are available by default? Any help would be appreciated. ...

Which stsadm command do and don't recycled the application pool?

I'm trying to figure out if deploying/upgrading solutions and activating features recycles the app pool or interrupts/slows the user's actions in any way. I need to know if these steps can be performed while there is load on the server, or it is best to do an after-hours deployment. The specific commands I'm using upgradesolution or di...

Add Custom Meta Data to a Team Site Programmatically

Hi, I have been asked to write a custom webpage in a web application integrated into a MOSS 2007 solution to allow users to create a teamsite using a custom template. No problem. However, the user must have the ability to assign custom meta tags to the created team site to allow for specific searches, i.e. to assign country ("USA")...