Open topic with navigation

TIBCO Business Studio™ - BPM Edition 5.4.0

# Editing the File form-name .data.json

The `.data.json` file is a generated file. Do not edit the original file. If you edit it, your customizations are overwritten when the file is regenerated.

Also, be sure to maintain the file extension, `.data.json`. Otherwise, your customized preview data file is not accessible to the form.

Procedure
1. In the Project Explorer, find the file that contains the preview data.

   The default location of this file is: [project-name] > Forms > ProcessPackage > [business-process-name] > [user-task-name] > [form-name].data.json

2. Right-click the `.data.json` file and click Copy. Then, in the same location in the Project Explorer, right-click and click Paste.

   The Name Conflict dialog box appears asking you to type a new name for the file. Rename the file keeping the extension `.data.json`. Do not delete the original preview data file.

3. Right-click your newly-named custom preview data file, and click Open With > Text Editor.
4. Edit the file, providing your desired values for the preview data in place of the default values in the file.

Result

Example of Default Preview Data File

    {
        "body": {
            "inputs": [

            ],
            "outputs": [

            ],
            "inouts": [
                {
                    "name":"Customername",
                    "simple": [
                        "Text"
                    ]
                },
                {
                    "name":"CustomerAddress",
                    "simple": [
                        "Text"
                    ]
                },
                {
                    "name":"Customerdateofbirth",
                    "simple": [
                        "2019-07-04"
                    ]
                },
                {
                    "name":"Sharetheinformation",
                    "simple": [
                        true
                    ]
                }
            ]
        }
    }

Example of Customized Preview Data File

    {
        "body": {
            "inputs": [

            ],
            "outputs": [

            ],
            "inouts": [
                {
                    "name":"Customername",
                    "simple": [
                        "John Smith"
                    ]
                },
                {
                    "name":"CustomerAddress",
                    "simple": [
                        "Address of Customer"
                    ]
                },
                {
                    "name":"Customerdateofbirth",
                    "simple": [
                        "yyyy-mm-dd"
                    ]
                },
                {
                    "name":"Sharetheinformation",
                    "simple": [
                        true
                    ]
                }
            ]
        }
    }

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO Business Studio™ - BPM Edition

Copyright © 2015-2023. Cloud Software Group, Inc. All Rights Reserved.