Dictionary Copy
This function is used to carry out a mass copy of all the dictionary elements from one folder to another. These dictionary elements can be defined by tick boxes, name ranges and by date (elements updated more recently than a given date).
It is also possible to filter only the elements to copy from a particular module, by using a specified activity code.
Finally, the transfer of an element can accompany the copying of associated processings, and the validation phase of the dictionary on the elements copied to the target folder can also be launched.
Prerequisites
Refer to documentation Implementation
Screen management
Entry screen
Firstly the source folder must be defined followed by the target folder. By default, the current folder is suggested, but it is possible to give the name of another accessible folder, using the syntax detailed in the attached documentation.
The elements corresponding to the data to copy are then entered in the form of:
- A sequence of boxes to check to specify that this type of element must be copied (tables, screen, views, data types, actions, functions, objects, windows, inquiries, miscellaneous tables setup, messages, processings, and reports can be copied).
- Start and end ranges for each element, as well as a start date.
- A table of the concerned modules, as well as a possible activity code to filter the concerned data only.
The elements that should be validated in the target folder after copy are defined.
This operation, which can have a long duration, displays a log file when it finishes.
Folders
Source flr (field DOSORG) |
Use this field to define the folder from which the record will be copied. The possible syntaxes are described in the Dedicated appendix. |
Destination folder (field DOSDES) |
Use this field to define the folder to which the record will be copied. The possible syntaxes are described in the Dedicated appendix. |
Grid Object to process
Type (field OBCDES) |
To process (field OBCSEL) |
From (field OBCSTR) |
To (field OBCEND) |
Grid Installed modules
No. (field NUMLIG) |
Current line of the grid. |
Module (field MODULE) |
This grid gives the list of modules from which the elements to be copied can be selected. |
Copy (field COPMOD) |
If this field is equal to Yes, the elements for the selected modules are also copied. |
Options
Associated scripts (field COPTRT) |
Used to specify that the processes associated with the copied elements (screens, actions, objects, inquiries) are also copied. This flag also cause the copy of the Crystal Reports reports associated with the dictionary elements for the reports when these are copied. |
Dictionary validation (field VALDIC) |
Used to trigger the validation of the elements (tables, views, screens, windows, objects, inquiries, functions) in the destination folder after the copy. This validation is only possible if the current server associated with the folder is the same as the server for the destination folder. If this is not the case, an error message will indicate this fact in the log file for the copy. |
Filters
Since (field DATDEB) |
If this date is entered, only the data where the last modification or creation date is later than or equal to it are viewed in the inquiry. |
Activity (field CODACT) |
If an activity code is entered here, only the elements marked with the activity code in question are copied. |
Yes to all the rest |
When faced with an entry grid with multiple choices and a Yes/No answer on each line, this function makes it possible to answer Yes to all the lines starting from the current line. |
No to all the rest |
When faced with an entry grid with multiple choices and a Yes/No answer on each line, this function makes it possible to answer No to all the lines starting from the current line. |
Batch tasks
This function can be run in batch mode, but no dedicated standard task is delivered to run it.
Error messages
At the launch of the function
In addition to the generic error messages, the following messages can appear during the entry :
server machine inaccessible
The server with the name server does not respond (either because it is not accessible via the network or the service daemon adxd has not been launched).
In the log file
When running, this function creates a log file, in which the following errors can be found:
Validation impossible on distant machine
The box Validation has been checked, but the server on which the destination folder is found does not correspond to the folder from where the copy is launched.
Abbreviation exists already
The table that should be copied has the same abbreviation as another table of the destination folder
A view with the same name already exists
The table that should be copied has the same abbreviation as a view of the destination folder
There already is a table with the same name.
The view that should be copied has the same abbreviation as a table of the destination folder