Answered by:
How to Know When New Item is Added of Updated in SharePoint list

Question
-
Hi All,
I have a List with some imp items, What I want to know is When the new Item is added or updated the existing list item then I want pop up a message of newly added item ID or updated item ID using Visaulwebpart.Can any one help me how can I do it
Thanks, Quality Communication Provides Quality Work. Mohammad Siddiqali.Friday, January 27, 2012 11:29 AM
Answers
-
You can enable alerts which will send an email to the users if item is added or editted.
If however you want a popup sort of thing in a custom web part. You can possibly do the following:
1. Write code in the visual web part to check last modified date (If it is greater than the time the code was last run)
2. Refresh every 1 min or 5 mins the webpart by adding the following code in the master page:
<meta http-equiv="refresh" content="300" />
This refreshes the page every 3 seconds.
Varun Malhotra
=================
Please Mark As Answer if my post solves your problem or Vote As Helpful if a post has been helpful for you.- Proposed as answer by Sarathi R Friday, January 27, 2012 1:08 PM
- Marked as answer by Shimin Huang Wednesday, February 1, 2012 8:38 AM
Friday, January 27, 2012 11:41 AM -
Links for CAML query:
http://blog.richardramdat.com/2010/01/sharepoint-caml-query-date/
Use of ECMA script for popups:
http://www.a2zmenu.com/Blogs/SharePoint/SharePoint%202010%20Model%20Dialog.aspx
Varun Malhotra
=================
Please Mark As Answer if my post solves your problem or Vote As Helpful if a post has been helpful for you.- Marked as answer by Shimin Huang Wednesday, February 1, 2012 8:38 AM
Friday, January 27, 2012 11:54 AM
All replies
-
You can enable alerts which will send an email to the users if item is added or editted.
If however you want a popup sort of thing in a custom web part. You can possibly do the following:
1. Write code in the visual web part to check last modified date (If it is greater than the time the code was last run)
2. Refresh every 1 min or 5 mins the webpart by adding the following code in the master page:
<meta http-equiv="refresh" content="300" />
This refreshes the page every 3 seconds.
Varun Malhotra
=================
Please Mark As Answer if my post solves your problem or Vote As Helpful if a post has been helpful for you.- Proposed as answer by Sarathi R Friday, January 27, 2012 1:08 PM
- Marked as answer by Shimin Huang Wednesday, February 1, 2012 8:38 AM
Friday, January 27, 2012 11:41 AM -
Hi Varun,
Thanks for providing good idea,I request you to provide me some links
Thanks, Quality Communication Provides Quality Work. Mohammad Siddiqali.Friday, January 27, 2012 11:42 AM -
Varun's approach makes sense... but one thing I would recommend is to use a ECMA script code to get the data and create pop up.. in that case the whole page won''t be refreshed and all the calls will be made async...
Just a thought....
"T" | My blog updates | My Twitter | Our Products | Mail Me | LinkedIn | My Virtual Business CardFriday, January 27, 2012 11:45 AM -
Links for CAML query:
http://blog.richardramdat.com/2010/01/sharepoint-caml-query-date/
Use of ECMA script for popups:
http://www.a2zmenu.com/Blogs/SharePoint/SharePoint%202010%20Model%20Dialog.aspx
Varun Malhotra
=================
Please Mark As Answer if my post solves your problem or Vote As Helpful if a post has been helpful for you.- Marked as answer by Shimin Huang Wednesday, February 1, 2012 8:38 AM
Friday, January 27, 2012 11:54 AM