I have added another small usability enhancement to the ApexLib Framework.
When you call the API
ApexLib_Browser.checkForUpDownKey;
it will register the keys Up and Down to navigate to the previous/next record in a Tabular Form. This should work for manually build (with Apex_Item) and also for the default updateable Tabular Forms.
It is by intention that the Up/Down key doesn’t work on textareas and select lists, because on that type of field the Up/Down is used by the widget.
Try it out on the ApexLib Feature Demonstration site.
.




February 9th, 2007 at 07:41
Very cool feature!
The tabular form is starting to feel like a “native” grid control.
February 9th, 2007 at 07:42
Could it be made to jump to the next field when pressing right/left arrow, if one is at the end of the contents in the field?
February 9th, 2007 at 07:46
I’m not sure if that would be a useful feature, because if you have text fields with eg 40 char it takes 40 key presses (or staying on the key) until it would jump into the next field. Or do you mean something different?
Patrick
February 11th, 2007 at 23:46
Yes, that’s the way it works in “native” (Windows) grid controls; you must arrow through all the letters in the cell, but after that it jumps to the next cell.
Alternatively (or in addition), you could jump directly to the next/previous cell if you press Ctrl + right/left arrow.
February 12th, 2007 at 01:54
Ctrl + left/right sounds useful, I will create a change request for that.
But it may take a while to implement it, because in JavaScript there is no “sendKey” or something similar to simulate going to the next field. Just going to the field next to the current one is also no option because the order could be changed with tabindex…
Patrick
March 8th, 2007 at 03:20
Hi Patrick,
I am more newbie to APEX than you are .Hence this silly question.
How does one hide the row slector check box in a tabular form.
When I try to hide it, i get an MRU exception on pressing submit. Your advice will be much appreciated.
Thanks in advance
-V
March 8th, 2007 at 03:24
Just delete the row selector column.
What type of exception do you get?
You can write me an e-mail, you can find it in my blog profile. That’s easier for communication.
Patrick
September 26th, 2007 at 06:05
Hi Patrick,
I am trying to integrate this. Call you explain to me where I need to call the ApexLib_Browser.checkForUpDownKey; API? Where do I add this code?
Thanks
V
September 26th, 2007 at 06:09
Hi,
it’s some code you have to put into a page 0 region. See the How-To Integrate document (http://inside-apex.blogspot.com/2006/12/apexlib-framework-how-to-integreate.html) in chapter 3.3
Patrick