change the name of the field [message #432411] |
Tue, 24 November 2009 00:37 |
laith
Messages: 41 Registered: December 2008 Location: U.A.E
|
Member |
|
|
i have field called "pypstsm_date" and i wrote WHEN-NEW-ITEM-INSTANCE trigger on it to prevent going to next field when pressing tab, and this is the code:
message(':pypstsm_date',required);
so it is working but the problem is showing the name of the field
(pypstsm_date) in the bottom of the screen and i want to change it to just "DATE". How ??
|
|
|
Re: change the name of the field [message #432415 is a reply to message #432411] |
Tue, 24 November 2009 01:19 |
|
Littlefoot
Messages: 21823 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
In my opinion, you are doing that in a wrong manner. If an item is "required", then set its "Required" property to Yes. Now Forms will take care of it automatically.
Alternatively, verification should be done in the WHEN-VALIDATE-ITEM trigger (not the one you are using). In that case, you'd write your own message and raise an exception, such asif :pypstsm_date is null then
message('Date should be entered');
raise form_trigger_failure;
end if;
Besides, what about mouse navigation? You've said that you wanted to restrict <Tab> navigation (which is, actually, controlled by the KEY-NEXT-ITEM trigger).
|
|
|
|
|
Re: change the name of the field [message #432420 is a reply to message #432417] |
Tue, 24 November 2009 02:33 |
laith
Messages: 41 Registered: December 2008 Location: U.A.E
|
Member |
|
|
YES... the property is working if i go from key block to master block when i prss ctl+page down then click tab...the cursor will stick in the pypstsm_date field in the master block but if i go back to the key block through ROLLBACK and press ctl+page down again to go to master block(pypstsm_date) field then pressing tab ...the cursor will go to the next field which is i don't want the cursor to move to the next field.
|
|
|
|
|
|
|