[wish]: Multiple databaseinstance support in Fastreport
Posted: Mon 15 Jan 2007 08:00
Hi,
thanks a lot for providing the FastReport-connection classes for using ODAC-functionality.
I discovered one problem:
if using the FastReport Server (for web-access), it is only possible to connect to the DEFAULTDATABASE, which is one of the created TOraSession instances:
I would like to be able to switch between several databases in the Fastreport editor. Same issue occurs with the mySQL packages (only one of the mySQL (TMyConnection) instances is visible in the fastreport editor.
How about improving this? Or any hint of how I could do this myself (I will try to read the TOraQuery connection handling code).
Thanks again & would be great to get news about this!
Best regards, Daniel
thanks a lot for providing the FastReport-connection classes for using ODAC-functionality.
I discovered one problem:
if using the FastReport Server (for web-access), it is only possible to connect to the DEFAULTDATABASE, which is one of the created TOraSession instances:
Code: Select all
{ TfrxDatabaseProperty }
function TfrxDatabaseProperty.GetValue: String;
var
db: TfrxODACDatabase;
begin
db := TfrxODACDatabase(GetOrdValue);
if db = nil then
begin
if (ODACComponents nil) and (ODACComponents.DefaultDatabase nil) then
Result := ODACComponents.DefaultDatabase.Name
else
Result := frxResources.Get('prNotAssigned');
end
else
Result := inherited GetValue;
end;How about improving this? Or any hint of how I could do this myself (I will try to read the TOraQuery connection handling code).
Thanks again & would be great to get news about this!
Best regards, Daniel