surensiddhi Posted February 2, 2017 Share Posted February 2, 2017 There is no problem using MainModule with multiple datasets, tables etc. and also no problem using datasets in forms as well. If all datasets are placed in MainModule, it is difficult to maintain. In large projects it is necessary to categorize datamodules based on natures of datasets like DatamoduleLookup, DatamoduleCRM etc. How can it be done in UniGUI ? When created datamodules as normally done in Delphi did not work. Enven using uniGUI wizzard to create datamodule, it did not work. I am sure it must be possible. If some one has sample code, please shared. It will be highly appreciated Link to comment Share on other sites More sharing options...
wprins Posted February 2, 2017 Share Posted February 2, 2017 What do you mean exactly that it doesn't work? If you mean it doesn't work in the respect of the global instances/references that is created by the IDE in a normal single user application then yes, that way of creating them doesn't work because it cannot work. Or at least, not just as naievely as with a single user application. Instead, you just need to create your objects (datamodules included) as needed from withing the main module. Remember that with a normal Delphi application you have essentially one user and one main thread of execution, so having a bunch of global datamodules and forms (even though that's actually dubious IMHO) can work. But with a UniGUI server you're serving multiple users, so to keep everyone out of each others hair you can't rely on single globally created instances for most things. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted February 4, 2017 Administrators Share Posted February 4, 2017 Applicstion Datamodules created from unigui wizard should work normally. They are created for each session separately. Link to comment Share on other sites More sharing options...
asapltda Posted March 8, 2018 Share Posted March 8, 2018 Applicstion Datamodules created from unigui wizard should work normally. They are created for each session separately. Hello, unigui datamodules are created automatically for each session? or the datamodules must be created manually in the MainModule unit? Tks Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 8, 2018 Administrators Share Posted March 8, 2018 Hello, unigui datamodules are created automatically for each session? or the datamodules must be created manually in the MainModule unit? Tks Application DataModules created from uniGUI wizard are created for each session automatically. There is no need to create them manually. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now