ConnectDialog strange behaviour

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
MaGl
Posts: 11
Joined: Wed 03 Apr 2013 10:13

ConnectDialog strange behaviour

Post by MaGl » Wed 18 Feb 2015 12:25

I'm using ConnectDialog for the first time and run into a problem.
On runtime I read the connect - parameters (Server, SID, Port) from an ini-file.
I set these informations to the TORASession. Afterwards (if username and password
was not provided by some Commandline-parameters) I set Loginprompt:=true and the Connectdialog pops up. Okay so far... but the connectDialog doenst have the (new) server-information but the one I use during design-time. What went wrong?
If I provide username / password via command line - parameter there is no use of the connect-dialog (Loginpromt:=false). The program connets to the right (what was stored in the ini) Database.

Help plz!

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: ConnectDialog strange behaviour

Post by AlexP » Wed 18 Feb 2015 15:04

Hello,

To implement such behavior, you should set the StoreLogInfo property to False.

Code: Select all

  OraSession1.Server := 'localhost:1521/orcl';
  ConnectDialog1.StoreLogInfo := False;
  ConnectDialog1.Execute;

Post Reply