Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 6 of 6 total
Thread EWB modules
Sun, Jan 1 2017 12:17 PMPermanent Link

Ronald

Hi,

I am trying the EWB modules in Delpi Berlin 10.1, but I can not get it going.

What am I overlooking? I took these steps:

I have EWB 2 Web Server listen on port: 6060
My content folder in EWB 2 Web Server is: C:\inetpub\wwwroot\test
The Database Modules Resource Name in EWB2 Web Server is: databasemodules
I created a folder with the name C:\inetpub\wwwroot\test\databasemodules
In that folder I have my EWB module with the name: ewbmodule.dll

In EWB I then try to open a table with:

Database.BaseURL:='databasemodules/ewbmodule';
Database.LoadRows(tbPupils);

Then I get the error: Dataset load response error (Database module "ewbmodule" not found)

Thanks,
Ronald
Sun, Jan 1 2017 12:28 PMPermanent Link

Uli Becker

Ronald,

> Then I get the error: Dataset load response error (Database module "ewbmodule" not found)

Did you register the module in EWBServer using "Configure Server" | Tab
"Modules" ?

Uli
Sun, Jan 1 2017 1:17 PMPermanent Link

Ronald

Uli Becker wrote:

>Did you register the module in EWBServer using "Configure Server" | Tab
"Modules" ?

Thanks Uli, now it works great! I did not know you have to register all modules in the server.
Sun, Jan 1 2017 2:38 PMPermanent Link

Raul

Team Elevate Team Elevate

On 1/1/2017 1:17 PM, Ronald wrote:
> Thanks Uli, now it works great! I did not know you have to register all modules in the server.

Main EWB manual covers the web server and modules
(http://www.elevatesoft.com/manual?action=viewtopic&id=ewb2&topic=Creating_Server_Modules).

Raul
Sun, Jan 1 2017 3:00 PMPermanent Link

Ronald

Raul wrote:

>Main EWB manual covers the web server and modules

Thanks, I read all that, but I assumed the Modules tab was only for "general"  modules like the .pdf module and not intended for databasemodules.
Sun, Jan 1 2017 4:18 PMPermanent Link

Raul

Team Elevate Team Elevate

On 1/1/2017 3:00 PM, Ronald wrote:
> Thanks, I read all that, but I assumed the Modules tab was only for "general"  modules like the .pdf module and not intended for databasemodules.

Great - just listed the link since the modules manual does not actually
describe how to add them to server.

All modules are same though DB modules ate technically more powerful -
you can do general purpose things but also can do db aspects.

Module registration is a security feature AFAIK and also handy during
development - only modules registered are used.

I would also not store the actual module DLLs in the web server content
folder - in theory one can download the DLL if they can guess at
folders. Normally not a big deal but in case you embed username/password
in there i would keep it not internet accessible.

Raul


Image