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
Result
Example of Default Preview Data File
{ items: [ { $param:'AnotherDemo', $value: {$type:'com.example.demo.Demo', normalText: "normalText" ,list:[ "list" ],duration: "" ,attribute1:[ "2010-05-16" ]} }, { $param:'Demo', $value: {$type:'com.example.demo.Demo', normalText: "normalText" ,list:[ "list" ],duration: "" ,attribute1:[ "2010-05-16" ]} } ]}
Example of Customized Preview Data File
{ items: [ { $param:'AnotherDemo', $value: {$type:'com.example.demo.Demo', normalText: "My Sample Data" , list:["list", "John", "George", "Ringo"], duration: "P4Y" , attribute1:["2010-05-07", "2010-02-11"]} }, { $param:'Demo', $value: {$type:'com.example.demo.Demo', normalText: "normalText", list:["list"],duration: "", attribute1:["2010-05-07"]} } ]}
Related tasks
Copyright © Cloud Software Group, Inc. All rights reserved.