Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Import/Export in the editor of Pma objects

It is possible to export in the editor of Pma objects by means of the local menu over any Pma object in the "Export object content ..." item.
Either the whole object or selected set of its subobjects (or all subobjects) can be exported. If the PmaRoot object is exported, then it is advisable to export only its subobjects.

In the following text the basic possibilities of the import of such created file are described. Files can be modified manually (in any text editor).
- add individual elements (for example, copy the whole objects into it, or contents of the PmaFolder object, ...), delete elements that, for example, shouldn't be imported, etc.
- add the directives that control the import method. See the description of the XML file structure Directions_XMLformat.


Import of XML file can be selected from local menu in any Pma object in the "Import into object ..." item.

Example:
Assume, for example, that the object of the PmaPanel type was exported named "Panel0" into the Panel0.xml file and assume that the folder (i.e. object of the PmaFolder type) named "Data" exists in the project. This folder contains no objects in itself.

1) Click by the right mouse button over the Data object and select the "Import into object ..." item. In the next steps select the Panel0.xml file and leave the import type option to Import="Replace" DefImport="Replace".
New subobject Panel0 imported from the XML file is created in the Data object.

2) Repeat the same walkthrough from the step 1.
Visually nothing happens but the import proceeded as follows: the Panel0 object is exported from the XML file, the Data object of the same type and name (as created in step 1) is found in the Data folder, so no new subobject was created but the import was performed into the already existing object Panel0

3) Repeat the same walkthrough from the step 1, only select the import type Import="AddWithNewName" DefImport="Replace".
New subobject with new generated name Panel1 is created in the Data object: despite the object of the same type and name was found in the Data object, though new subobject was created into which the import from the XML file was made.

4) Click by the right mouse button over the Data object and select the "Import to parent object" item. In the following steps select the Panel0.xml file and keep the import type option to Import="Replace" DefImport="Replace".
New object Panel0 is created on the same level as the Data object, imported from the XML file (if it didn't exist before).
PROMOTIC 9.0.16 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice