Osama Ghazal Posted August 1, 2021 Share Posted August 1, 2021 Hi All, Where should I put the FDQueries Components, should I put them in the form or in datamodule. and when I close the form will the queries freed automatically ? the FDConnection I put in in the MainModule, FDManager in Server Module. and also the code for insert update and delete and other operations, should I write them in the form or in separate datamodule? Thank you all Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted August 2, 2021 Share Posted August 2, 2021 14 hours ago, Osama Ghazal said: Hi All, Where should I put the FDQueries Components, should I put them in the form or in datamodule. Hello Osama Short answer : on form 14 hours ago, Osama Ghazal said: ...when I close the form will the queries freed automatically ? Yes. From unugui Doc : "When the user closes the form, the dataset will be freed and its memory is sent back to the application memory pool." http://www.unigui.com/doc/online_help/create-on-demand.htm 14 hours ago, Osama Ghazal said: ... the code for insert update and delete and other operations, should I write them in the form or in separate datamodule? On a separate dataModule (unigui Datamodule). The reason of that, is to write one code for Desktop and Mobile Design. Regards _________ You can read the developer manual : http://www.unigui.com/doc/online_help/web-application-scalability.htm Quote Link to comment Share on other sites More sharing options...
Osama Ghazal Posted August 2, 2021 Author Share Posted August 2, 2021 Thank You Very Much Quote Link to comment Share on other sites More sharing options...
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.