I am having problems deleting columns from a form library in MOSS 2007. When I g开发者_运维百科o to the form library settings, the columns are listed and the note in the column header says "click to edit" (and delete). However, only certain columns are even clickable. Why is that and how can I delete the ones that are not clickable?
It isn't ReadOnly
, it is FromBaseType
.
Set FromBaseType="FALSE"
and you'll see the "Delete" button showing up on your library/list settings form.
Good luck,
vinz
Before you can delete a field, you need to set its ReadOnlyField
property to false
.
f.ReadOnlyField = false;
f.Update(true);
s.Lists[ListName].Update();
f.Delete();
The rules in listedit.aspx for a field to show up as a non-link is that the field should be marked as ReadOnly, not be hidden and have XPath set.
So these fields probably contain promoted properties.
You may be able to delete them by using SharePoint Manager, but be sure to test it on a backup in a test environment as you might break things
Do they belong to a specific Content Type?
精彩评论