KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: The .4DLink file type
PRODUCT: 4D Developer | VERSION: 11.1 | PLATFORM: Mac & Win
Published On: April 9, 2008

4D v11 SQL Release 1 (11.1) introduces a new file with the extension called ".4DLink". This file contains information used to compose the "Open recent database" list. The .4DLink file is in XML format and should contain just the root element "database_shortcut", which should have a few attributes.

Here is an example of the .4DLink file contents:

Windows:

<?xml version="1.0" encoding="UTF-8"?>
<database_shortcut
   structure_file="file:/// C:/.../Sample.4dbase/ Sample.4DB"
   data_file="file:/// C:/.../ Sample.4dbase/Sample.4DD"
/>



Mac OS X:

<?xml version="1.0" encoding="UTF-8"?>
<database_shortcut
   structure_file="file:///Volumes/.../Sample.4dbase/ Sample.4DB"
   data_file="file:///Volumes/.../ Sample.4dbase/Sample.4DD"
/>



Using this XML format, you can create your own .4DLink files in order to add databases to your "Open recent database" list.