An application that is using the user groupware can be used with a HFSQL database in Client/Server mode.

In order for an application that is using the user groupware to operate in Client/Server mode, you must:

convert the existing application into Client/Server mode. See Client/Server for more details.

configure the user groupware in order to use the data files found on the server. These operations are presented in this help page.

How to proceed?

Automatic mode

To convert the data files of user groupware into Client/Server mode:

On the "Project" pane, in the "Project" group, click "User groupware".

In the "Files" tab, select "HFSQL Client/Server".

Specify:

the name of the server used.

the port number used.

the user name used for the database.

the associated password.

the name of the database.

the directories of data files.

If the data files specific to the user groupware exist, copy these data files onto the server.

Manual mode

To convert the data files of user groupware into Client/Server mode:

On the "Project" pane, in the "Project" group, click "User groupware".

In the "Execution" tab, select "Manual run". The user groupware must not be started in "Automatic run" mode in your application.

Select the different options of the user groupware and validate the window.

In the initialization code of the project, use gpwOpenConnection to describe the connection to the HFSQL Client/Server database.

If the data files specific to the user groupware exist, copy these data files onto the server.

Use gpwOpen to specify the positioning of data files. The specified directory must be relative to the server directory.

Related Examples:

Training (WINDEV): WD CSGroupware

[ + ] This example presents the use of the user groupware on a HFSQL Client/Server database.The user groupware: The user groupware allows you to define different access levels to an application according to the rights granted to each user. By default, all the rights are granted to the SUPERVISOR group. You have the ability to define groups of users and to configure the available options for each group. For example, all the deletion buttons will be invisible for the "Trainee" group. The implementation of the user groupware in Client/Server mode is used to centralize the data files on the server (files of your application and files specific to the user groupware). The example: When starting the application, you must specify the information for connecting to the Client/Server database. The specified database will be created if it does not exist. Then, the user groupware will ask you to identify yourself. Two users are proposed: - SUPERVISOR (password: supervisor) - USER1 (password: user1)These two users can access different options of the application.