Questions tagged [column]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
679 views

Show/Hide Fields (as in “add more”)

To no avail, I have tried to use jquery to show and hide fields based on the value of a calculated field. It works on NewForm, EditForm, but on DisplayForm. I used http://sharepointjavascript....
1
vote
3answers
718 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 "...
0
votes
1answer
96 views

Unable to find a column which is displayed in the Custom List

I have a custom list in which one column named "Status" (A look up field which is referenced in this list). is displayed with out any data. However, if I go to the menu option "Settings -> Document ...
1
vote
1answer
1k 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 ...
2
votes
1answer
20k views

Change Field's DisplayName in a List

I'm trying to change the DisplayName for a field that belongs to a list. Below is the code that I'm using. using (SPSite site = new SPSite("http://sp10dev/sites/demo")) { using (SPWeb web = site....
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 ...
2
votes
1answer
2k views

Avoid metadata columns in SOAP response

I searched around the internet (and on this stackexchange site), but didnt find any answer. I wrote a small C# application that should retrieve some data via the SOAP webservice of a sharepoint ...
2
votes
0answers
679 views

Updated = calculated field based on Modified shows 1899 last update

Working with SP 2010 and had to remove the time stamp from modified. Tried at system level - no joy. Used a calculated field (=TEXT(Modified,"mm/dd/yyyy")). This works well but occasionally shows the ...
1
vote
0answers
593 views

How to create HTML column in Sharepoint?

Today one of are lab tech deleted the Java Script that would take the HTML in a list and display it. Dose anyone know what script it is? What im trying to display: <span style='position:relative;...
4
votes
1answer
7k views

What does the “Copy Source” column mean in a document library/list?

Pretty basic one here. Google borks out. I have a document library, and one of the columns is named "Copy Source". What does the data in the column mean?
1
vote
0answers
341 views

Rules for Transforming List Column Names into XML Element Names

I am using the ListData.svc service to pull data from several lists. Many of the column names have punctuation and spaces, so their names are transformed as they're rendered as Atom in the ListData ...
3
votes
3answers
5k views

How to add a Custom Column to a Site programmatically

I'm programmatically creating Site Collections. The only thing I'd like to add to the newly created Site Collection are some Custom Columns that I've added manually in other examples.. The code I'm ...
1
vote
1answer
311 views

Create a new column in a calendar programatically

When a new item is added to the event list, I would like to: Verify if the new column already exists If not create a new hyperlink column. I am not sure how to do this by code using SharePoint 2010.
1
vote
3answers
5k views

Custom Sharepoint List (XML Field “TimeOnly”)

Trying to Make a XML field that displays DateTime in "TimeOnly" format but for some reason, I can't work it how to use it, as there isn't no "TimeOnly" property shown in Intellisense when i type the ...
0
votes
1answer
1k 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 ...
1
vote
3answers
470 views

Looking for code that will make certain columns read only

I have 4 date columns in a list that need to be read only after the record is created. Does any one have code to do this?
0
votes
1answer
7k views

Retrieving and displaying custom list column names (which have spaces in them)

I have been to Jan Tiernans blog, and figured out how to grab column names using Soap and jquery/jscript. I can't figure out how to grab custom columns with special chars though. I have read about ...
1
vote
3answers
3k views

Encrypt SSN column in a list

I need to encrypt social security column in a list. What are my options? ps: Did not find Encryption in the Tags. Actually, looking for something like this (Column Level Security, but non ...
2
votes
0answers
90 views

Using resx file in Calculated Field

Is it possible to use resource file (.resx) in tag? I made a calculated field and want to show the result in some different languages.
2
votes
1answer
1k views

Mandatory fields in discussion board comments

The whole idea behind a discussion board is that it should work as a forum I suppose. Lets say that I created a new column in the discussionbard called category and that its mandatory. Then when ...
2
votes
1answer
2k views

Differences between a fields DisplayName and Title

What are the main differences between a fields DisplayName and a fields Title? Why are they sometimes different and sometimes the same? What is the best practice regarding naming the DisplayName and ...
2
votes
1answer
1k views

List settings > adding Columns > Yes/No or drop down

I created an InfoPath form for policy acceptance. Initially I set a column in the list as boolean (Yes/No) whether users accept or denied the policy. But now the business unit wants a third category "...
3
votes
1answer
2k views

Managed Metadata field full path

I've added a custom Managed Metadata field in my custom contenttype but need to show the full path. Anyone knows how to do this? (if possible with xml, else with c#) XML so far: <Field ID="{...
2
votes
2answers
288 views

Problem retracting custom fields

I have this project with custom field for a content type. When I deploy the first time after creating the new field everything is fine. Once i retract the solution my field is the only one left on ...
2
votes
1answer
428 views

Have different column title in Edit View form and view itself

I'm using C# code to automatically create a read-only Note column that is a truncated version of an existing Note column. list.Fields.Add(field.Title + " (truncated)", SPFieldType.Note, false); At ...
0
votes
3answers
1k views

How do I create a sequential workflow in visual studio to update a list column?

I have list in SharePoint with a field that I want to auto-populate based on values of other fields in the row. I would normally use a calculated field but the calculated field doesn't have ...
0
votes
1answer
645 views

Change Identifier for BDC field in use

UPDATE: After searching around, it seems what I am looking to change is the identifier for a given entity. Is this done simply by exporting the application definition, changing it and then importing ...
1
vote
2answers
850 views

Adding a conditional column broke the entire page

I added a conditional column to a list, it had a complicated algorithm to determine the value. I'm sure I had a syntax error in it, however now I can't even access it. When I try to view the list, I ...
1
vote
0answers
591 views

Change the default “Name” column in a Form Library

Is it possible to change the default "Name" column that is created in a form library. One method I saw is creating a content type that inherits from this column. Could someone provide instructions on ...
2
votes
1answer
2k views

Multiple File Columns on a list

A client of mine need a list where each item can have 3 attachments. Each attachment would be tied to a column. For example, if the list is called "Meetings", it would have two file columns; "...
0
votes
2answers
3k views

Changing the order of columns in dataview webpart sharepoint 2010

I have a dataview webpart (of a sharepoint custom list), with 4 columns(I want the 4th column to appear first). How can I change the order of the columns in the dataview webpart?
2
votes
2answers
501 views

Column Level Security Products

I am looking for recommendations on products that handle column level security. What is the best product out there? Any input will be greatly appreciated. Thanks!
2
votes
2answers
2k 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 ...
3
votes
1answer
7k views

Converting number field to text field results in data loss

I have the following scenario: A standard generic list with a number column. There is a large number of list items in the list - 200000. All list items have an integer number value (no floating point)...
2
votes
1answer
819 views

How to reference a column in another content type?

In simplified form: I have two content types representing documents and folders. Thus, content type MyFolder has parent type Folder, content type MyDocument has parent type Document. What I want to ...
3
votes
3answers
711 views

The CHOICE element contains the value within its body. What gives?

As stated on MSDN, the CHOICE element contains the value within its body. That means that in a field, if I have: <CHOICES> <CHOICE>foo</CHOICE> <CHOICE>bar</...
1
vote
1answer
1k views

How to add columns to the User Tasks Web Part?

I want to add some columns to the User Tasks Web Part. I use WSS 3.0. Is it possible to add them?
1
vote
1answer
430 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
799 views

Add numbering to a standard list view

We're displaying a SharePoint 2010 list using a Standard View created via the browser. The items are shown in a table and the users would like a number shown for each row. The numbers column would be "...
0
votes
3answers
781 views

Sharepoint contenttype columns -> types

Does anybody have a list of all internal "type" names of contenttype - columns in SP2010? I am creating a custom contenttype in VS and really don't have an idea where to get them from. I already ...
7
votes
3answers
11k 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
1answer
1k 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 list.Fields....
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
2answers
600 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 ...
1
vote
2answers
672 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
3k 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.
2
votes
1answer
6k 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
3k 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" type="...
1
vote
1answer
2k 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
122 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 ...