Controlling what columns to show in Grids and Tables
F
Fredrik Dannberg
started a topic
about 7 years ago
Using the
script language it is possible to configure what columns to show in a grid or Table based on data from the model.
Below is a simple
example where we start on a primitive data type and look at an attribute on the
CompuMethod to decide what columns to show. If the attribute has the value ‘IDENTICAL’ or ‘LINEAR’ we show one
set of attributes in the grid and in all other cases we show another set:
Fredrik Dannberg
Using the script language it is possible to configure what columns to show in a grid or Table based on data from the model.
Below is a simple example where we start on a primitive data type and look at an attribute on the CompuMethod to decide what columns to show. If the attribute has the value ‘IDENTICAL’ or ‘LINEAR’ we show one set of attributes in the grid and in all other cases we show another set:
Identical or Linear:
Other cases:
Meta model:
This is the XML Definition: