Telegram_2023-08-31T02

<< Click to Display Table of Contents >>

Navigation:  Telegram > 2023 > 08 > 31 >

Telegram_2023-08-31T02

Telegram link

 

2023-08-31T02:00:02

 

anything can be used in basically the same way. Except UI stuff

 


 

Telegram link

 

2023-08-31T02:02:16

 

A database engine, any engine, can be used with IntraWeb. You just have to keep in mind that this is a multi-threaded, multi-user application. You can't share a DB connection. But other than that, it is basically the same.

 

IW does the hard part for you: It keeps everything running inside their own thread. So you can still program like you used to do in a desktop app

 


 

Telegram link

 

2023-08-31T02:06:06

 

This means that I have to set the connection to the database to the userSession. It is true?

 

can I add datamodule to manage datasets?

 


 

Telegram link

 

2023-08-31T02:07:47

 

you can have datamodules at will. You just need to create them in the same context as the current UserSession. A good rule of thumb:

 

- Create your DataModules from (a) the UserSession or (b) a IWForm

 

- NEVER create a DataModule from the ServerController

 


 

Telegram link

 

2023-08-31T02:08:13

 

if you do that, you will be fine

 


 

Telegram link

 

2023-08-31T02:17:58

 

Callback functions come in my mind

 


 

Telegram link

 

2023-08-31T02:26:39

 

A simple way would be:

 

Home

 

 

 

function myFunction() {

 

ajaxCall(\yourCallbackFunctionNameHere\, params);

 

}

 

 

 

where

 


 

Telegram link

 

2023-08-31T02:27:05

 

params is the information you need to pass to your IW app

 


 

Telegram link

 

2023-08-31T02:29:53

 

Also can send a parameter like an integer to myFunction to avoiding of writing multile function for menu Items.

 

is it right type: mention @Alex7691 ?

 


 

Telegram link

 

2023-08-31T02:34:17

 

Thank's alot

 


 

Telegram link

 

2023-08-31T02:34:58

 

Correct ??

 


 

Telegram link

 

2023-08-31T02:43:53

 

ajaxCall() method accepts something like this:

 

var myParams = {from: 3, to: 5};

 

ajaxCall(\MyCallbackFunction\, myParams);

 


 

Telegram link

 

2023-08-31T02:44:41

 

MyCallbackFunction is a callback registered in IW Server.There you can query the \from\ (it will be 3) and the \to\ (it will be 5) parameters

 


 

Telegram link

 

2023-08-31T02:47:25

 

I saw your demo on Github in this regard and understood how to do it