PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • How to customize the user groupware?
  • Customizing the windows and the pages
  • Customizing the windows and the pages
  • Translating the windows/pages for the multilingual applications
  • Modifying the first window or the first page according to the user
  • Starting the login window/page from an application window or from a site page
  • Defining the rights on the menus
  • Defining the rights on popup menus
  • Defining the rights on the automatic menu ("?" menu)
  • Configuring the data files of user groupware
  • Reinitializing the data files
  • To reinitialize the data files of user groupware
  • Notes
  • Modifying the data files
  • Managing the analyses
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Warning
From version 18, the user groupware evolves. This help page corresponds to the user groupware kept for backward compatibility. To get the help regarding the new version of user groupware, see User Groupware.
Customizing the windows and the pages

Customizing the windows and the pages

The login window/page
You may want to customize the login window/page that is displayed when starting your application. If this window or page is included in your project, the style or the skin templates used by your application can be applied to this window or page.
Caution: This window/page must not be renamed.
All the windows/pages of user groupware
If all the windows/pages of user groupware have been included in your project, they can all be customized. However, only the login window/page will be viewed by all the users. The windows/pages for configuring the groupware can only be viewed by the supervisor of the application .
Caution:
  • WINDEV The GPWLogin and GPWSupervisorMenu windows must not be renamed.
  • WEBDEV - Server code The GPWLogin_WB page must not be renamed.

Translating the windows/pages for the multilingual applications

To use the user groupware in a multilingual application, see User groupware and multilingual feature.

Modifying the first window or the first page according to the user

To change the first application window or the first site page according to the user, gpwGetUserInfo must be called in the initialization code of your project. This option allows you to get information about the user such as his name or password for example.
Depending on his name, you have the ability to open a given window or a given page.
Example:
IF gpwGetUserInfo(gpwLogin) = "FP" THEN
        Open(WIN_Management)
ELSE
        Open(WIN_Menu)
END

Starting the login window/page from an application window or from a site page

When the user groupware is included in an application, you can choose whether the user groupware will be automatically started or not. This option can be modified at any time.
By default (automatic start), the login window/page is the first window/page of the application. It is run with the initialization code of the project.
In some cases, you may want to open a configuration window before the login window. To do so, you must:
  1. Select "Manual start".
  2. Open the login window or page anywhere in the code with gpwOpen.
Defining the rights on the menus
WINDEVWindows

Defining the rights on popup menus

To define the rights on the popup menus, all the windows of user groupware must be included. Then, you can modify the window for managing rights (GPWConfigurationDetails.WDW).
To get the list of popup menus, use EnumSubElement (associated with the enumFirst + enumContextualMenu constants).
WINDEVWindows

Defining the rights on the automatic menu ("?" menu)

Some options of the automatic menu must be used with great care. These options are as follows:
  • Optimize the access speed to the database
  • Save the data
  • Save the application
  • Repair the database.
The operating mode of these options with the user groupware is as follows:
  • By default, these options are grayed if the user is not the supervisor.
  • To allow a non-supervisor user to access these options, modify the rights of the internal window named IW_MenuHWinDevHelp that contains the popup menu.
Note: This behavior was implemented since WINDEV 10 version 100050. If you already have customized the groupware and included the window for modifying the rights in your application, you must copy:
  • the GPWAssociationConfiguration.wdw window. This window is found in the Programs\Data\Models\GPW\WD directory of WINDEV.
  • the wdxxxgpu.dll file found in the Programs directory of WINDEV.
Configuring the data files of user groupware
Two types of data files are used by the user groupware:
  • Data files of users
  • Data files of rights
The location of these data files can be configured:
  • When including the user groupware for test ("Workshop .. Configure the user groupware").
  • WINDEV When creating the executable.
  • When installing the application (by the person who performs the setup).
  • By programming.
See The files of user groupware for more details.
Reinitializing the data files

To reinitialize the data files of user groupware

All you have to do is delete the data files specific to the user groupware (file of users and file of rights). These files are automatically re-created when starting the application.

Notes

  • If the user files are deleted (GPWUserConfiguration and GPWUser), only the supervisor will be able to start the application.
  • If the rights files are deleted (GPWElementConfiguration, GPWConfiguration and GPWElement), all the users will have all the rights on the entire application.
See The files of user groupware for more details.
Caution: The <None> group and the DEFAULT group cannot be deleted.
Modifying the data files
The structure of the data files specific to the user groupware cannot be modified.
Note: These files contain confidential information and therefore they are encrypted.

Managing the analyses

If a specific analysis is opened when configuring the user groupware, gpwInitAnalysis (used to open the analysis of user groupware) must be re-run.
Reminder: At run time, several analyses cannot be opened at the same time.
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment