Microsoft Content Management Server - Alter Dates

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > March 2007 > Alter Dates





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 Alter Dates
Gabriel Pravaz

2007-03-14, 7:19 pm

Hello

I'm new working with cms,

i received a work where i have a process that does a loop between all the
postings from a posting collection on a cmsApplicationContext.

The new thing the customer wants is to update the "isModified" date if it
complies with a condition. Doing that, I get an error saying that isModified
property is read-only, thing that makes sense, but now i don't know if its
possible to do that.

any ideas?

thank you very much.

Gabriel Pravaz


Mei Ying

2007-03-15, 1:21 am

Hi Gabriel

The last modified date field is a system field and can't be changed via
code. Perhaps what you could do is to create a custom property and
update/display that instead. You could have an event handler update the
custom property each time a posting is modified based on the required
business rules.

regards
Mei Ying

"Gabriel Pravaz" <gabrielpravaz@hotmail.com> wrote in message
news:Okp3TJoZHHA.4620@TK2MSFTNGP05.phx.gbl...
> Hello
>
> I'm new working with cms,
>
> i received a work where i have a process that does a loop between all the
> postings from a posting collection on a cmsApplicationContext.
>
> The new thing the customer wants is to update the "isModified" date if it
> complies with a condition. Doing that, I get an error saying that
> isModified property is read-only, thing that makes sense, but now i don't
> know if its possible to do that.
>
> any ideas?
>
> thank you very much.
>
> Gabriel Pravaz
>
>



Gabriel Pravaz

2007-03-15, 1:23 pm

Thank you Mei


"Mei Ying" <someone@anonymous.com> escribió en el mensaje
news:O5jlNIsZHHA.4552@TK2MSFTNGP05.phx.gbl...
> Hi Gabriel
>
> The last modified date field is a system field and can't be changed via
> code. Perhaps what you could do is to create a custom property and
> update/display that instead. You could have an event handler update the
> custom property each time a posting is modified based on the required
> business rules.
>
> regards
> Mei Ying
>
> "Gabriel Pravaz" <gabrielpravaz@hotmail.com> wrote in message
> news:Okp3TJoZHHA.4620@TK2MSFTNGP05.phx.gbl...
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com