Local Columns and BindValue
In this section, we'll discuss local columns and BindValue
Let's start with:
Local Columns
- Just like you can add a column to an Entity, you can have a local column defined in the scope of a controller
- Create a "DemoLocalColumn" Controller
- Add a member called "FromDate" of type
DateColumn
public class DemoLocalColumns : UIControllerBase
{
public readonly DateColumn FromDate = new DateColumn("From Date");
public readonly DateColumn ToDate = new DateColumn("To Date");
public DemoLocalColumns()
{
}
public void Run()
{
Execute();
}
protected override void OnLoad()
{
View = () => new Views.DemoLocalColumnsView(this);
}
}
- Make sure to build the project
- Add the
FromDate
andToDate
members to the screen using the "Column Wizard"
For a deeper discussion of these topics see Lambda Expressions Generics and BindValue
- Setting Column Values from the Code
- Adding a Button to Claculate Days Between
- BindValue to Another Column
- BindValue to a Method
- Func
- Lambda Expressions
Help us improve, Edit this page on GitHub
or email us at info@fireflymigration.com