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
  • Define a data file or heading as "zombie"
  • Define a data file as "zombie"
  • Defining an item as being "zombie"
  • Handling a data file or zombie item
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Overview
During the life of an application, items live and die. Before dying, they can become zombies.
Which means that the item still exists in the data description, that it can be used in the existing application code, but that the item must no longer be used when writing new code.
A zombie item takes space and therefore it should be deleted.
Zombie items are often found in the dead code.
In version 23, you have the ability to identify the zombie items in the analysis; they will be signaled when they are used.
Define a data file or heading as "zombie"

Define a data file as "zombie"

To define a zombie data file:
  1. In the data model editor, select the data file to use.
  2. Display the data file description ("Data file description" option in the context menu).
  3. In the "Options" tab:
    • Check "Obsolete or zombie data file".
    • Specify a comment if necessary. This comment will be displayed in the compilation error generated when using the zombie data file.
      Description of zombie data file
  4. Close the description window of data file.
  5. In the analysis graph, the zombie data file is identified by the pictogram :
  6. In the "Analysis" pane, the zombie data file appears grayed and strikethrough:
  7. Generate the analysis to take the modifications into account. In the compilation errors, a new error appears indicating the uses of the zombie data file.
Note: Reverse operation is also possible.

Defining an item as being "zombie"

To define a zombie section:
  1. In the data model editor, select the data file to use.
  2. Display the description of items ("Description of items" in the context menu).
  3. In the "Advanced" tab:
    • Check "Zombie item (obsolete)".
    • Specify a comment if necessary. This comment will be displayed in the compilation error generated when using the zombie item.
      Description of zombie item
  4. Validate.
  5. In the analysis graph, the zombie item is struck out in the representation of data file:
  6. In the "Analysis" pane, the zombie item is grayed out and struck through:
  7. Generate the analysis to take the modifications into account. In the compilation error, a new error indicates that the zombie item is used.
Note: Reverse operation is also possible.
Handling a data file or zombie item
In the various editors that manipulate data files or fields (window editor, report editor, query editor, etc.), zombie data files and fields are easily identified by being grayed out and crossed out.
Furthermore, a compilation error is used to easily identify the zombie elements used.
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 12/08/2024

Send a report | Local help