UIControllerActivity Property
Determines the main activity to be performed in this
UIControllerNamespace: Firefly.BoxAssembly: Firefly.Box (in Firefly.Box.dll) Version: debug-master-v:33791
public Activities Activity { get; set; }
Public Property Activity As Activities
Get
Set
abstract Activity : Activities with get, set
override Activity : Activities with get, set
ActivitiesITaskActivity
Allowed values
Activity | operation |
---|
Update | The default. The user can navigate any row in the view, and perform changes as he see fit. |
Insert | The user will be presented with an empty screen, and will be able to create new rows. |
Browse | The user will be able to browse the data without performing changes to it. If AllowIncrementalSearch is true, the user will be able to type values, and navigate to a row that matches the values he typed, see example below |
The
Delete activity is not allowed. A row can be deleted using the
DeleteRow or the
DeleteRowAfterLeavingItIf(FuncBoolean).
incremental search
This example is based on test data. The code for the entities included in this test data can be found in the documentation of
EntityThis example uses automatic tools to generate parts of the user interface. Those tools can be found in the example of the documentation of
Formusing System;
using System.Collections.Generic;
using System.Text;
using Firefly.Box;
using Firefly.Box.Testing;
namespace TestFirefly.Box.Documentation
{
public class BasicIncrementalSearch
{
public void IncrementalSearch()
{
var jobs = new Pubs.Jobs();
jobs.InitializeWithTestData();
var uic = new UIController()
{
From = jobs,
Activity = Activities.Browse,
AllowIncrementalSearch = true,//The default
View = UITools.GenerateFormWithGridFor("Display Jobs",
"Try typing the first letters of a value from another row, and see how the grid automatically navigates to that row",
jobs.Description,
jobs.MinLevel,
jobs.MaxLevel)
};
uic.Run();
}
}
}