KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: New 4DLink conversion options
PRODUCT: 4D | VERSION: 12 | PLATFORM: Mac & Win
Published On: November 3, 2011

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:

data_conversion_mode

ValueBehavior
0display data file conversion dialog
1do not display data file conversion dialog, do not convert the data file
2convert data file without displaying data file conversion dialog


structure_conversion_mode

ValueBehavior
0display structure file conversion dialog
1do not display the structure file conversion dialog, do not convert the structure file
2convert 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"?>
<database_shortcut
   structure_opening_mode="0"
   structure_file="file:///.../.../mydb.4DB"
   data_file="file:///.../.../mydb.4DD"
   structure_conversion_mode="2"
   data_conversion_mode="2"
/>


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.