View

Are used as basic data for formation of grids, forms and blocks controllers.

The Views are formed on the basis of data model.

# Name Type Comment
1 Name string
2 Caption string
3 Model Data model will be formed on the basis of the view
4 Description string

Functions

It is possible to connect a call of external functions to the View. Call of external functions is specified in string parameters in a format =. Call of function parameters will be transformed to the Dictionary <string, string>.

The following types of external calls are available:

# Type Format of function
1 Filter public static ExternalMethodCallResult ( EntityMetadata metadata, Dictionary<string, string> parameters, string extra, ref FilterCriteriaSet filter){ //CODE HERE}
2 After request public static ExternalMethodCallResult ( EntityMetadata metadata, Dictionary<string, string> parameters, IEnumerable entities){ //CODE HERE}
3 Before update
4 After update
5 Before create
6 After create
7 Before deleted
8 After deleted
9 Init for copy
10 Init for create

Columns

Name Comment
1 Column The column name from data model
2 Order Defines an order of columns
3 Width Width of columns in tables
4 Show Defines visibility of the column
5 Edit Defines if a column is available to edit
6 Import/Export It is used in integration API. Defines participating columns in uploading\loading of data.
7 Compare It is used in integration API. Defines a set of columns which are compared with imported records from DB.
8 View for select Reference columns define representation for a choice.
9 Alternative name It is used to change the heading of a column in the system interface.
10 Format string Sets a format of data display.For example, formatting for date: d.m.Y H:m:s (Day. Month. Year hours:minutes: seconds).
11 Control for edit Defines control which will be used for display and editing of value of a column.The list can be expanded. The following values are available by default:Ext.form.field.TextExt.form.field.TextAreaExt.form.field.ComboBoxExt.ux.optimajet.DictionaryPredefinedField

Screenshots:

Screenshot 1