limit adding item for user
I agree with Hemendra. I recommend event handler. More info here: 2007: http://surpoint.blogspot.com/2009/12/manejadores-de-eventos-en-sharepoint.html Hope is helpful! Juan Pablo. surpoint.blogspot.com geeks.ms/blogs/jpussacq @jpussacq HispaPoint: comunidad sharepoint de habla hispana (Juan Pablo: don't post 2010 information in threads in the pre-2010 forums. Mike)
January 15th, 2011 2:59am

I agree with Hemendra. I recommend event handler. More info here: 2007: http://surpoint.blogspot.com/2009/12/manejadores-de-eventos-en-sharepoint.html 2010: http://surpoint.blogspot.com/2010/09/manejadores-de-eventos-en-sharepoint.html Hope is helpful!Juan Pablo. surpoint.blogspot.com geeks.ms/blogs/jpussacq @jpussacq HispaPoint: comunidad sharepoint de habla hispana
Free Windows Admin Tool Kit Click here and download it now
January 15th, 2011 6:56am

knowledge11: Please report back here once you have tried out Hemendra's suggestion. (So I can close the thread) Please note that follow-up Programming questions go to the Development and Programming forum. (This one fits in here only because at the time you asked you didn't know what kind of solution would be offered to you) Moderator SP 2010 "FAQ" (mainly useful links): http://wssv4faq.mindsharp.com/default.aspx WSS3/MOSS FAQ (FAQ and Links) http://wssv3faq.mindsharp.com/default.aspx Both also have links to extensive book lists and to (free) on-line chapters
January 15th, 2011 8:20am

hey, i have moss 2007. i want to know how can i set up a limit for adding item in a list. i mean that every user can add new item to a list only one time in a day. and in the next day. the same thing. if he will try to add a new item it will not be possible. hope that you can help me. thanks in advance
Free Windows Admin Tool Kit Click here and download it now
January 15th, 2011 8:24am

Hi, I think custom event handler is the best solution for this. You can use ItemAdding event and take "Created By" and "Created" columns for your validation. Your query should be like this: "<Where><And><Eq><FieldRef Name='Created By' /><Value Type='User'>Current user name</Value></Eq><Eq><FieldRef Name='Created'/><Value Type='DateTime'><Today /></Value></Eq></And></Where>"; If above condition is satisfied then you need to properties.Cancel = true; public override void ItemAdding(SPItemEventProperties properties) { //If condition is true then call this properties.Cancel = true; properties.ErrorMessage = "Deleting is not supported."; else // Allow to add } Refer this for creating event handler http://www.c-sharpcorner.com/UploadFile/Chandresh.P/EventHandler04292009070324AM/EventHandler.aspx http://farhanfaiz.wordpress.com/2007/12/31/creating-adding-an-event-handler/ Hope this could helpCheers, Hemendra-MCTS "Yesterday is just a memory,Tomorrow we may never see"
January 15th, 2011 8:41am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics