Home » Developer & Programmer » Forms » Logon Authentication (forms 6i, XP)
Logon Authentication [message #340025] Mon, 11 August 2008 01:52 Go to next message
myclassic
Messages: 127
Registered: December 2006
Location: Pakistan
Senior Member
Dear Sir,

I am using this trigger on NEW_FORM_INSTANCE

logout;
logon('scott@local','tiger');
execute_query;

where scott is username , local is my DB string and tigger is password.

I want to perform two different tasks on
either successful log on or failure.

if logon is succcess then
execute_query;
else it must show some cuomize message....(you are not logged on).....

how is it possible?????

regards.
Re: Logon Authentication [message #340051 is a reply to message #340025] Mon, 11 August 2008 04:32 Go to previous messageGo to next message
gurupatham
Messages: 66
Registered: March 2008
Location: Chennai
Member
try to solve your problem by using Form_Success
Ex:

if form_success then
	Message('Success');
else
	Message('Not Logged on');
end if;

Re: Logon Authentication [message #340206 is a reply to message #340051] Mon, 11 August 2008 23:25 Go to previous messageGo to next message
myclassic
Messages: 127
Registered: December 2006
Location: Pakistan
Senior Member
gurupatham wrote on Mon, 11 August 2008 04:32
try to solve your problem by using Form_Success
Ex:

if form_success then
	Message('Success');
else
	Message('Not Logged on');
end if;




Dear Sir

Thanks for the reply.

I have already tried this option on ON-Logon Trigger, Post-Logon Trigger....... but it is of no use...... this does not solve the problem....

please do some thing.....

regards.
Re: Logon Authentication [message #340738 is a reply to message #340206] Thu, 14 August 2008 01:49 Go to previous messageGo to next message
gurupatham
Messages: 66
Registered: March 2008
Location: Chennai
Member
Use the following Code in On-Logon Trigger .
It must work ,in case any problem in Logon ,it goes to the else part where you can give your own customize message and exit the form.

Logon('scott@local','tiger' ,false );

IF form_success then
Message('in');pause;
else
message('Out');pause;
end if;
Re: Logon Authentication [message #341229 is a reply to message #340738] Sun, 17 August 2008 22:51 Go to previous message
myclassic
Messages: 127
Registered: December 2006
Location: Pakistan
Senior Member
thanks dear

it really worked.

regards.
Previous Topic: Insert Blob from Client Machine
Next Topic: running forms
Goto Forum:
  


Current Time: Sun Dec 04 18:47:49 CST 2016

Total time taken to generate the page: 0.10011 seconds