Home » Developer & Programmer » Forms » How can we Check two text item string correct or not ? (Oracle 10G form, XP)
How can we Check two text item string correct or not ? [message #414825] Thu, 23 July 2009 12:52 Go to next message
talk2dhara
Messages: 1
Registered: July 2009
Location: Chennai
Junior Member

Hi to all,

I have designed one for form to register new user, it has password and retype password fields. Now i need to check both text items entered values or correctly or not.

if correctly means cursor move to next item otherwise cursor back to password field.

here i my coding. please guide me to solve it.

WHEN-VALIDATE-ITEM TRIGGER IN RETYPE_PASSWoRD TEXT BOX.
---------
begin

if :sign_up.pasword = :sign_up.retype_password then
go_field('sign_up.DOJ');
else
message(' passwoed does not match, please enter two fields correctly');
go_field('signup.pasword');
end if;

end;
--------------


thanks

Dhara
Re: How can we Check two text item string correct or not ? [message #414841 is a reply to message #414825] Thu, 23 July 2009 15:03 Go to previous message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
You can't use GO_ITEM in WHEN-VALIDATE-ITEM trigger as it is a restricted procedure (read more about them in Forms Online Help System). Basically, there's no need to navigate anywhere: if validation is OK, don't do anything - Forms will navigate to the next item itself. Otherwise, raise an error. Something like this:
if :new_password = :retyped_new_password then
   null;
else
   message('You did not retype it correctly');
   raise form_trigger_failure;
end if;
Previous Topic: Radio_button for null values
Next Topic: Can i link two database in same machine
Goto Forum:
  


Current Time: Fri Sep 20 09:26:49 CDT 2024