Loading...

Dimension Models

Dimension Models are data sources for controls that can display data in a hierarchical view, for example, the TreeView control.

Dimension Models are read-only and cannot be modified and saved back to the database.


Properties:


Name

The name of the model. The Name is required and used by controls to specify its data source.


Source

The name of the dimension. Unlike Lists, SetModels and Models, you cannot specify the database table name or use the @Object[…].DbObjectName directive to specify the source dimension.


Example

<Form>
<Style>
<Layouts>
<Grid Name="grid" Rows="1fr" Columns="1fr" />
</Layouts>
</Style>
<Texts />
<Data>
<Dimensions>
<DimensionModel Name="TreeViewData" Source="PCDim"/>
</Dimensions>
</Data>
<EventHandlers/>
<UI Grid="grid">
<Grid Rows="1fr" Columns="1fr">
<TreeView ItemsSource="{Binding Path:TreeViewData}" Row="1" Column="1" />
</Grid>
</UI>
</Form>

Videos