Tagged Questions

columns (fields) created using out-of-the-box column types

learn more… | top users | synonyms (1)

2
votes
2answers
1k views

Can an event receiver update a list item before the alert email is sent?

I have a requirement to expose a list item's ID value on the "DispForm.aspx" form and all alert emails for a particular list. SharePoint is very "protective" of its IDs (or counter fields) and it ...
2
votes
5answers
3k views

Image column on document library

I have a requirement to add a thumbnail image column into an existing document library on my SharePoint 2010 site. Thumbnail images for each document are uploaded to the images document library. ...
7
votes
4answers
5k views

How to rename title column in Document Library using code?

Everybody loves renaming columns. The title column is a favorite of mine and I can't seem to rename it via code: SPList list = web.Lists.TryGetList("MyList"); Guid guid = new ...
1
vote
1answer
193 views

Can I promote a column from plain text to rich text?

If I have an existing list with a multiple-lines-of-text column, with data, can I promote that column to be rich text? I had a look in powershell and see that there's a richtext = false flag but it ...
1
vote
1answer
346 views

Cannot cast to clientContext.CastTo<T> (Managed Client Object Model)

I am writing a method that is supposed to create a SharePoint list field. I want to be able to make my method return the newly created field. The problem that I am facing is that ...
0
votes
2answers
455 views

Categorise an announcement and display a consistent image for that category type

This is a follow up to this question. I have created an announcements list (built in type). I want to be able to categories an announcement. i.e. Soccer, Football, Golf. I also want to display an ...
0
votes
2answers
2k views

How to add a file to a custom list

How do you add a column to a list that will allow you to upload a file? I know you can attach to a list item but you can not display this as a lookup in another list.
0
votes
2answers
507 views

Sharepoint 2010 - Related fields in dropdowns. How to?

In my UI I have a dropdown which contains some values: A, B, C. There is also another dropdown in the page whose values depend on the selected value in the first combo. If I select A in the first ...
2
votes
1answer
3k views

How do I unhide hidden column in SharePoint 2010?

I've upgraded a SP2007 to a SP2010 and now some settings have been lost. In some CQWP I need the Created column to group items etc. How do I unhide it so it is selectable in dropdownlists and displays ...
0
votes
1answer
2k views

Column width with jQuery

ms-vh2 exists by verifying "view source" but I cant get the following code to do the tricks for me. any idea?? <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js" ...
2
votes
2answers
1k views

Hide header row for specific list view

Is it possible to hide the header row, displaying column headers, for a specific view on a SharePoint 2010 publishing page? We've used this CSS to hide the column headings, but this is all or nothing; ...
1
vote
1answer
1k views

GridView CommandField issue

I have a small problem with a GridView in my web part. I bind a DataTable to the SourceData of my GridView and check if the current user is an administrator. If he is, I will add additional ...
1
vote
0answers
80 views

Document List Indexed Column goes missing

We are currently trying to troubleshoot a problem in Sharepoint 2007 where a custom column loses the "indexed column" setting. We are trying to track this down, but has been mostly a reactive ...
0
votes
3answers
389 views

Enforce a default value AFTER creating a list item

I have a Managed metadata list column which does not have a default value. The list has a couple of items for which these columns are currently set to empty. I have set a default value to the column ...
1
vote
1answer
578 views

SharePoint 2007 List column of type number to have 0s prefix

May I know if there is any settings that I can set such that my column (which is of type - number) will auto insert 0s in front of the number that a user enter? Scenario A SharePoint 2007 List have a ...
3
votes
2answers
217 views

Why are some of my content type columns grayed off?

Here's what my content looks like, currently. Some of the columns are grayed off for some reason, and I can't change their visible/hidden/required status. It only happens with Integer columns. If I ...
0
votes
1answer
292 views

Cannot Set Default Term Value on Column

I have a Meta Term Column in a Document Library that want to default to a value in my Meta Term Store. However, the SharePoint UI does not ever enable the "Save" button when for my selected tag. Why ...
2
votes
2answers
2k views

How to make SharePoint fields mandatory conditioned on other fields?

For example, in a workflow task, I might have a master field called "Approve" which, if set to "No", makes it unnecessary to complete the rest of the form (and thus makes them non-mandatory). Is there ...
0
votes
2answers
1k views

Unexpected error when creating new list record with a Person or Group column

I need to create a simple list with an AD user column but when I try to add a new item I get an 'Unexpected error' if the username has been checked, if the username has not been checked and ...
1
vote
1answer
569 views

Sharepoint 2010 : How to set a default value for a “image” type List column

I have a Sharepoint List column named "Thumbnail". Type: Publishing Image Status: Optional. How to set a default image value for this column ?
2
votes
1answer
290 views

How do I configure required columns on Wiki pages?

In a SharePoint 2010 Wiki page library, if I add metadata columns to the page library, something like "Category" and make it a required column. When I go and create a new Wiki Page in that library ...
0
votes
1answer
129 views

How to set variable with list's metadata (like customerID)?

How do I set a metadata (say CustomerID or Skills) with PowerShell? I am trying to fill CustID. Edited. This is the working version of the final powershell code. Here is the working code.... ...
1
vote
1answer
603 views

Xml defintion of Field and FieldRef elements and the precedence of attributes

Anybody out there with a good understanding or a good reference of how the attributes that make up a custom list definition apply to the list columns when you define Fields and FieldRefs in multiple ...
0
votes
1answer
1k views

Using page properties as web part properties

Specifically in the content query web part, can I filter by a column whose value is passed in based on a particular page property (the pages have some custom columns to aid in SEO and indexing, one of ...
0
votes
1answer
42 views

Use column info in another column

I am using a standard web part wich relies on html code to render an animated image. The data to create this image is stored in a column of a custom list, so i have a column with html format. What i ...
1
vote
2answers
223 views

SharePoint List Check whether Value is Checked

I am using Windows SharePoint Server 2007. In a custom list, if I have two columns. One has a list of Categories, and the second has a list of Products. So in my Categories Column its a Choice with ...
2
votes
6answers
4k views

How can I auto-increment a column?

I am working on a solution where I have a list with a column named LogIDNumber. For each new entry in the list, I would like to increment the LogIDNumber by one. I could use the ID generated by ...
1
vote
1answer
736 views

Can I change a calculated column to a Yes/No column?

I currently have a list created with multiple column and column types. One column is a formula based on the answer of another....I need to change the column to a Yes or No choice instead of relying ...
5
votes
3answers
11k views

Display the Sharepoint context menu in list items on another column instead of Title column?

In SharePoint Lists, we can define new View and select the columns that we want to show. I don't want to show the Title column but I also want to show the default Context Menu for the0 items on List. ...
1
vote
3answers
362 views

how can i know Items in Tasks list viewed by user(something like “Last Viewed” and “Last Viewed By”)?

for every list-item in Lists we have two columns or fields by the name of "Modified" and "Modified By". you got the idea, i wanna have two columns or fields for Tasks List by the name of "Viewed" and ...
3
votes
1answer
5k views

Referencing SharePoint list columns with spaces in names

I'm running into issues referencing column names in SharePoint Designer 2010 when the names have spaces in them. This is discussed in this blog post. For example, I've tried using the following ...
1
vote
3answers
2k views

Email validation in SharePoint 2010

We have a column of type "E-Mail" and we'd like to attach validation to it so it conforms to the normal regular expression email validations at a specific domain. Is this possible without writing a ...
1
vote
1answer
2k views

Created/Modify columns don't appear when creating view

I have a SharePoint 2010 instance and am trying to create a view for a document library. I want to include the Created and Modified columns so I can do some filtering on dates, however neither the ...
9
votes
2answers
11k views

How do I convert SPUser to SPFieldUser?

I have a field in a list that accepts an SPFieldUser object. I have an SPUser object that I would like to populate that field with, but I cannot implicitly convert from one to the other. How would I ...
7
votes
3answers
4k views

Possible to format how numeric columns display?

I have a numeric column in a list that displays like so: 16,090 I would like it to display without the comma: 16090 Can this be done?
1
vote
3answers
7k views

Customize inline edit form Column width and ControlMode

I have a custom list that I am using as a Frequently asked questions list for a number of subsites. I have 3 columns, Question, Answer and category. I want to make the question field readonly as well ...
1
vote
1answer
659 views

Add lookup field with object model?

I have an existing list "Country List", Column "COUNTRY" contains name of the all the countries. I would like to create a look up field "Origin Country" in a list "Order List" via OM. How do I do ...
4
votes
4answers
4k views

How to assign metadata to a Site Collection

In SharePoint 2010 we want to create several different Information Architecture views of our Site Collections. One idea is to use Term Store from the Managed Metadata Service as a way of creating an ...
4
votes
1answer
13k views

More than 255 characters in multiple lines of text?

I have an InfoPath Form which submits the text of a textbox and saves it in a SharePoint list. Whenever a user types in more than 255 characters and I want to edit the element in the SharePoint list ...
2
votes
2answers
2k views

How do you create a multi-select people-picker field programatically in SP 2007?

I would like to create a people-picker user field where more than one user can be chosen. Currently, this is what I'm doing: SPField field = new SPField(contentType.Fields, "User", "Users"); ...
0
votes
1answer
613 views

How to use a negative of a numeric column's value in workflow [closed]

I have a column named "How many month before the due date to inform the focal" which is used to know how many months before the due date I need to remind the focal to do his task. The problem is: I ...
4
votes
4answers
217 views

Possible to create a column that users can upload an image to?

I'm trying to create a column in a list that users can upload a picture to. I found the Hyperlink or Picture, but this requires that users specify a URL for the image. Is there way to create a ...
1
vote
2answers
3k views

How to have a column contain multiple users

I have a list with various columns. One of those columns is to store users. However, when I use the code configurationListFields.Add("Limit_Access_To", SPFieldType.User); I am only allowed to ...
2
votes
3answers
811 views

Sharepoint2010 Lists Lookup

I'm creating 3 lists using Sharepoint 2010 UI. The lists and relationship are as follows: Training (parent) -> Training Instance (child, look up Training ) -> Training Session (grandchild,lookup ...
1
vote
2answers
855 views

update choice-radio button column, within workflow

I’m having a SharePoint list, the list contains the following column Column name: initiator outcome, Column type: choice, radio buttons First options(button):Cancel Request. Second ...
8
votes
9answers
29k views

Read-only column in a SharePoint list

I want to create a read-only column in my "Request Approval" Nintex workflow task that I sent to the user. I did the following: Created a column in my list. Field name: “Guideline” In the default ...
0
votes
1answer
276 views

How would I set permissions when column = *?

I need to set permissions where only certain users have access to view an item when the column equals a certain value. For example: User1 can't see item TV when Vendor = "Walmart". User2 is able to ...
0
votes
1answer
401 views

infopath 2007 field count

Is there a menu option in InfoPath 2007 that would give me the total number of fields? The reason that I am doing this is because I have a form that I developed that cannot be uploaded to a ...
3
votes
1answer
2k views

How to get Column Level permission in SharePoint 2010?

I require column level permissions in SharePoint 2010. In MOSS 2007 I was using SPListDisplaySetting. However, it does not work for SP2010. Anybody has an alternative solution?
0
votes
1answer
681 views

Preview Pane column limit/fix

I have a discussion board that uses the Preview Pane style view. The Title, Body, Subject, Attachments, and Modified By are my columns showing in this preview pane. Primary way of posting is through ...