Home » Developer & Programmer » Forms » make the cursor at an item (oracle forms 10g ,win xp pack 2)
make the cursor at an item [message #575717] Fri, 25 January 2013 15:59 Go to next message
goldray
Messages: 104
Registered: December 2012
Senior Member
Hi,
I have a button "clear" , I want when the button is clicked the items will be cleared and the cursor is at the first item, here is the code:
:emp.id:=null;
:emp.ename:=null;
:emp.sal:=null;
go_item('emp.id');

=>but the problem that the item changes color, but the cursor remains at the button "clear"

NOTE:
I used the "when-new-item-instance" trigger to change the color of text items
Re: make the cursor at an item [message #575736 is a reply to message #575717] Sat, 26 January 2013 04:32 Go to previous messageGo to next message
Littlefoot
Messages: 19811
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Why wouldn't you, rather, utilize CLEAR_BLOCK or CLEAR_FORM (which automatically sets the focus into the first item of the first block) instead?
Re: make the cursor at an item [message #575740 is a reply to message #575736] Sat, 26 January 2013 08:57 Go to previous messageGo to next message
goldray
Messages: 104
Registered: December 2012
Senior Member
i used this code :
go_block('emp');
clear_block(no_validate);


I encountered the same problem !

indications:

I used a block based, the button "clear" to block appatient "EMP", it is a form (not tabular) and the form contains 2 blocks.
Re: make the cursor at an item [message #575853 is a reply to message #575717] Mon, 28 January 2013 08:40 Go to previous message
joy_division
Messages: 4546
Registered: February 2005
Location: East Coast USA
Senior Member
goldray wrote on Fri, 25 January 2013 16:59
=>but the problem that the item changes color, but the cursor remains at the button "clear"

I used a block based, the button "clear" to block appatient "EMP", it is a form (not tabular) and the form contains 2 blocks.


I'm having a hard time following what you are saying, but what if you set the keyboard navigable and mouse navigable property to NO for the button?

[Updated on: Mon, 28 January 2013 08:41]

Report message to a moderator

Previous Topic: Forms Run time Center in web
Next Topic: Forms calling a Rich Text Format file.
Goto Forum:
  


Current Time: Wed Nov 26 21:11:43 CST 2014

Total time taken to generate the page: 0.10449 seconds