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

27-Jan-07 04:22:01
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
reply
 
 

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

28-Jan-07 06:46:01
How about selecting choice option while creating column.
reply
 

add a column to a Document Library as read-only to the enduser - Gonçalo Boléo

13-Mar-07 01:33:29
Look for SPField properties:
ShowInDisplayForm
ShowInEditForm
ShowInListSettings
ShowInNewForm
etc...

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

add a column to a Document Library as read-only to the enduser - Gonçalo Boléo

13-Mar-07 01:37:04
You can also edit the Documento Information Panel that Word shows in
Infopath and delete that field.
reply
 
Workflow, Email, Body Text, URL Not Clickable In Outlook 2003
promotion
Silverlight    WPF    WCF    WWF    LINQ   
JavaScript    AJAX    ASP.NET    XAML   
C#    VB.NET    VB 6.0    GDI+    IIS    XML   
.NET Generics    Anonymous Methods    Delegate   
Visual Studio .NET    Expression Blend    Virus   
Windows Vista    Windows XP    Windows Update   
Windows 2003 Server    Windows 2008 Server   
SQL Server    Microsoft Excel    Microsoft Word   
SharePoint    BizTalk    Virtual Earth   
.NET Compact Framework    Web Service   

"Everything" RSS / ATOM Feed Parser
How to send and receive messages through message queuing in .Net
How to Read text file as database
SQL Server 2005 Paging Performance Tip
Display code of web page.
Fully Scalable Excel File Importer class for .net using Microsoft Jet driver
Generic Chart Color Manager class that can be used for any charts
Helper class to style the infragistics wingrid
Using Reflection to detemine as Assembly Info in and out.
Helper class to play with Window (Owners and position)
Resolving displayname from the culture using the XmlLanguage and LanguageSpecificStringDictionary class