JSON Examples
These are, admittedly, simple examples. For more in-depth examples, see the "examples" subdirectory of our open source offering.
JSON Examples:
Char Data Example
{ "text": "", "formats": [{"screen":
  { "record format name": "" },
  "items": [
   { "id": "TextBox1",
     "field type": "textbox",
     "css class": "input",
     "value": {
        "fieldName": "Field0001",
        "dataLength": "10",
        "trimLeading": "true",
        "trimTrailing": "true",
        "blankFill": "true",
        "rjZeroFill": "true",
        "dataType": "char",
        "formatting": "Text",
        "textTransform": "uppercase",
        "designValue": "[Field0001]" },
     "left": "240px",
     "top": "145px" }
 ]}]}
Number Data Example
{ "text": "", "formats": [{
 "screen":{ "record format name": "" },
 "items": [
   { "id": "TextBox1",
     "field type": "textbox",
     "css class": "input",
     "value": {
        "fieldName": "Field0001",
        "dataLength": "10",
        "decPos": "0",
        "numSep": "true",
        "zeroBalance": "true",
        "numBlankFill": "true",
        "zeroFill": "true",
        "curSym": "$",
        "dataType": "zoned",
        "formatting": "Number",
        "negNum": "-999.00",
        "units": "px", "designValue": "[Field0001]" },
     "left": "240px",
     "top": "145px" }
  ]}]}
Â
Indicator Data Example
{ "text": "", "formats": [{
 "screen": { "record format name": "" },
 "items": [
   { "id": "TextBox1",
     "field type": "textbox",
     "css class": "input",
     "value": {
         "fieldName": "Field0001",
         "customTrue": "HI",
         "customFalse": "BYE",
         "dataType": "indicator",
         "formatting": "Indicator",
         "indFormat": "Custom Values",
         "designValue": "[Field0001]" },
      "left": "240px",
      "top": "145px" }
 ]}]}
Â
Date data Example
Â
Time Data Example
Â
Timestamp Data Example
Â
Special Data Example
Â
Custom Data Example
Some documentation pages have recently moved to a new section: Profound AppDev. If you are having trouble finding specific pages, try the documentation search capability or reach out to our Support team!