text item validation [message #79968] |
Tue, 30 July 2002 05:15 |
Victoria
Messages: 152 Registered: July 2002
|
Senior Member |
|
|
Hi,
i have few text items and save button in my form.
The first text item is primary key item.
If I want to correct any of the fields associated with particular key,the first text item(key for which the correction to be made in the database)should be entered by the user.
So while entering the user should not be allowed to enter non existing value for that key field.for that i have wrritten enough code in when-validate-item trigger of that text item.
but the prob is even after entering non existing value in the key field,if the user enters some value in other text items by clicking mouse pointer there,upon click of save button the correction( i mean here insertion of new record due to non existant key is taking place).
Can any one tell me how to avoid this by setting any property of that key text item,
so that the focus should not be getting shifted from that item, until otherwise existing value is entered on that field by the user?
Thanks in advance
victoria
|
|
|
|
|