Versions Compared

Key

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

Here is a sample JSON configuration for a form that uses a Smart Filter:

Code Block
languagejs
{
  "dataSources": {
    "CustomerDataSource": {
      "objectName": "CustomerDataSource",
      "entityName": "Consultingwerk.SmartComponentsDemo.OERA.Sports2000.CustomerBusinessEntity",
      "tableRef": "eCustomer",
      "entityView": "eSalesRep",
      "filterSource": "CustomerFilter"
    }
  },
  "columns": [
    {
      "left": {
        "columns": [
          {
            "CustomerFilter": {
              "componentType": "filter",
              "componentOptions": {
                "objectName": "CustomerFilter",
                "filterFieldsInitial": [ "CustNum", "Name" ],
                "orientation": "horizontal"
              }
            },
            "CustomerGrid": {
              "componentType": "grid",
              "componentOptions": {
                "objectName": "CustomerGrid",
                "gridLayout": "Consultingwerk.SmartComponentsDemo.OERA.Sports2000.CustomerBusinessEntity/customer",
                "dataSource": "CustomerDataSource"
              }
            }
          }
        ]
      }
    }
  ]
}

...

PropertyTypeExplanationEquivalent HTML Attribute
objectNamestringThe unique identifier used to obtain references of the Smart Filter component.smart-object-name
orientationstringDetermine's the Smart Filter's orientation. May be "vertical" or "horizontal".orientation
filterFieldsInitialstring[]Array of strings indicating which fields should be initially displayed by the filter.filter-fields-initial
filterFieldsOptionalstring[]Array of strings indicating which fields should optionally be displayed by the filter.filter-fields-optional