- Managing Projects
- Data Connection
- Creating an Application View
- Binding Editors to Data
- Creating a Parameterized View
- Configuring Navigation and Device-Specific App Layout
- Setting Up Application Security
- Adding Commands to the Application Toolbar
- How to Layout Views with Stackpanel
Data Loading Options
Data loading options include sorting, filtering, grouping and selection parameters generated by the data source. Data sources send these parameters to the service to request server-side data processing. To address this request, you should take these parameters into account when building URLs and/or request arguments in order to command the server to perform the respective procedures.
Data loading options are represented by objects with the following properties:
sort: Object. Sort expression.
filter: Object. Filter expression.
select: Object. Select expression.
group: Object. Group expression.
skip: Number. The index of the first loaded item.
take: Number. The number of loaded items.
Sort expressions can consist of:
Field name only. Data is sorted by this field in ascending order.
An object with the following structure:
- getter - field name;
- desc - true to sort values in descending order, false to sort them in ascending order.
An array of the above. Sorting will be applied against all fields, from first to last.
## Filter Expressions
A binary operator is represented by an array containing the following items.
1. Name of the field against which data items are filtered (required).
2. Comparison operator (optional). Available operators are: "**=**", "**<>**", "**>**", "**>=**", "**<**", "**<=**", "**startswith**", "**endswith**", "**contains**", "**notcontains**". The default comparison operator is "**=**".
3. The value against which the getter value is compared (required).
Binary operators can be combined using "**and**" - "**or**" group operators.
If neighboring filter expressions are not separated by a group operator, the "**and**" operator is implied.
You can also define operator priority by enclosing the required expression into square brackets.
## Select Expressions
A select expression represents a field name or an array of field names fetched from the data provider.
## Group Expressions
A group expression can consist of:
* a field name against whose values records are grouped;
* an array of field names. Records are grouped hierarchically, starting with values from the first field to those of the last field.