Mouse navigation validatation [message #583880] |
Mon, 06 May 2013 07:45 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](http://www.gravatar.com/avatar/c118ed8674fd7b53e109ddf1915ea26e?s=64&d=mm&r=g) |
neimad
Messages: 13 Registered: April 2013 Location: Canada
|
Junior Member |
|
|
Hello everyone.
I would like to know if with Oracle Forms Builder 11g, we can use mouse instead of TAB to validate record? And why Forms Builder use TAB or ENTER Key to validate record? I have a SAVE button, but i want to replace the TAB navigation validation by the mouse click. Is it possible?
Thanks for your advise.
|
|
|
|
Re: Mouse navigation validatation [message #583884 is a reply to message #583880] |
Mon, 06 May 2013 08:14 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](http://www.gravatar.com/avatar/c118ed8674fd7b53e109ddf1915ea26e?s=64&d=mm&r=g) |
neimad
Messages: 13 Registered: April 2013 Location: Canada
|
Junior Member |
|
|
Hi,
thanks for your reply.
The system works really good with TAB or Enter key, the mouse click works too if i change record, the problem, is in my form, i have action to validate textbox for exemple, the user want to stop using tab to make the action on the textbox but use mouse click.
Example : User enter date, after entering Date, they click every where in the form to validate the date, for now i can create a when-mouse-down trigger on the date textbox, but i don't want to generate trigger on each textbox to validate something.
They want to be independant on the block, or canvas, like if i have a canvas tab, and they click on master details, that validate canvas tab block.
Is that possible? I found nothing on that except with TAB key or ENTER Key..
thanks
|
|
|
Re: Mouse navigation validatation [message #583887 is a reply to message #583884] |
Mon, 06 May 2013 09:10 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](http://www.orafaq.com/forum/images/custom_avatars/72104.gif) |
Littlefoot
Messages: 21818 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
Quote:i don't want to generate trigger on each textbox to validate something
Well, maybe you should. I prefer validating items instantly, not as part of a record. Suppose that there's a record that contains 30 items. User enters different values (numbers, characters, dates, checkboxes, whatever) and - once he's over - he tries to save a record and then you start validation. You'll probably validate each item; then you'll inform user that there's an error "somewhere" in that record. Or you may even develop logic to point to an item that is faulty. User fixes it, saves the record again - you validate it, and inform user that yet another item is invalid. And another, and another.
Therefore, I'd opt for WHEN-VALIDATE-ITEM triggers and notify user instantly: "Hey, value you entered into that item is invalid - fix it before moving to another item!"
|
|
|
|
Re: Mouse navigation validatation [message #583891 is a reply to message #583889] |
Mon, 06 May 2013 09:45 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](http://www.orafaq.com/forum/images/custom_avatars/72104.gif) |
Littlefoot
Messages: 21818 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
I don't know what Forms thinks when you click outside of any item (i.e. somewhere on a canvas). It seems that it does nothing in that case. Maybe (I'm not even sure it would work and can't test it myself) you could put all item validations into separate procedures (and call them from WHEN-VALIDATE-ITEM triggers), create a timer which would - periodically - call a procedure which would, in turn, call all these "validation" procedures, one by one.
Nah, I don't like the idea particularly; it might confuse users. Imagine someone typing some delicate long number into an item. Then your procedure runs, says "that delicate long number item must not be NULL", deletes everything that poor user entered and, finally, cause user kill you kill me.
Hopefully, someone else will have a good idea.
|
|
|
|
|
|
Re: Mouse navigation validatation [message #679295 is a reply to message #679291] |
Thu, 20 February 2020 03:20 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
![](http://www.gravatar.com/avatar/80c349741b80fb155adbd6e324bc152a?s=64&d=mm&r=g) |
vijji294
Messages: 2 Registered: February 2020
|
Junior Member |
|
|
Hi,
Thank you. I figured out the issue. I have mouse navigate property set to No for the push button. That's why when validate item trigger was not fired when i navigate through mouse.
Thanks
|
|
|