Home » Developer & Programmer » Forms » How to use right key(-->) move the focus on the third button? (Oracle form 9i + winXP)
How to use right key(-->) move the focus on the third button? [message #350122] Wed, 24 September 2008 02:55 Go to next message
kevin_ye
Messages: 37
Registered: December 2007
Location: Shanghai,China
Member
I have created an alert and a button. when i click the button, the alert will show. The button's WHEN-BUTTON-PRESSED code as followling:

declare
  lv_alert alert;
  lv_button number;
begin
  lv_alert := find_alert('ALERT_TEST'); 
  set_alert_property(lv_alert, title, 'Test');
  set_alert_property(lv_alert, alert_message_text, 'This is a test alert!');
  set_alert_button_property(lv_alert,alert_button1,label,'Yes');
  set_alert_button_property(lv_alert,alert_button2,label,'No');
  set_alert_button_property(lv_alert,alert_button3,label,'Cancel');
  lv_button := SHOW_ALERT(lv_alert);
end;


But after cliking the button, the right key(-->) can only move the focus on the second button, it cannot move to the third button, unless you use tab key.

Can anyone tell me How to use right key(-->) move the focus on the third button? Thanks.
  • Attachment: alert.JPG
    (Size: 9.33KB, Downloaded 142 times)
Re: How to use right key(-->) move the focus on the third button? [message #350128 is a reply to message #350122] Wed, 24 September 2008 03:01 Go to previous messageGo to next message
rajy_salim
Messages: 204
Registered: January 2008
Location: Beirut - Lebanon
Senior Member
Check the type of the alert you have created!
Re: How to use right key(-->) move the focus on the third button? [message #350131 is a reply to message #350128] Wed, 24 September 2008 03:09 Go to previous messageGo to next message
kevin_ye
Messages: 37
Registered: December 2007
Location: Shanghai,China
Member
The type of the alert is alert.
I have tried the other 2 type of the alert(stop/note), but the problems stay the same.
Re: How to use right key(-->) move the focus on the third button? [message #350140 is a reply to message #350122] Wed, 24 September 2008 03:38 Go to previous messageGo to next message
rajy_salim
Messages: 204
Registered: January 2008
Location: Beirut - Lebanon
Senior Member
What version are you using?
I just tried it on 6i with the same code you provided and it worked perfectly!!
Re: How to use right key(-->) move the focus on the third button? [message #350141 is a reply to message #350140] Wed, 24 September 2008 03:45 Go to previous messageGo to next message
kevin_ye
Messages: 37
Registered: December 2007
Location: Shanghai,China
Member
Forms [32 bit] Version 9.0.4.0.19 (Production)
Oracle8i Enterprise Edition Release 8.1.7.4.0 - Production
With the Partitioning option
JServer Release 8.1.7.4.0 - Production
Oracle Toolkit Version 9.0.4.0.31 (Production)
PL/SQL Version 9.0.1.5.1 (Production)
Oracle Procedure Builder V9.0.3.5.0 Build #1641 - Production
PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
Oracle Query Builder 9.0.4.0.6 - Production
Oracle Virtual Graphics System Version 9.0.1.11.0 (Production)
Oracle Tools GUI Utilities Version 9.0.4.0.11 (Production)
Oracle Multimedia Version 9.0.4.0.11 (Production)
Oracle Tools Integration Version 9.0.4.0.0 (Production)
Oracle Tools Common Area Version 9.0.2.12.0
Oracle CORE 9.0.1.5.1 Production
Re: How to use right key(-->) move the focus on the third button? [message #350369 is a reply to message #350141] Wed, 24 September 2008 19:50 Go to previous messageGo to next message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Intersting!!

I'm running:
Forms [32 Bit] Version 10.1.2.0.2 (Production)
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
Oracle Toolkit Version 10.1.2.0.2 (Production)
PL/SQL Version 10.1.0.4.2 (Production)
Oracle Procedure Builder V10.1.2.0.2 - Production
PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
Oracle Query Builder 10.1.2.0.2 - Production
Oracle Virtual Graphics System Version 10.1.2.0.2 (Production)
Oracle Tools GUI Utilities Version 10.1.2.0.2 (Production)
Oracle Multimedia Version 10.1.2.0.2 (Production)
Oracle Tools Integration Version 10.1.2.0.2 (Production)
Oracle Tools Common Area Version 10.1.2.0.2
Oracle CORE 10.1.0.4.0 Production

Using the three alerts available to me, 'Stop', 'Caution', and 'Note', I also can only access 'Yes' and 'No' with the arrow keys. If I define the 'Default Alert Button' to 'Button 3' (and define a 'Button 3 Label' in Forms Builder) the arrow keys will not move the focus out of the 'Cancel' button.

Looks like there is not choice in this matter. Remember that you CAN use the 'tab' key or the mouse or press 'c' to 'Cancel' the alert.

David

[Updated on: Wed, 24 September 2008 19:51]

Report message to a moderator

Re: How to use right key(-->) move the focus on the third button? [message #350385 is a reply to message #350369] Wed, 24 September 2008 21:19 Go to previous messageGo to next message
kevin_ye
Messages: 37
Registered: December 2007
Location: Shanghai,China
Member
thank you for your suggestion.
may be it is a oracle form(>=9i)'s bug.

[Updated on: Wed, 24 September 2008 21:21]

Report message to a moderator

Re: How to use right key(-->) move the focus on the third button? [message #350386 is a reply to message #350385] Wed, 24 September 2008 21:29 Go to previous messageGo to next message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
I do not believe that this is a bug. I believe that this is the way that Oracle designed it.

David
Re: How to use right key(-->) move the focus on the third button? [message #350387 is a reply to message #350386] Wed, 24 September 2008 21:47 Go to previous messageGo to next message
kevin_ye
Messages: 37
Registered: December 2007
Location: Shanghai,China
Member
Re: How to use right key(-->) move the focus on the third button? Wed, 24 September 2008 03:38
rajy_salim

What version are you using?
I just tried it on 6i with the same code you provided and it worked perfectly!!


rajy_salim said, he can move the focus to the third button in form 6i.

by the way, i don't think it is a good design to restrick people use right key to move, the end user think it's not convenience. Because people always use left key or right key to move focus in window. For other development tools, such as vb\java, they can use right key to move.
Re: How to use right key(-->) move the focus on the third button? [message #350402 is a reply to message #350122] Wed, 24 September 2008 23:38 Go to previous messageGo to next message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Interesting. I just ran a test in Forms 6.0 on AIX and the arrow keys did not move the focus at all. I also ran a similar test in Forms 4.5 on AIX and the buttons appeared 'Yes', 'Cancel', then 'No' and the arrow keys DID work.

David

[Updated on: Wed, 24 September 2008 23:39]

Report message to a moderator

Re: How to use right key(-->) move the focus on the third button? [message #350417 is a reply to message #350402] Thu, 25 September 2008 00:33 Go to previous messageGo to next message
kevin_ye
Messages: 37
Registered: December 2007
Location: Shanghai,China
Member
djmartin, thank you so much.
you are a warmhearted people, and have rich experience in oracle form.
Re: How to use right key(-->) move the focus on the third button? [message #350424 is a reply to message #350122] Thu, 25 September 2008 00:52 Go to previous messageGo to next message
rajy_salim
Messages: 204
Registered: January 2008
Location: Beirut - Lebanon
Senior Member
Dear,

I am pretty sure that it's working with FORMS 6i (6.0.8.21).
Find attached the form I ran using FORMS with the version above.

Rajy

[Updated on: Thu, 25 September 2008 00:53]

Report message to a moderator

Re: How to use right key(-->) move the focus on the third button? [message #350432 is a reply to message #350424] Thu, 25 September 2008 01:02 Go to previous messageGo to next message
kevin_ye
Messages: 37
Registered: December 2007
Location: Shanghai,China
Member
do you mean you can use right key(-->) move the focus on the third button(cancel)?
Re: How to use right key(-->) move the focus on the third button? [message #350439 is a reply to message #350122] Thu, 25 September 2008 01:17 Go to previous messageGo to next message
rajy_salim
Messages: 204
Registered: January 2008
Location: Beirut - Lebanon
Senior Member
Exactly!! I can use the right arrow to move to the 'cancel' button, even I can use the left arrow to navigate backwards, and the up and down arrows to navigate between the THREE buttons.
Re: How to use right key(-->) move the focus on the third button? [message #350440 is a reply to message #350439] Thu, 25 September 2008 01:20 Go to previous messageGo to next message
kevin_ye
Messages: 37
Registered: December 2007
Location: Shanghai,China
Member
woo...it's so interesting.
but djmartin said his Forms 6.0 on AIX cannot, and the Forms 4.5 on AIX can move to the third button.
thank you.

[Updated on: Thu, 25 September 2008 01:21]

Report message to a moderator

Re: How to use right key(-->) move the focus on the third button? [message #350451 is a reply to message #350122] Thu, 25 September 2008 01:59 Go to previous messageGo to next message
rajy_salim
Messages: 204
Registered: January 2008
Location: Beirut - Lebanon
Senior Member
I don't really know what the AIX you are talking about is, but what I know is that the attached FMB is working perfectly using the mentioned version of forms and winXP.
Try to run it on FORMS 6i, or wait for somebody who can try it and gives his feedback.

Rajy
Re: How to use right key(-->) move the focus on the third button? [message #350470 is a reply to message #350451] Thu, 25 September 2008 03:09 Go to previous messageGo to next message
kevin_ye
Messages: 37
Registered: December 2007
Location: Shanghai,China
Member
AIX is an Unix OS(Operating system), such as linux, but more usability and complicated, usually used in server.
Windows Operating System is GUI,
but people use AIX and other unix system always by comand line.

[Updated on: Thu, 25 September 2008 03:10]

Report message to a moderator

Re: How to use right key(-->) move the focus on the third button? [message #350474 is a reply to message #350122] Thu, 25 September 2008 03:22 Go to previous messageGo to next message
rajy_salim
Messages: 204
Registered: January 2008
Location: Beirut - Lebanon
Senior Member
Thank you for your explanation!

I have never used ORACLE under Unix, my work is under winXP.
But obviously, it's not an OS issue, since David tried it on AIX and it didn''t work with you under winXP.

Rajy
Re: How to use right key(-->) move the focus on the third button? [message #350660 is a reply to message #350474] Thu, 25 September 2008 18:23 Go to previous messageGo to next message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
That the apparent behaviour is so different between versions I would suggest training your users to use the 'Enter' for 'default', then 'Y', 'N', and 'C' keys to handle to rest.

David

[Updated on: Thu, 25 September 2008 18:24]

Report message to a moderator

Re: How to use right key(-->) move the focus on the third button? [message #350715 is a reply to message #350122] Fri, 26 September 2008 00:48 Go to previous messageGo to next message
rajy_salim
Messages: 204
Registered: January 2008
Location: Beirut - Lebanon
Senior Member
@David

Did you try the above FMB with FORMS 6i and winXP??
Re: How to use right key(-->) move the focus on the third button? [message #350718 is a reply to message #350660] Fri, 26 September 2008 00:52 Go to previous messageGo to next message
kevin_ye
Messages: 37
Registered: December 2007
Location: Shanghai,China
Member
right,
there is not other solution,
so i will suggest my user to use tab key or shorcut key('Y','N','C')
Re: How to use right key(-->) move the focus on the third button? [message #350880 is a reply to message #350718] Fri, 26 September 2008 16:27 Go to previous messageGo to next message
Littlefoot
Messages: 20901
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Or, alternatively, teach your users how to use a mouse and perform a left mouse click.
Re: How to use right key(-->) move the focus on the third button? [message #350997 is a reply to message #350715] Sun, 28 September 2008 20:53 Go to previous message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
I do not have access to Forms 6i.

David
Previous Topic: Connection problems after Developer Suite reinstallation
Next Topic: Going about with creating reusable components
Goto Forum:
  


Current Time: Thu Dec 08 18:45:03 CST 2016

Total time taken to generate the page: 0.25610 seconds