Forums / Setup & design / Changing an objects value from page
Matthew Rat
Thursday 05 June 2003 6:42:18 am
I set up an information collector of an integer/numeric type in a class that essentially extends the article class type. I would like to read the value and increment it by one every time that article is displayed. Is this easy or even possible given the current framework?
Bård Farstad
Thursday 05 June 2003 6:44:37 am
This can be done, but the problem is that you cache the view. This means that it will only be executed when it's not cached and hence the counter will not be correct.
--bård
Documentation: http://ez.no/doc
Thursday 05 June 2003 7:55:09 am
Ok, makes sense. How would I do such a thing (ignoring the glaring problem of caching)? I assume I FETCH the object somehow and then use a SET or something on it?