Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To export a Tracker, Event, HNQIS2 program the metadata of a Program using the PCA, follows these steps:

  1. Search for your Program using the search bar in the List of Programs.

  2. Open the Program Menu using the three dots located on the far-right.

...

  1. Select Backup/Restore and then , a sub-menu will appear. Under the In Current Device section, select Export JSON Metadata. A window will be displayed where you can customise the JSON file before downloading it.

...

  1. The Export Form will appear with a target server field and a switch to enable JSON CustomizationThis window displays a dropdown that can apply various presets to clean the downloaded JSON file in order to ensure that the target server will accept the file when imported (or at least to improve compatibility and minimise errors).

  2. Select Another Server in the Target Server field and enable the JSON Customization switch.

...

  1. The JSON File Objects, and JSON Attributes Settings and JSON Attributes by Object sections can be expanded and collapsed click on the arrow. Click on the arrow located in the by clicking each header. Expand the JSON Attributes Settings. There Some options are options already preselected due to based on the Target Server selected previously.

...

  1. Note: Once If the JSON Customization has been switch is enabled, a Download both original and modified files checkbox will is be displayed. Check this checkbox. Enabling this option will allow you to download a copy of the original file when downloading your customised file in case you need it. For this demonstration we will check this option.

...

  1. Click on the Download button. Both files will be downloaded, you will notice tha both files are downloaded (your browser may ask you if you want to download multiple files, please keep that in mind when using this feature).

  2. Log in to the a Play DHIS2 Server : (Play Server) using the following credentials:
    Username: District
    Pass: admin

  3. Search for Access the Import/Export App and then click on the App.

...

  1. The Import/Export screen is displayed. Select Metadata import.

...

  1. Click on the Upload File button, and then select the JSON Customized file generated (which doesn't contain 'RAW' in the name).

  1. Go to Metadata Import and select your customised JSON file (the one that does NOT contain the word RAW) and import it.

...

  1. Click on the Start dry run Button. If there are no errors

...

  1. , the Summary Report will be generated.

...

    ...

    1. After verifying that your file will be imported correctly, click on the Start Import button. Once the Program has been imported

    ...

    1. ,

    ...

    1. search for

    ...

    1. it in the

    ...

    1. Maintenance App.

    ...