Difference between revisions of "Editable Data Grid"
Jump to navigation
Jump to search
Line 58: | Line 58: | ||
||validationRules | ||validationRules | ||
|| | || | ||
− | * '''required''' (boolean): | + | * '''required''' (boolean): Value is required, i.e. it cannot be empty. |
− | * '''minlength''' (integer): | + | * '''minlength''' (integer): Minimum number of charactes in a textual value. |
− | * '''maxlength''' (integer): | + | * '''maxlength''' (integer): Maximum number of charactes in a textual value. |
− | * '''range''' (two integers): Requires the | + | * '''range''' (two integers): Requires the value to be in given value range. |
− | * '''min''' (integer): | + | * '''min''' (integer): Minimum for numeric value. |
− | * '''max''' (integer): | + | * '''max''' (integer): Maximum for numeric value. |
− | * '''email''' (boolean): The | + | * '''email''' (boolean): The value must be a valid email address. |
− | * '''url''' (boolean): The | + | * '''url''' (boolean): The value must be a valid email URL. |
− | * '''digits''' (boolean): The | + | * '''digits''' (boolean): The value must contain digits only. |
Examples: | Examples: |
Revision as of 20:44, 14 February 2018
Editable Data Grid is a table, that shows data from QPR Suite, and the data can be edited. QPR Suite Web Service properties define which kind of data can be edited. Mainly QPR Metrics, QPR Portal action forms and QPR Suite user management data can be edited, but not QPR ProcessDesigner or QPR EnterpriceArchitect.
Property | Description | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
selectedRowVariable | Local context variable where currently selected row's object id of stored. | ||||||||||||||||||||||
query | Query parameter for the QPR Suite Web Service query to get the rows to the data grid. | ||||||||||||||||||||||
sortby | Sorting parameter for the QPR Suite Web Service query to get the rows to the data grid. | ||||||||||||||||||||||
queryoptions | Options parameter for the QPR Suite Web Service query to get the rows to the data grid. | ||||||||||||||||||||||
columns | Array of objects where each represent a column in the editable data grid.
|
{ "editSettings": { "allowAdding": true, "allowDeleting": true, "allowEditing": true, "allowEditing": "normal" }, "toolbarSettings": { "showToolbar": true, "toolbarItems": ["add", "edit", "delete", "update", "cancel"] } }
{ "columns": [ { allowEditing: false }, ] }
Batch editing is not supported by the editable data grid (editSettings: { allowEditing: "batch" })