navigating on varchar2 fields [message #110646] |
Wed, 09 March 2005 06:49 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
chandrakanth
Messages: 16 Registered: October 2001
|
Junior Member |
|
|
instead of go_item or go_field whats the method to go to particular varchar2 field after when-validate-item. whats the syntax for that..Ex: after validating code for duplicating if there is no duplicate then cursor shud move to the description else stop on the same field. i used if noduplicate go_item(field_name).It showing me error.
chandrakanth
|
|
|
|
|
Re: navigating on varchar2 fields [message #111255 is a reply to message #110646] |
Tue, 15 March 2005 01:24 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
Frank
Messages: 7901 Registered: March 2000
|
Senior Member |
|
|
It looks all pretty straightforward to me. If I enter a duplicate value, raise a form_trigger_failure in the WVI. If not, let ME decide where I want to go, so you just do NOTHING.
There are few things so annoying as a form in which the cursor does not follow my instructions: if I press key previous item, I do NOT want to go to the next item, just because the programmer thinks so.
(whoops, a little frustration came up here, no offense meant )
So, basically, just raise an error if the entry is a duplicate, otherwise do nothing.
hth
|
|
|