4D v15IMPORT STRUCTURE |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v15
IMPORT STRUCTURE
|
IMPORT STRUCTURE ( xmlStructure ) | ||||||||
Parameter | Type | Description | ||||||
xmlStructure | Text |
![]() |
XML definition of a 4D database structure | |||||
Originally introduced in 4D v14 R4
Theme: Structure Access
The new IMPORT STRUCTURE command allows you to import, in the current database, the 4D XML structure definition you passed in xmlStructure.
The xmlStructure parameter must contain a valid 4D structure definition in XML format. You can get such a structure definition using one of the following features:
The imported structure definition is added to the current one and is displayed in the standard 4D Structure editor, among existing tables (if any). If an imported table has the same name as a local table, an error is generated and the import operation is canceled.
You can also import the structure into an empty database, thus creating a new database.
An error is generated if the structure is in compiled or read-only mode. Also, it cannot be called from a 4D remote application.
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: Language
Number:
705087
4D v15 - Upgrade (standard edition) ( 4D v15)