ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
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: behavior adapted to managing projects with multiple analyses
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
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. To do so, go to the "Project" tab, "Project" group, and 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. This data file depends on the order defined for the various analyses (project description or opening order with functions HOpenAnalysis and HOpenComplementaryAnalysis). Here's how it works:
  • Analysis 1:
    • Data file A
    • Data file B
  • Analysis 2:
    • Data file B. This data file will be "hidden", as it is present in analysis 1.
      To use data file B in analysis 2it is necessary to rename this data file in analysis 2.
    • C data file
  • Analysis 3:
    • Data file B: This data file will be "hidden", as it is present in analysis 1.
      To use data file B in analysis 3it is necessary to rename this data file in analysis 3.
    • File C: This data file will be "hidden", as it is present in Analysis 2.
      To use the data file C in analysis 3it is necessary to rename this data file in analysis 3.
    • Data file D.
In the "Analysis" section of the "Project Explorer" pane, the following data files will be displayed:
  • Data file A (analysis 1)
  • Data file B (analysis 1)
  • Data file C (analysis 2)
  • Data 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 data model editor (and not programmatically). This ensures that the connection associated with the data file used is correct (especially if data files with the same name are used).

WLanguage functions: behavior adapted to managing 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 data file name is not specified, change the connection for the data files described in the various analyses.
HChangeDirIf the data file name is not specified, change the directory for the data files described in the various analyses.
HCloseAnalysisCloses all the analyses associated with the project.
HCreationIfNotFoundIf the data file name is not specified, all data files for all analyses will be created or opened.
HInfoAnalysisIf the analysis is not specified, only the main analysis is used.
HListConnectionIf several analyses are in progress, lists all connections for all analyses in progress.
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: 01/11/2025

Send a report | Local help