![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
Editing the File [form-name].data.json
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 will appear asking you to type a new name for the file. Keep the extension .data.json, and supply a different filename. Do not delete the original preview data file.
3. Right-click your newly-named custom preview data file, and click Open With > Text Editor.
Do not edit the original .data.json file. This is a generated file, and if you edit it, your customizations will be overwritten when the file is regenerated.Also, be sure to maintain the file extension, .data.json. Otherwise, you’re customized preview data file will not be accessible by the form.{ $param:'Demo', $value: {$type:'com.example.demo.Demo',
normalText: "normalText", list:["list"],duration: "",
attribute1:["2010-05-07"]}To configure the Preview Data File setting for the form:
a. None Select this option if you prefer that no data be displayed initially for the controls when the form is previewed.
b. Default Select this option if you want to use the default data for each control on the form.
c. Custom Select this option if you want to use your customized .data.json file for the preview data values. The Custom radio button is paired with an optionlist that shows all the .data.json files associated with the current form. Select the custom preview data file you want to use from the optionlist.
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |