03-26-2023, 07:05 PM
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:
And in each IWForm I assign the DataSet:
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;