|
|
|
|
|
- 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
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. To do so, go to the "Project" tab, "Project" group, and 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. 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:
- 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. | | HChangeConnection | If the data file name is not specified, change the connection for the data files described in the various analyses. | HChangeDir | If the data file name is not specified, change the directory for the data files described in the various analyses. | HCloseAnalysis | Closes all the analyses associated with the project. | HCreationIfNotFound | If the data file name is not specified, all data files for all analyses will be created or opened. | HInfoAnalysis | If the analysis is not specified, only the main analysis is used. | HListConnection | If several analyses are in progress, lists all connections for all analyses in progress. | 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…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|