Additional
dbCAP
AnyDAC
ThinDAC
NCOCI8
Topic: Login dialog
[1 2 |Next ]
Login dialog
Posted: 2007/09/20 07:24
 
Helo

I've got user_name,password and database parameters in FormsLoginDialog VisibleItems property .. but Profile field is still visible .. Is it way to hide it ?
(I usually use it to connect to oracle)

Post edited by: Morff, at: 2007/09/20 07:25
Re:Login dialog
Posted: 2007/09/24 09:00
 
Hello

Set HistoryEnabled to False.

Regards,
Dmitry
Re:Login dialog
Posted: 2007/09/24 14:45
 
Hello Diman,

How could I capture if Cancel button was pressed? I tried to follow the sample provided, but honestly can't get it.

Could you give a basic sample?

thanks

merdjp
Re:Login dialog
Posted: 2007/09/25 01:32
 
Hello


 try   ADConnection1.LoginDialog := ADGUIxFormsLoginDialog1;   ADConnection1.Connected := True; except   on EEADException do     if E.ADCode er_AD_ClntDbLoginAborted then       ShowMessage('Login canceled !')     else       raise; end;

Re:Login dialog
Posted: 2007/09/25 16:50
 
Hello Diman,

thanks for your reply,,

I have placed my ADCon in datamodules, for this where in the program should I place your code? in what event?

thanks for being patient.

God bless
Merdjp
Re:Login dialog
Posted: 2007/09/25 22:53
 
You can place this code in TDataModule.OnCreate event handler, for example.
Re:Login dialog
Posted: 2007/09/26 08:05
 
hello Diman,

Im making a progress,,, im now receiving different error message

Delphi is complaining 'er_AD_ClntDbLoginAborted' is undeclared... where can I find this var?


thanks and God bless

merdjp

Post edited by: merdjp, at: 2007/09/26 08:34
Re:Login dialog
Posted: 2007/09/26 09:19
 
Include daADStanConst into uses. Next time, try to search for this constant in AnyDAC sources.
Re:Login dialog
Posted: 2007/09/27 06:21
 
Hello Diman,

It's working now, thanks a lot. Sorry too, I never thought of searching for this constant.

lastly, how could I get the password?

What I observe, when I put blank password in the param in adconnection and try to get the password, the password is not being registered though it connects.

I am able to get the username, database, host, etc. but the not the password.

Hope you are still eager to help me,,,,

thanks and God bless

merdjp
Re:Login dialog
Posted: 2007/09/27 11:54
 
Many many days ago I've got the same problem ...

here it is a solution from Dimian :


RE: ADConnection an password
Posted: 2005/09/29 11:12


Helo !

1) Goto daADCompClient, procedure TADCustomConnection.DoConnect. Replace there lErasePassword := ..... with lErasePassword := False.

2) Goto daADGUIxFormsfLogin, line 276. Replace there '#' with any what you need.

Regards,
Dmitry


The second solution is for change the char in password field of login dialog

Regards
[1 2 |Next ]