Telegram_2020-01-27T14

<< Click to Display Table of Contents >>

Navigation:  Telegram > 2020 > 01 > 27 >

Telegram_2020-01-27T14

Telegram link

 

2020-01-27T14:05:17

 

IntraWeb doesn't create a bin directory, nor a wwwroot directory. It will use the default .\\$(Platform)\\$(Config) setting created for your projects by RAD Studio.

 


 

Telegram link

 

2020-01-27T14:07:09

 

Ok thanks Alexandre!

 


 

Telegram link

 

2020-01-27T14:31:22

 

Hi Alexandre; where do you think I would place the procedure invoking cdn JS DataTables ContentFiles that is a ServerController property to be called wherever I need it instead of repeating same code in each and every form where IWGrid is used. I want to place it in a procedure. Would the UserSession the right place or place it directly in ServerController?

 


 

Telegram link

 

2020-01-27T14:42:55

 

I think I have to add it directly in ServerController! Thanks

 


 

Telegram link

 

2020-01-27T14:43:05

 

you can add it to ServerController (the content files)

 


 

Telegram link

 

2020-01-27T14:44:08

 

Yes thanks I’ve done it and just wanted to know if there was any risk doing so

 


 

Telegram link

 

2020-01-27T14:45:01

 

no, no risk

 


 

Telegram link

 

2020-01-27T14:45:16

 

Thank Sir!

 


 

Telegram link

 

2020-01-27T14:45:38

 

you can also create a base form class inherited by other forms

 


 

Telegram link

 

2020-01-27T14:45:42

 

it is up to you

 


 

Telegram link

 

2020-01-27T14:49:08

 

Ok that’s also a good idea however in the base form I have to create an instance of ServerController to be released after; a long process I think but a base Frame with IWGrid and dataset variable I think it’s cool!

 


 

Telegram link

 

2020-01-27T14:55:11

 

You don't create instances of ServerController yourself. The ServerController is a singleton and IW takes care of creating/destroying it for you

 


 

Telegram link

 

2020-01-27T14:56:08

 

the difference between the 2 approaches if that, if you set content files in servercontroller, those content files will be present in 100% of your forms, regardless if they use it or not. If you use inheritance, you can control which forms will have it