* Fix bug #33236: Give feedback when connection test succeeds

git-svn-id: trunk@57385 -
This commit is contained in:
michael 2018-02-27 12:37:06 +00:00
parent d82cc85d1d
commit f4922224e6
2 changed files with 9 additions and 4 deletions

View File

@ -167,7 +167,9 @@ Var
begin
S:=TFPReportConnector.TestConnection(FConnectionData);
if (S<>'') then
MessageDlg(SErrConnectionNotOK,S,mtError,[mbOK],0);
MessageDlg(SErrConnectionNotOK,S,mtError,[mbOK],0)
else
MessageDlg(SSuccess,SConnectionSuccesful,mtInfo,[mbOK],0)
end;
constructor TSQLReportDataConfigFrame.Create(AOwner: TComponent);

View File

@ -61,8 +61,10 @@ var
ReportConnectionEditorForm: TReportConnectionEditorForm;
Resourcestring
SConnectionSuccesful = 'Connection was succesfully made';
SConnectionSuccesful = 'Connection to the database was succesfully made.';
SErrConnectionNotOK = 'Error connecting to the database';
SSucces = 'Succesfully connected.';
implementation
@ -110,8 +112,9 @@ begin
FormToParams;
S:=TFPReportConnector.TestConnection(FParams);
if (S<>'') then
MessageDlg(SErrConnectionNotOK,S,mtError,[mbOK],0);
MessageDlg(SErrConnectionNotOK,S,mtError,[mbOK],0)
else
MessageDlg(SSucces,SConnectionSuccesful,mtInfo,[mbOK],0);
end;
procedure TReportConnectionEditorForm.Setparams(AValue: TJSONObject);