Home » Developer & Programmer » Forms » How to set focus to a particular text item? (Oracle Developer Suite 10g, Windows XP)
How to set focus to a particular text item? [message #354582] Mon, 20 October 2008 07:57 Go to next message
ranjith_amrita
Messages: 44
Registered: August 2008
Location: Coimbatore
Member
Hi,

How to set focus to a text item? I am doing some validation and if it fails I want to set the focus to the same text box. How to do it? Please help me...
Re: How to set focus to a particular text item? [message #354589 is a reply to message #354582] Mon, 20 October 2008 08:23 Go to previous messageGo to next message
cookiemonster
Messages: 12403
Registered: September 2008
Location: Rainy Manchester
Senior Member
go_item
Re: How to set focus to a particular text item? [message #354590 is a reply to message #354582] Mon, 20 October 2008 08:23 Go to previous messageGo to next message
saadatahmad
Messages: 452
Registered: March 2005
Location: Germany/Paderborn
Senior Member

hi,
In When-Validate-Item trigger, write the following
if your_validation_fails then
 message('You can raise a message here');
 raise form_trigger_failure;
end if;

e.g:
for emp table. You can write this validation in the form

if sal < 100 then
 message('You cannot enter a value below 100');
 raise form_trigger_failure;
end;


regards,
Saadat Ahmad
Re: How to set focus to a particular text item? [message #354608 is a reply to message #354589] Mon, 20 October 2008 09:59 Go to previous message
ranjith_amrita
Messages: 44
Registered: August 2008
Location: Coimbatore
Member
Hi...

Thanks for your reply...

Ranjith
Previous Topic: from message
Next Topic: Set Attribute
Goto Forum:
  


Current Time: Fri Dec 02 16:51:11 CST 2016

Total time taken to generate the page: 0.44051 seconds