field deployed via a feature

learn more… | top users | synonyms

4
votes
1answer
5k views

Adding a site column and add it to a content type from PowerShell issue

Within a PS script, I'm trying to add a site column and add this column to a custom content type. Here is my script : add-pssnapin Microsoft.SharePoint.PowerShell -EA 0 function ...
3
votes
1answer
841 views

How to disable commas on Integer field in Edit item screen

I have a field defined as this: <Field Type="Integer" DisplayName="BŠS" Required="FALSE" Commas="FALSE" Group="CRPU grupa" ID="{f8ae007e-df89-4149-8318-a79673cec338}" ...
3
votes
1answer
169 views

Changing enterprise keywords column title programatically

I'm trying to rename an enterprise keywords column in a specific list of a subsite. In a Feature Activated event receiver i tried to set the column's display name by setting its title using the ...
3
votes
1answer
830 views

How to create a lookup field that has a list column picker

How would I be able to create a list field in VS that would be a lookup to select columns from any list? I would preferably like to have something like the PickerTreeView.aspx, but instead of ...
2
votes
2answers
549 views

Diffrence between AllowDuplicateValues and EnforceUniqueValues?

When defining a site column in XML, what is the difference between AllowDuplicateValues and EnforceUniqueValues? AllowDuplicateValues="False" EnforceUniqueValues="True" Logically it should do the ...
2
votes
1answer
914 views

Composite unique indexes in Sharepoint 2010

I'm looking for something like Composite unique indexes in Sharepoint 2010. I have found that I can make some field in list unique. But how to make unique index composed from two or more cols in list? ...
2
votes
1answer
115 views

Custom content type throwing errors?

I have created a custom content type that uses several custom fields that I created in the same project. When I deploy the content type for the first time it works fine. When I try to deploy ...
2
votes
1answer
757 views

Custom Inerited Note Field 255 character limit and no HTML for Editing?

Two issues I have with the same column type. Using Sharepoint 2010. I created a custom Content Type (for use as news articles content Type) and added a couple of custom columns. I have a issue ...
2
votes
1answer
1k views

EnforceUniqueValues attribute on Field definition in Schema.XML not working, what am I doing wrong?

I have the following field definition in the Schema.XML file for a custom list definition. Per the documentation setting EnforceUniqueValues and Indexed to true should enforce a uniqueness constraint ...
2
votes
1answer
833 views

How to update choice field options with a feature upgrade?

I created a feature with a field definition with choices. These choices are bound to language dependent resources using the $Resources:file:key system. Resource files are included. As the feature is ...
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
1answer
92 views

When defining field using CAML: what is the difference between Name and StaticName

When defining a new field using CAML in a feature definition I can define a the Name of the new field and the StaticName. What is difference? Should I define both? And how big is the explosion if ...
2
votes
2answers
268 views

Add URLEncode attribute to a deployed field definition

Is it possible to add URLEncode to a field in schema.xml, and update the SharePoint site without deleting everything based on the schema? Eg. <Field DisplayName="Internal/External" /> to ...
1
vote
2answers
353 views

User Field that shows user Photo in SharePoint 2013

I have a list definition with Field of type User. I need to display a user's photo alongside with his name. In order to do that I'm using ShowField="NameWithPicture" attruibute like so: <Field ...
1
vote
1answer
129 views

What is the order in which Custom field type,Fields,Content type,List definition are creating?

I am creating a custom field type, Content type and List definition. I have a custom field type inheriting from Multicolumn value and I am adding new fields of my custom type to my new ...
1
vote
3answers
328 views

Custom Field - Hide field on Item Edit and Add (ShowInEditForm, ShowInNewForm )

Im using SharePoint 2007. Created a custom field for a SharePoint list, which should not be displayed during Item Add or Edit. I have used SharePoint WSP Builder Project in Visual Studio 2008. Created ...
1
vote
1answer
121 views

Field ShowInNewForm=“FALSE” Cannot Be Accessed In Code

I have a field for a custom document library, that must only be updated from code (event receiver) not from UI. So i set this field ShowInNewForm=“FALSE” and ShowInEditForm=“FALSE”. But this time, in ...
1
vote
3answers
219 views

Move Files from a SharePoint Library into a Folder

I have a problem. I want to move files from a SharePoint library into a folder using PowerShell. To be more specific I need to move all the files in the library for whose a SharePoint field value ...
1
vote
3answers
844 views

Define contenttype with list

I have defined my list definition as following: <List xmlns:ows="Microsoft SharePoint" Title="Requests List Definition" FolderCreation="FALSE" Direction="$Resources:Direction;" ...
1
vote
2answers
498 views

How to restrict a note field to 255 characters (without switching to single line of text)

I made a custom note field named "Content_Feedback" without specifying Allow Unlimited Length in document libraries <Field ID="{C9C90E3A-85AB-492E-9E47-C7A520A7DD0D}" ...
0
votes
2answers
523 views

Using Content Type hub - do updated fields update in subscribed sites?

The title pretty much covers my question... I've updated a field in the content type hub - I want this field update to be reflected in the consuming sites/webs. I don't think the field defs are ...
0
votes
2answers
5k views

Non-supported field type change

I am having a problem with a custom site column in SP2007, whose field type recently changed. I have defined features for the following artifacts, which are deployed at the site collection scope: A ...
0
votes
2answers
1k views

Error occurred in deployment step 'Activate Features': Invalid field name

SharePoint Error message Error occurred in deployment step 'Activate Features': Invalid field name.{guid}
0
votes
3answers
2k views

How to display column names in several languages in SharePoint?

I have created a site, installed my language packs, created the term store servcie and created some terms in multi-language (persian and english). I then created a site, a new list, and a new managed ...
0
votes
1answer
80 views

SharePoint Powershell Number and User columns

I need to create two list fields by powershell. One that accept only Integer (type Number with no decimal) and the other User (multiple selection). I can create Number field and Single User field ...
0
votes
2answers
92 views

RichTextMode attribute is ignored when applied

In my solution, I have defined a custom Field and Content Type. The field is defined as follows <?xml version="1.0" encoding="utf-8"?> <Elements ...
0
votes
1answer
549 views

Sharepoint how to add field to list where field with such name already exists?

I have sharepoint list 'Events' with field Location. I am trying to add from web existing field with same internal name from other package. var fields = contentType.ParentWeb.Fields; SPField ...
0
votes
1answer
228 views

How to debug custom field type?

I wonder if we can debug custom field ? Does "attach to process" method works for custom field?
0
votes
1answer
702 views

How do I make Title property mandatory on a custom content type?

As title says, I want to use the standard SharePoint Title property, but I need to make it mandatory. It's not an option to do this through the 'Documents' settings of the UI, I need to define it as ...
0
votes
2answers
330 views

Filling a list instance's MultiUser Field

i created a UserMulti field inside my list's instance. Heres how i declared it. <Row> <Field Name ="Title">List1</Field> <Field Name ="aatMessage">Message place ...
0
votes
2answers
1k views

export specific field from from sharepoint custom list to excel

I'm having custom list (SharePoint 2007) I need to export the list to Excel file. So I mark all the field that I want to export. but I when I export the list I can see: the "Path" field, though ...
0
votes
1answer
88 views

When I define a field in an elements.xml file, does the Name attribute have to be unique for the whole site collection?

I'm building a project consisting of two features; the first one contains, among other things, the following field definition: <Field ID="{E9821752-3293-4c3f-B377-22ABB7AF2F04}" Name="TruckNo" ...
0
votes
1answer
113 views

Please explain the Field Element Aggregation attribute

I am not quite understanding the use of the Field Element attribute 'Aggregation'. The Field Element : Defines the internal data types used in the list infrastructure of a SharePoint Web site. The ...
0
votes
1answer
116 views

Rename standard field name in XML

I have a custom content type that inherits from the standard article page CT. In my new content type I would like to use the Contact field that is inherited from the article page but I would like to ...
0
votes
1answer
100 views

Help to understand content type

Given the below definition of a content type: <List xmlns:ows="Microsoft SharePoint" Title="Algorithm Types List Definition" EnableContentTypes="TRUE" FolderCreation="FALSE" ...
0
votes
1answer
401 views

Problem tying textfield to a content type field

I have a SharePointWebControls:TextField control on the page. It's tied to a field that has been defined as normal in the xml (I've gone through this with a fine tooth comb so I'm 99.999% sure the ...
0
votes
1answer
957 views

InfoPath cannot generate a form template for the SharePoint list

The error I'm getting when I click Customize Form on a list. InfoPath cannot generate a form template for the SharePoint list Missing equals sign between attribute and attribute value. The list ...
0
votes
1answer
785 views

Sharepoint Profile not reading some AD fields

I have on my Sharepoint Profiles some fields that are mapped to the Active Directory (Name, job title, phone etc). I have added some info on the AD field called "Description", and when i went to map ...
0
votes
2answers
2k views

Accessing a custom column in User Information List

I'm working with WSS 3.0, building a customized SharePoint site using .NET 3.5 and SPVisualDev. I have edited the FeatureEventReceiver.cs in the List area to add a new column to the User Information ...