Method %OnNew(initval As %String) As %Status { // ForEach property in Parent // If this.property == "" Then this.property = Parent.property // I wonder if %OnNew() can be a generator method?
by definition, if its NEW then ALL values are NULL so EVERY property will be the parents property !
Good point. I knew there was something fishy about posting on an empty stomach :)
Seriously though, I wanted to make an example which could work for both %OnNew() and %OnOpen() (but I don't quite remember if this last callback actually exists...)
Method %OnAddToSaveSet() { // ForEach property in this class // If this.property == Parent.property Then this.property = "" }
need to rethiink here, inheritance won't work when any property is mandatory and minimum length !
I didn't quite get this?
and in case, your wondering, no, I haven't a solution, just observations ;-{
Very welcome nonetheless! :)
-- ZCacheLib - Open Source Extensions for Cach� http://www.zcachelib.org
