Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Make Check In Comment required

  Asked By: Donavan    Date: Feb 20    Category: Sharepoint    Views: 5924

I have a shared document folder (down three layers) that they want the
"Check In Comment" to be mandatory.

I know how to add a column and make it required but not the "Check in
Comment" field.

We do not want to mandate this for the entire site collection, just for
this shared docs folder.

Any clues?

Share: 

 

6 Answers Found

 
Answer #1    Answered By: Nidhi Tiwary     Answered On: Feb 20

Without a sharepoint site  in front of me to play with, one way to do
this is to create a event handler. There may be easier approaches.

 
Answer #2    Answered By: Beatrice Serrano     Answered On: Feb 20

If I remember correctly Event Handlers apply to the entire  SP Web (i.e.
web application) not to a list/library. So that's a bit more than
desired.

Any other ideas?

 
Answer #3    Answered By: Maya Lewis     Answered On: Feb 20

Sorry, that is not true. You can bind an event handler to a specific list.

 
Answer #4    Answered By: Paola Mcmahon     Answered On: Feb 20

Associating with a specific list can only be done programatically.

Declaratively, you only get ListTemplateId plus ListTemplateOwner (GUID
of its creator: Feature or Site Definition).

For example, in the Feature Elements.xml file you may set the Receivers
element as follows:
<Receivers ListTemplateId="104">

Note that ListTemplateId is required. Specifying something like 104
means that all Announcements lists within the scope of the Feature will
be affected by the Event Receiver.

 
Answer #5    Answered By: Justin Mckee     Answered On: Feb 20

You can use feature to associate with a list template, and then in the receiver
class, programmatically filter out all other list instance by URL so that
nothing happen to all other lists even with a same template.

 
Answer #6    Answered By: Jared Bell     Answered On: Feb 20

I have been trying to make  the EventHandler for ItemCheckingIn and can't
quite seem to get it correct.

It is for a Shared Document folder  (ListTemplateId = 101). I am not
having a problem building the feature or activating and installing it.

The CheckInComment is under SPFile and returns the current (old)
comment.

The AfterProperties seems to at the SPListItem level not SPfile, because
it never finds a CheckInComment.

Could you please point me in the right direction?

 
Didn't find what you were looking for? Find more on Make Check In Comment required Or get search suggestion and latest updates.




Tagged: