Custom "logon" form [message #362107] |
Mon, 01 December 2008 00:03 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
khalidmehz
Messages: 37 Registered: May 2008 Location: PAKISTAN
|
Member |
|
|
Hi Experts!
I want to change the look of default login screen. is it possible? if yes kindly tell me how i can change the default login screen?
regards
[MERGED by LF]
[Updated on: Mon, 01 December 2008 03:52] by Moderator Report message to a moderator
|
|
|
|
Logon and call a form error [message #362124 is a reply to message #362107] |
Mon, 01 December 2008 02:10 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
khalidmehz
Messages: 37 Registered: May 2008 Location: PAKISTAN
|
Member |
|
|
Hi Experts!
I have develop a login form. there is a username, password and connect string text items. on login button i want to login using username and password given by the user and call a form. login well but when i move to new form it shows no database connection because it dont show any data on that form. and when i press F8 it give a message Operation required database connection. what i should do to resolve this problem.
regards
|
|
|
|
Re: Change default login screen [message #378846 is a reply to message #362108] |
Fri, 02 January 2009 01:48 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
khalidmehz
Messages: 37 Registered: May 2008 Location: PAKISTAN
|
Member |
|
|
I have developed a logon screen for my application. but i want to handle exception like invalid username & password or connect string is invalid i have trape the error numbers but on logon function it takes lot of time. below is code whats problem in it. thanks for your kind suggestion...
DECLARE
v_dummy CHAR(1) := 'N';
v_alert NUMBER;
ALT NUMBER ;
BEGIN
IF ( :counter < 3 ) THEN
:counter := :counter + 1;
Logon(:UNAME, :PWD || '@'||:CSTRING, FALSE);
IF FORM_FAILURE THEN
IF DBMS_ERROR_CODE = -1017 THEN
SET_ALERT_PROPERTY('GENERAL_ERROR_ALERT',
ALERT_MESSAGE_TEXT, 'User name or password
is Incorrect') ;
ALT := SHOW_ALERT('GENERAL_ERROR_ALERT') ;
RETURN ;
ELSIF DBMS_ERROR_CODE = -12154 THEN
SET_ALERT_PROPERTY('GENERAL_ERROR_ALERT',
ALERT_MESSAGE_TEXT, 'Connect string is
Incorrect') ;
ALT := SHOW_ALERT('GENERAL_ERROR_ALERT') ;
RETURN ;
END IF ;
END IF ;
BEGIN
SELECT 'Y'
INTO v_dummy
FROM dual;
IF ( v_dummy = 'Y' ) THEN
New_Form('.\PAYROLL\FORM\HOME_PAYROLL.fmx');
END IF;
EXCEPTION
WHEN Others THEN
MESSAGE('Login Failed'||SQLERRM) ;message(' ') ;
END;
ELSE
Exit_Form;
END IF;
END;
best regards
Khalid Mehmood [EDITED by DJM: removed some superfluous tabs]
[Updated on: Thu, 08 January 2009 18:32] by Moderator Report message to a moderator
|
|
|
|
Re: Change default login screen [message #378893 is a reply to message #378882] |
Fri, 02 January 2009 05:34 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
khalidmehz
Messages: 37 Registered: May 2008 Location: PAKISTAN
|
Member |
|
|
i just check v_dummy for validation that i am successfully connected to database.
now the actual problem is when i provide wrong username, password and connect string but it ignore the form_failure condition. I check the code thoroughly but i cant find any problem there. when i provide wrong input it should move into if form_failure block...but it cant do like this... here is uncertain behaviour as described in oracle froms help...
regards
Khalid Mehmood
|
|
|
|
|
Re: Change default login screen [message #378946 is a reply to message #378945] |
Fri, 02 January 2009 22:20 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
khalidmehz
Messages: 37 Registered: May 2008 Location: PAKISTAN
|
Member |
|
|
I have tried to handle exception in ON-ERROR or ON-MESSAGE but these triggers not fired against these exceptions... its really unexpected behaviour... my form is attached herewith....
|
|
|
|
|