A
Abe Hendin
I'm coming back to this OLXP project after maybe a year away to update a
few things, and I'm seeing behavior I don't remember. I'm hoping
bouncing it around here will get me back on track and out of this
confoundeed brain cramp...
I've got a field, StudentStatus, on a custom Contact form. When a new
contact is created, that field's initial value is set to "Not a Student"
by the control itself: that is, I've specified the initial value
property on the control.
The trouble is that this is triggering the CustomPropertyChange event,
which then throws up an error box that shouldn't be triggered when the
contact is first created, only when the user changes the StudentStatus
manually (and if certain conditions apply). Is it always the case that
specifying an init value on a custom control will trigger a
CustomPropertyChange event during the Item_Open event?
In another set of routines I set a "Processing" flag to prevent
CustomPropertyChange events from firing up subroutines when I don't want
them to, and I suppose I could try the same here, in the hopes that
setting that flag as the first entry in the Item_Open event SUB will be
early enough to catch it. I just don't remember this behavior in this
case previously, and I'm wondering if anyone can shed light on it.
Thanks for any thoughts,
Abe
few things, and I'm seeing behavior I don't remember. I'm hoping
bouncing it around here will get me back on track and out of this
confoundeed brain cramp...
I've got a field, StudentStatus, on a custom Contact form. When a new
contact is created, that field's initial value is set to "Not a Student"
by the control itself: that is, I've specified the initial value
property on the control.
The trouble is that this is triggering the CustomPropertyChange event,
which then throws up an error box that shouldn't be triggered when the
contact is first created, only when the user changes the StudentStatus
manually (and if certain conditions apply). Is it always the case that
specifying an init value on a custom control will trigger a
CustomPropertyChange event during the Item_Open event?
In another set of routines I set a "Processing" flag to prevent
CustomPropertyChange events from firing up subroutines when I don't want
them to, and I suppose I could try the same here, in the hopes that
setting that flag as the first entry in the Item_Open event SUB will be
early enough to catch it. I just don't remember this behavior in this
case previously, and I'm wondering if anyone can shed light on it.
Thanks for any thoughts,
Abe