ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Editors / Project editor
  • Overview
  • How to?
  • Defining a project with multiple analyses in the editor
  • Defining a project with multiple analyses programmatically
  • Remarks
  • Automatically hide data files with the same name in different analyses
  • Multi-server queries
  • WLanguage functions: adaptations made to manage projects with multiple analyses
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Overview
A single WINDEV, WEBDEV or WINDEV Mobile project can now use multiple analyses (data descriptions).
WINDEV 2024 makes it possible to use two or more different analyses in the same project.
You can use multiple analyses permanently, or as a one-off alternative in order to run specific queries.
All the data files from all the analyses support databinding.
How to?

Defining a project with multiple analyses in the editor

To use multiple analyses in a single project:
  1. Open your project in WINDEV, WEBDEV or WINDEV Mobile.
  2. Open the project description window: on the "Project" tab, in the "Project" group, click "Description".
  3. On the "Analysis" tab, indicate the different analyses used by the current project via the "Create an analysis", "Add an analysis", or "Import an analysis from the SCM" buttons.
  4. Use the arrow buttons to define the order in which analyses are used. This is an important step, especially if the analyses contain data files with the same name (see below).
  5. Confirm.

Defining a project with multiple analyses programmatically

The HOpenAnalysis function opens an analysis in HFSQL Classic format. This allows you to access the data files defined in the analysis as well as their structure.
To open an additional analysis programmatically, use HOpenComplementaryAnalysis.
AndroidAndroid Widget Java This function is not available.
Remarks

Automatically hide data files with the same name in different analyses

Different analyses can contain data files with the same name. In this case, only one data file will be used. Which file is used depends on the order of the analyses. This order can be defined in the project description or with the HOpenAnalysis and HOpenComplementaryAnalysis functions. Here is how it works:
  • Analysis 1:
    • File A
    • File B
  • Analysis 2:
    • File B. This file will be "hidden", as it is present in Analysis 1.
      To use File B from Analysis 2, you need to rename it in Analysis 2.
    • File C
  • Analysis 3:
    • File B: This file will be "hidden", as it is present in Analysis 1.
      To use File B from Analysis 3, you need to rename it in Analysis 3.
    • File C: This file will be "hidden", as it is present in Analysis 2.
      To use File C from Analysis 3, you need to rename it in Analysis 3.
    • File D.
In the "Analysis" section of the "Project Explorer" pane, the following files will be shown:
  • File A (Analysis 1)
  • File B (Analysis 1)
  • File C (Analysis 2)
  • File D (Analysis 3).

Multi-server queries

If you use multiple analyses containing data files that use connections to different servers, it is recommended to define the connections in the analysis editor (and not programmatically). This allows you to make sure you are associating the right connection with the file (especially when there are files with the same name).

WLanguage functions: adaptations made to manage projects with multiple analyses

The following functions manipulate analyses, data files, relationships, etc. They have been improved to manage projects with multiple analyses.
HChangeConnectionIf the file name is not specified, changes the connection for the data files defined in the different analyses.
HChangeDirIf the file name is not specified, changes the directory for the data files defined in the different analyses.
HCloseAnalysisCloses all the analyses associated with the project.
HCreationIfNotFoundIf the file name is not specified, all the files of all the analyses will be created or opened.
HInfoAnalysisIf the analysis is not specified, only the main analysis is used.
HListConnectionIf there are multiple analyses, lists all the connections for all the analyses.
HListCustomFolderIf there are multiple analyses, lists all the Custom-Folders of all the analyses.
HListFileIf there are multiple analyses, lists all the data files of all the analyses.
HListLinkIf there are multiple analyses, lists all the links of all the analyses.
HListREPIf there are multiple analyses, only the main analysis is used.
HSetREPIf you only specify the parameter that enables or disables the .rep file, the change is made in all the analyses associated with the project.
ProjectInfoIf there are multiple analyses, the piAnalysis constant gets only the name of the main analysis.
Minimum version required
  • Version 2024
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/14/2024

Send a report | Local help