add a column to a Document Library as read-only to the enduser

Asked By mkamosk
27-Jan-07 04:22 AM
All --

Please help.

How can one add a column to a Document Library as read-only to the enduser?

This column should hold text. I need this column because I need to set/get
the value of that strictly from within a Workflow. This column must be
read-only to the enduser; he/she must not be able to change the value at any
time. Ideally, I want the column to be both completely hidden and completely
read-only to the enduser.

When I select a particular Document Library and then choose...


...and add a column of type "Single Line Of Text", that column is not
read-only to the enduser.

I can hide the column from every view. However, that is not enough because
when an enduser checks-out a document and then opens the document for editing
in Word 2003 or Word 2007, then the Office integration automatically shows
the column as editable in the Word interface.

This is not allowable for my requirements because the field's would need to
completely read-only to the enduser.

As such, the question becomes-- how can one add a read-only custom column to
a Document Library list?

Please advise.

Thank you.

-- Mark Kamoski

--
http://www.WebLogicArts.com

add a column to a Document Library as read-only to the enduser

Asked By HelpNeede
28-Jan-07 06:46 AM
How about selecting choice option while creating column.

Look for SPField

Asked By Gonçalo Boléo
13-Mar-07 01:33 PM
Look for SPField properties:
ShowInDisplayForm
ShowInEditForm
ShowInListSettings
ShowInNewForm
etc...

field.ShowInNewForm = false
etc...
field.update

You can also edit the Documento Information Panel that Word shows in Infopath

Asked By Gonçalo Boléo
13-Mar-07 01:37 PM
You can also edit the Documento Information Panel that Word shows in
Infopath and delete that field.
Solved?
Asked By lan
17-Mar-09 12:15 PM
Hi Mark,

Did you get it to work? Could you please help?

thanks
lan
Post Question To EggHeadCafe