How Do I Define a Data Source Column Based on a Model? (Magic xpa 2.x)
It is very good to have your data defined in a consistent way. Models help enforce consistency. Once you have your data models in place, you can use them to ensure that the data type is the same in all your data sources.
Prerequisite: The field model must already exist in the Model repository.
-
Go to the Column tab of the data source.
-
Use F4 (Edit->Create Line) to open up a line for your new column.
-
Because you are using a model, you can leave the name field blank if you want, and the name will be automatically inherited from the model.
-
In the Model field, zoom (F5 or double click) to select the model you want to use. In this instance, we are using a “Status Code” model.
Now, when you look at the new column’s property pane, you will see that it has inherited the properties from the “Status Code” model. This means you don’t have to specify anything further here for your standard status code. If the properties of “Status Code” change, then the properties for your data column will change as well.
You can, however, override the properties if you wish. If you override the properties here, that will break the inheritance and those properties will not change if the model changes.
How Do I Define Reusable Data Objects?