A2v10 Platform documentation
UK


Actions

The actions object describes the actions that are possible at the current endpoint. Object property names are action names. Each property represents the object of the following structure:


Properties of the action object

Name Type Description
source string Optional. Data source. If not specified, taken from the parent item.
schema string Optional. The name of the SQL schema. If not specified, taken from the parent item.
model string Name of the model. If not specified, taken from the parent item.
merge object Optional. An additional model that will be combined with the main one. It is possible to specify a different schema and a different data source. If the schema or the source are not specified, they are taken from the parent item.
The parameters object allows you to set additional parameters for the second model. It is possible to reference values from the main model. To do this, specify in the value the path to the property of the main model in double curly braces ({{....}}).
index boolean Whether the model for action is an index one. For the index model the stored procedure with the '.Index' suffix is executed, for the regular - with the '.Load' suffix.
copy boolean Whether the action is copying. In this case, a saved procedure with the suffix '.Copy' is executed to load the model. Copying in the index actions is not supported.
template string Path to the template file for action. Learn more about templates.
view string Path to the view file for the action.
checkTypes string The name of the *.d.ts file for dynamic type checking.
indirect boolean Indirectness. The action is performed in two stages.
parameters object Object, static parameters that are passed to the saved model download procedure. The property name is the name of the parameter, the value is the value of the parameter.
export object Oject that describes the action of exporting (loading) a data model. The object has the following parameters:
fileName A row. The name of the file being saved to be offered to the user.
format xlsx | dbf | csv list. File format for export.
template A row. The name of the template file based on which the export will be performed. Required for export to xlsx format.
encoding Export file code page. Required for export to dbf and csv formats. List: utf8 | 1251 | 866.
When you load the model for export, a saved procedure with the .Export suffix will be called.