4D v16.3

IMPORT STRUCTURE

Home

 
4D v16.3
IMPORT STRUCTURE

IMPORT STRUCTURE 


 

IMPORT STRUCTURE ( xmlStructure ) 
Parameter Type   Description
xmlStructure  Text in 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.

Example  

You want to import a saved structure definition into the current database:

 $struc:=Document to text("c:\\4DStructures\\Employee.xml")
 IMPORT STRUCTURE($struc)



See also 

EXPORT STRUCTURE

 
PROPERTIES 

Product: 4D
Theme: Structure Access
Number: 1310

 
HISTORY 

Created: 4D v14 R4

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)