|
Home > Archive > Microsoft Content Management Server > July 2005 > LastModifiedDate gets updated when in locked mode
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
LastModifiedDate gets updated when in locked mode
|
|
|
| Hi,
I am developing an application in which I have to check the last modified
date with the user's last logged in time. I have a problem when comparing
these dates. The Last modified Date of a posting gets updated to the date on
which it is modified even though it wasnt submitted or approved. Because of
this, my application gives a wrong message to the user that there is a new
message for him.
I had used posting.LastModifiedDate() in published mode and compared with
the last logged in time of the user. Can some one please tell me where I am
going wrong?
Thanks in advance!!
| |
| Stefan [MSFT] 2005-07-27, 7:50 am |
| Hi Nanda,
you are not going wrong, that is how it works.
The LastModifiedDate property is not versioned.
Means all versions of the postings will have the same LastModifiedDate.
If you update the page then you are modifying it. Not only when doning an
approve!
I would suggest to create a custom property and to store the value you are
interested in in this custom property (e.g.) in a workflow event.
Similar methods have been discussed in the following book:
http://tinyurl.com/6zj44
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------
"Nanda" <Nanda@discussions.microsoft.com> wrote in message
news:D700405F-6C6B-4C3D-AC15-FEA8962603EC@microsoft.com...
> Hi,
>
> I am developing an application in which I have to check the last modified
> date with the user's last logged in time. I have a problem when comparing
> these dates. The Last modified Date of a posting gets updated to the date
> on
> which it is modified even though it wasnt submitted or approved. Because
> of
> this, my application gives a wrong message to the user that there is a new
> message for him.
>
> I had used posting.LastModifiedDate() in published mode and compared with
> the last logged in time of the user. Can some one please tell me where I
> am
> going wrong?
>
> Thanks in advance!!
|
|
|
|
|