Defining properties on a dataset
The dataset tag in the ControlManifest.Input.xml file allows you to define properties on a dataset. These properties are like the properties defined in a field-type code component, but instead, the tag is named property-set. When a property is defined on a dataset, the framework includes that property as a column in the dataset, making sure it is available at runtime even when it is not part of the view.
In our example dataset, we will add a property-set to capture a mobile phone number and any record that does not have a mobile phone number will be highlighted in a different color. First, we need to add the property-set in the ControlManifest.Input.xml file, which is shown in the following snippet:
ControlManifest.Input.xml
<data-set name="datasetGrid"
  display-name-key="Data Cards"
  cds-data-set-options=
    "displayCommandBar:true;displayViewSelector:true;
...