looking field after leaving the field [message #296596] |
Mon, 28 January 2008 06:32  |
ashraf_al_ani
Messages: 92 Registered: October 2007 Location: Iraq
|
Member |
|
|
Dear all
I have a field is connected to a sequence on a trigger when new item instance
i want to lock the field after the focus leave it in order no body can change the sequence
then when i press save button the field will be unlock in order the sequence will work again
pls how can i do such thing , waqiting for your advice
best wishes
|
|
|
|
|
|
Re: looking field after leaving the field [message #296649 is a reply to message #296596] |
Mon, 28 January 2008 09:04   |
rajy_salim
Messages: 204 Registered: January 2008 Location: Beirut - Lebanon
|
Senior Member |
|
|
If the item is initialy enabled, and you disable it when moving to another item, you may face problems regarding that.
For example, if you open your form and execute query, the field is enabled and may be changed, so you can enter a value already entered or enter a value which is not the next value of the sequence, breaking by that your sequence. So its adviced to disable your item and either fill it in the PRE-INSERT trigger on the form level or BEFORE-INSERT on database level.
|
|
|
|