ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Editors / Data model editor / Logical Data Model
  • Overview
  • Adding a new data file
  • Creating a new data file
  • Importing a preset description of data file
  • Color for the descriptions of data files
  • Security of an HFSQL data file
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Overview
The analysis allows you to define the structure of data files used by the project.
You can describe in the analysis:
Note To modify the description of a data file or its fields:
  • Select the data file in the data model editor.
  • Select one of the following options in the context menu:
    • "Data file description".
    • "Description of items".
Reminder In a WINDEV, WEBDEV or WINDEV Mobile application, the terms "MLD" and "Analyse" are used interchangeably to define the structure of the database associated with a project.
For details of how to manipulate a data file or topic in the data model editor, see Operations on a data file and Operations on an item.
Adding a new data file

Creating a new data file

To create a new data file:
  1. On the "Analysis" tab, in the "Creation" group, click "New data file". The data file creation wizard opens.
  2. Select "Create a new data file description". Go to the next step.
  3. Specify:
    • the logical name of the data file. This name will be used to handle the data file.
    • the caption that briefly describes the file subject.
    • the representation of a record in the data file. This representation makes the questions asked when describing the links easier to understand. This option must be preceded by an indefinite article (A or AN).
    • whether the data file includes an "Automatic identifier" item. The value of this item is unique for each record and it is automatically calculated by the HFSQL engine.
      You can use:
      • an 8-byte ID. This type of identifier is mandatory for the replication of HFSQL servers.
      • a 4-byte ID.
      • an automatic UUID (128 bits). In this case, the identifier of each record corresponds to a 128-bit UUID (the UUID provides a unique non-sequential identifier).
      • an automatic UUID (256 bits). In this case, the identifier of each record corresponds to a 256-bit UUID (the UUID provides a unique non-sequential identifier).
  4. In the next step, specify the type of database associated with the data file. Depending on the type selected, this data file will be handled by the HFSQL engine, an OLE DB driver or a Native Connector (SQL Server, Oracle, etc.).
    If you are using a database other than HFSQL Classic (Network or Single-user), the wizard asks for the database connection characteristics.
  5. The new data file becomes the current data file. The description window of the data file items opens automatically. It allows you to describe the file items.

Importing a preset description of data file

To import a preset file description:
  1. On the "Analysis" tab, in the "Creation" group, click "New data file". The data file creation wizard opens.
  2. Select the option "Select a preset data file description".
  3. Choose the preset data file(s) to create.
    Preset data files
    The wizard also proposes associated data files that can be added as links.
  4. For each data file, select the items to keep. These items can be modified later.
  5. The preset data files are automatically inserted into the current analysis. Links between predefined data files are automatically created.
Color for the descriptions of data files
The following colors are used to quickly identify the types of data files in the data model editor:
  • Blue for the data files coming from a Native Connector.
  • Orange for HFSQL Client/Server data files.
  • Brown for HFSQL Classic data files.
  • Green for ODBC data files.
  • Gray for Hyper File 5.5 data files.
Security of an HFSQL data file
To ensure the security of an HFSQL data file:
  1. Display the file description:
    • Select the data file in the data model editor.
    • In the context menu, select "Data file description".
  2. In the "Details" tab:
    • Enable encryption of data files, indexes, memos, etc. Several encryption modes are available.
      Data encryption
      The "Automatic (RC5 16 rounds if password)" option is selected by default when a data file is created. This option automatically encrypts the data file if a password is set on the data file with the HPass function.
    • Enable the "Enable enhanced security " option.
      Note: By default, this option is selected when creating a data file. This option allows you to request the password at each automatic modification of the data file.
  3. Generate the analysis: under the "Analysis" pane, in the "Analysis" group, pull down "Generation" and select "Generate". For more details, see Generating an analysis.
  4. Specify a password for the data file with HPass.
  5. Encrypt the connection to the database in the connections described in the analysis, or programmatically with the Encryption property.
Note AES encryption (128-bit, 192-bit and 256-bit AES encryption algorithm with OFB operation mode):
  • If the data file uses AES encryption, the same encryption method must be used for memos and indexes.
  • If AES encryption is used, the "Enable enhanced security " option is automatically applied.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 04/03/2025

Send a report | Local help