Two new attributes have been added to 4DLink files that facilitate converting databases. The new attributes are data_conversion_mode and structure_conversion_mode. They are used when a 4DLink file is used to upgrade a database. This can be done just by openin a 4DLink file with the newer version of 4D.
These 2 attributes specify what should happen to the specific files (structure and data) when the 4DLink file is used to open the database with the newer version of 4D.
Here are the possible values that can be specified for these attributes:
|0||display data file conversion dialog|
|1||do not display data file conversion dialog, do not convert the data file|
|2||convert data file without displaying data file conversion dialog|
|0||display structure file conversion dialog|
|1||do not display the structure file conversion dialog, do not convert the structure file|
|2||convert structure file without displaying structure file conversion dialog|
As an example, here is a 4DLink file that uses one of these new attributes:
|<?xml version="1.0" encoding="UTF-8"?>|
If the structure and data files specified in this 4DLink file are currently in 4D v11 SQL and the 4DLink file is then opened using 4D v12, then the structure and data files will automatically be converted to v12 and the end user will not see the conversion dialogs.