Re: Skipping fields ...
Date: Fri, 24 Sep 93 11:49:40 +0400
Message-ID: <AAKQgeiCpR_at_yarteh.yaroslavl.su>
Ray Chance wrote:
>Rodney Coleman (bigbod_at_cerberus.bhpese.oz.au) wrote:
>
>: I am trying to set up a form which has a field in it which
>: I want to skip ONLY if the user is entering a new record.
>: This field is between other fields in the new record.
>: I thought I would use a ON-NEW-FIELD-INSTANCE trigger on
>: the field with trigger code something like...
>: if (:system.record_status = 'NEW' or
>: :system.record_status = 'INSERT') then
>: next_field;
>: end if;
>: The problem is I want the cursor to continue navigating in
>: its original direction regardless of whether I enter this
>: field from the previous field or the next field.
>: Is there an easy way to do this ??
>
>I'd use a pre-field trigger on the field in question, and then in the
>trigger set the attribute of the field based on your record criteria.
>ex: if (:system.record_status in ('NEW','INSERT')) then
> set_field(:<field_in_question>,enterable,attr_off);
> end if;
>I'm not 100% certain of my syntax, but you get the idea. Pre-field will
>fire no matter which direction you approach the field (previous or next),
>and setting the attribute will have forms skip over it appropriately.
>RC
Yes, it would be nice, but documentation states:
' SET_FIELD cannot assign the Input Allowed characteristic for the current field.'
And It is so. Maybe last versons allow?
Regards,
Alex. Received on Fri Sep 24 1993 - 09:49:40 CEST