Phxtecno Posted May 29, 2025 Posted May 29, 2025 Hello, I have an application using multiple TUniFrame on demand, like in MainDemo. in MainModule I have a DBconnection and tables, and on Frames I have all DataAware components and TUniDatasource with Dataset property = uniMainModule.myQuery At design time the connection works as expected and data shown in my grid, but every time I close the frame and then I reopen it, the TUniDatasource.Dataset property become always empty... And of course the link is lost at run time also. This do not happens if I assign to the UniDatasource.Dataset a local dataset on the TUniFrame. Am I doing something wrong ? BR Quote
Administrators Farshad Mohajeri Posted May 29, 2025 Administrators Posted May 29, 2025 Hi, You must make sure MainModule is always open in the IDE. Quote
Phxtecno Posted May 29, 2025 Author Posted May 29, 2025 Yes, MainModule is always open and also DB connected, when I open other frames... I had frames in a project subfolder, and moved them in the same folder of prj together with MainModule, but result do not change. Quote
Administrators Farshad Mohajeri Posted May 29, 2025 Administrators Posted May 29, 2025 Well, can you please try this in a Delphi VCL application too? It seems to me like standard Delphi behavior. Normally, it is IDE which keeps track of links between forms, frames and modules. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.