The Export utility provides a simple way for you to transfer PROIV objects between machines, even if they reside on platforms with different hardware and software configurations. Refer JSON Export and Character Encodings other than UTF-8 for additional information.

When you run Export utility in PROIV Developer, the selected PROIV objects such as Functions, File Definitions, Dictionary (as part of File Definitions), Global Logics, Tasks, ActiveX Controls (the PROIV definition of the controls, not the controls themselves), Server-Side Objects (the PROIV definition of the objects, not the objects themselves), Control Bars, Action Controls and Global Messages are extracted, followed by their associated objects (such as Value Variables) if any.

The extracted data is written to file in the format of either vpx(PROISAM file), par(PROIV archive) or JSON(JavaScript Object Notation). You can use the exported files as a backup or import to a different machine. The Import utility reads the object definitions and data from an exported file.

You can export PROIV objects at two levels:

·         Individual PROIV source objects

·         Archives of multiple PROIV source objects

When multiple PROIV source objects are exported they are stored with a file extension of par (PROIV Archive). The par file is designed for transferring a set of source between environments. Individual object export files (for example, p4fn and p4fl) are designed to be used with an external source code control system. However, you must ensure the JSON Repository configuration is set to use with an External Source Code Control System.

Export PROIV Object in JSON Format

In the event that 'JSON' is selected, then individual JSON object files are produced one for each of the selected objects and these are stored to the selected directory. The export filename field is not mandatory when performing a JSON style export but if it is specified, a sub directory is created within the directory specified and the JSON object files are exported to it.

The JSON object files are tagged internally with a version number to allow objects of an older version to be upgraded when they are imported. This would normally entail setting default values for any newly introduced mandatory object properties.

Export PROIV Object in par Format

In the event that "par" is selected, then individual JSON object files are produced one for each of the selected objects and these are added to the “.par” file. Additionally, a run-time only .vpx (byte ordered and platform dependant) is created for the selected function type objects is included in the “.par” archive.

Note: Functions exported in the JSON format will not include run-time data.

To export a file:

  1. Click Tools tab, on the General Tools, click Export.
    The Software Export screen appears.

  2. To select the objects for export, do the following:

Note: If any objects cannot be exported (for example, the selected object is open for edit), they are placed in the failures list. At the end of the export process, the list of failed objects appear, which you can optionally print and save as a named list.

Field

Description

Type

Select one of two additional output types alongside the current vpx default, these are par and JSON.

For JSON, the individual JSON object files are produced one for each of the selected objects and these are stored to the selected directory. The export filename (Archive) field is not mandatory when performing a JSON style export but if it is specified, a sub directory is created within the directory specified and the JSON object files are stored in it.

For par, the individual JSON object files are produced one for each of the selected objects and these are added to the par file. Additionally, a run-time only vpx for the selected objects is included in the par archive.

Directory/Path

For a clean installation, by default, the PROPATH directory appears. The value in this field determines the configuration which is set in the Default Paths. You can also browse the path and select the required file.

Archive

Represents the name of the file which has to be exported in case of 'VPX' and 'PAR' types.

This is not mandatory when performing a JSON style export; however, if it is specified, a sub directory is created within the directory specified and the JSON object files are stored in it.

Default Export Options

Set the export options as follows:

Item

Description

Source/Runtime

Select to export source or runtime objects. You can only export source or run-time objects for vpx file. Hence, these options appear disabled for JSON and par types.

Called Functions

This group applies only to Global Functions called by Functions and Global Logics in the Export List. You can call these objects in logic, from Function Keys, or from windows attached to fields.

1 Level - Select for functions that are actually called from the objects in the Export List.

All - Select for all associated functions which are called by the associated functions and their associated functions. All these are included in the Export List.

Linked Functions

This group applies only to functions which are linked to other Functions, Global Logics and Tasks in the Export List. These linked functions can be called from logic, function Keys, function header, task header, or the task function list.

1 Level - Select for functions which are actually linked from the objects in the Export List.

All - Select for all linked functions which are called by the associated functions and their associated link functions.

Called Global Logics

This group applies only to Global Logics used by Functions and Global Logics in the Export List. This can be in logic, from Function Keys or special checks.

1 Level - Global Logics which are actually used in the objects in the Export List.

All - Select for all linked Global Logics which are called by Global logics in the function.

Export Associated

This option allows the export of objects that are associated with objects in the export list.

File Definitions & Dictionary - Click check box to export file definitions and dictionary.

Value Variables - Click check box to export the value variables. All objects in the export list (including ones that are Called/Linked, if these are selected) will be analyzed during the export process, and the selected associated objects will be added to the export list.

Click Details to view the final list of graphic names which are exported.

ActiveX Controls - Click check box to export a list of the ActiveX controls. Note that this is the PROIV definition of the controls, not the controls themselves.  

Control Bars/Action Controls - Click the check box to export the Control Bars and Action Controls.

SSOs - Click the check box to export Server-Side Objects.

 

Properties

Specify the export options of a selected object. A window replicating the frame of default options appears adjacent to the default options frame for comparison. You may change any of the export options and the object is marked as modified in the first column when you return to the main list.

Set Default

Resets to default value of any individual (or multi-selected) objects.

Set Default All

Resets all modified values of the objects to default values.

Delete

Deletes the selected objects from the list.

Delete All

Deletes the list.

Save As List

Saves the list. Enter the name of the list and a description. If you wish to edit or overwrite a list choose it from the drop-down box and select the appropriate radio .

  1. Click Export.
    The Export process completes and a message appears to indicate success or failure.

    Note: When an object is exported either to a JSON file in a directory or a file in a PAR archive then it is stored with the object name as the filename (case sensitive). Additionally, the JSON file contains two top level properties such as “ObjectName” and “ObjectType” which holds the case sensitive name of the object; this is to detect an incorrect name of an object being stored in a file.

    During the export process, if it is detected that an object is being exported and the destination JSON file exists then the export of this object is skipped and an error message appears. In practice, this should not occur during export to a PAR file or UNIX file system even if there are objects which equal when compared case insensitively. However, it may occur on windows as NTFS does not allow for case sensitive names. If the destination file cannot be created because it has file system reserved characters in the name then an error message appears and the export of that object is skipped. Refer Object Naming Level for more information.

  2. To know more about the export details, click Details.
    The Export Details page displays the information.

  3. To save the report, click Print.
    The Screen Report Title - File Name appears, you can save the report in your machine.

Comment on this topic

Topic ID: 500129