Databases Reference
In-Depth Information
if (!string.IsNullOrEmpty(this.ForeignKeyField))
this.foreignKeyColumn = (MetaForeignKeyColumn)
this.Column.Table.GetColumn(this.ForeignKeyField);
else
this.foreignKeyColumn = base.ForeignKeyColumn;
}
return this.foreignKeyColumn;
}
}
}
This simple enhancement of the Parent field and filter templates allows you to provide all
metadata information required to generate a dynamic list page that displays information
not only from the Product entity itself, but also from its parent entity, Supplier, without
having to create a custom page template. Figure 13.6 shows a screenshot of the Product
list page, which includes the Country property both as a filter control at the top of the
page and as a column in the GridView . Both display and filtering of Country property
values works in this dynamically generated page just as well as in the custom page created
with the help of the Parent field and filter templates earlier.
FIGURE 13.6 Product List page with the custom Country property.
Search WWH ::




Custom Search