Jump to content

Where to put the FDQueries, inside the UniForms or inside the UniDataModules


Osama Ghazal

Recommended Posts

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

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...