Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
3 errors with FIreDAC
#8
Thanks for the help, I was able to fix the problem by following this help url:

https://docs.atozed.com/docs.dll/getting...rview.html

I have changed my connection component structure to include only the FDConnection in the UserSession, and the other FDQuery components in the other data modules. In each data module I reference the ServerController to assign the connection property of each FDQuery at runtime, using the UserSession variable:




Code:
FDQuery1.Connection := UserSession.FDConnection1;


And in each IWForm I assign the DataSet:

Code:
implementation

{$R *.dfm}

uses ServerController;


procedure TIWForm1.IWAppFormCreate(Sender: TObject);
begin
DataSource1.DataSet := UserSession.DM.FDQuery1;
UserSession.DM.FDQuery1.Open;
end;
Reply


Messages In This Thread
3 errors with FIreDAC - by raulevm - 03-16-2023, 01:42 PM
RE: 3 errors with FIreDAC - by Mikael Nilsson - 03-16-2023, 02:02 PM
RE: 3 errors with FIreDAC - by raulevm - 03-16-2023, 02:17 PM
RE: 3 errors with FIreDAC - by DanBarclay - 03-18-2023, 03:35 AM
RE: 3 errors with FIreDAC - by Mikael Nilsson - 03-18-2023, 12:52 PM
RE: 3 errors with FIreDAC - by DanBarclay - 03-20-2023, 02:24 AM
RE: 3 errors with FIreDAC - by Alexandre Machado - 03-21-2023, 06:31 AM
RE: 3 errors with FIreDAC - by raulevm - 03-26-2023, 07:05 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)