This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20.6
IMPORT STRUCTURE
|
IMPORT STRUCTURE ( xmlStructure ) | ||||||||
Parameter | Type | Description | ||||||
xmlStructure | Text |
![]() |
XML definition of 4D database structure | |||||
The IMPORT STRUCTURE command imports, into the current database, the XML definition of the 4D database structure passed in the xmlStructure parameter.
The xmlStructure parameter must contain a valid 4D structure definition in XML format. There are several ways to obtain a valid structure definition:
The imported structure definition is added to the structure that is already open, and is displayed in the standard Structure editor of 4D among the existing tables (if any). If an imported table has the same name as a local one, an error is generated and the import operation is aborted.
You can create a new database by importing a structure definition into an empty database.
An error is generated when the structure is in compiled and/or read only mode.
A 4D application operating in remote mode cannot call this command.
Since this command modifies the database structure, it cannot be used in the context of a read-only packaged application (.4dc file installed in the Program Files folder or .4dz file).
You want to import a saved structure definition into the current database:
$struc:=Document to text("c:\\4DStructures\\Employee.xml")
IMPORT STRUCTURE($struc)
Product: 4D
Theme: Structure Access
Number:
1310
Created: 4D v14 R4
4D Language Reference ( 4D v20)
4D Language Reference ( 4D v20.1)
4D Language Reference ( 4D v20.2)
4D Language Reference ( 4D v20.3)
4D Language Reference ( 4D v20.4)
4D Language Reference ( 4D v20.5)
4D Language Reference ( 4D v20.6)