|
|
|
|
|
- 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
Project with multiple analyses
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. Defining a project with multiple analyses in the editor To use multiple analyses in a single project: - Open your project in WINDEV, WEBDEV or WINDEV Mobile.
- Open the project description window: on the "Project" tab, in the "Project" group, click "Description".
- 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.
- 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).
- 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. 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:
- 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. | | HChangeConnection | If the file name is not specified, changes the connection for the data files defined in the different analyses. | HChangeDir | If the file name is not specified, changes the directory for the data files defined in the different analyses. | HCloseAnalysis | Closes all the analyses associated with the project. | HCreationIfNotFound | If the file name is not specified, all the files of all the analyses will be created or opened. | HInfoAnalysis | If the analysis is not specified, only the main analysis is used. | HListConnection | If there are multiple analyses, lists all the connections for all the analyses. | HListCustomFolder | If there are multiple analyses, lists all the Custom-Folders of all the analyses. | HListFile | If there are multiple analyses, lists all the data files of all the analyses. | HListLink | If there are multiple analyses, lists all the links of all the analyses. | HListREP | If there are multiple analyses, only the main analysis is used. | HSetREP | If you only specify the parameter that enables or disables the .rep file, the change is made in all the analyses associated with the project. | ProjectInfo | If there are multiple analyses, the piAnalysis constant gets only the name of the main analysis. |
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|