Difference between revisions of "Editable Data Grid"
Line 34: | Line 34: | ||
|- | |- | ||
||parentAttribute | ||parentAttribute | ||
− | ||Attribute name that is used as parent object when creating new objects to QPR Suite. The referenced parent attribute must exist either in the defined columns or in the ''additionalAttributes''. The first case is better when user needs to select the parent from multiple options, and the latter is better when there is a fixed parent for all the created objects. | + | ||(Will be supported in QPR UI 2018.3) Attribute name that is used as parent object when creating new objects to QPR Suite. The referenced parent attribute must exist either in the defined columns or in the ''additionalAttributes''. The first case is better when user needs to select the parent from multiple options, and the latter is better when there is a fixed parent for all the created objects. |
|- | |- | ||
||createOptions | ||createOptions | ||
− | ||Options parameter for the QPR Suite Web Service CreateObject operation (http://kb.qpr.com/qpr2017-1/index.html?createobject2.htm), that is used every time a new row is created that is not based on a template object. | + | ||(Will be supported in QPR UI 2018.3) Options parameter for the QPR Suite Web Service CreateObject operation (http://kb.qpr.com/qpr2017-1/index.html?createobject2.htm), that is used every time a new row is created that is not based on a template object. |
|- | |- | ||
||copyOptions | ||copyOptions | ||
− | ||Options parameter for the QPR Suite Web Service CreateCopy operation (http://kb.qpr.com/qpr2017-1/index.html?createcopy3.htm), that is used every time a new row is created based on a template object. | + | ||(Will be supported in QPR UI 2018.3) Options parameter for the QPR Suite Web Service CreateCopy operation (http://kb.qpr.com/qpr2017-1/index.html?createcopy3.htm), that is used every time a new row is created based on a template object. |
|- | |- | ||
− | ||deleteOptions | + | ||(Will be supported in QPR UI 2018.3) deleteOptions |
||Options parameter for the QPR Suite Web Service DeleteObjects operation (http://kb.qpr.com/qpr2017-1/index.html?deleteobject2.htm), that is used every time a row is deleted from the data grid. | ||Options parameter for the QPR Suite Web Service DeleteObjects operation (http://kb.qpr.com/qpr2017-1/index.html?deleteobject2.htm), that is used every time a row is deleted from the data grid. | ||
|- | |- | ||
Line 66: | Line 66: | ||
* '''dropdown''': shows a dropdown list where user can select from a list of predefined items. The items are defined in the '''dropdownoptions''' property. | * '''dropdown''': shows a dropdown list where user can select from a list of predefined items. The items are defined in the '''dropdownoptions''' property. | ||
* '''numericbox''': shows a textbox for numeric values. It's not possible to input textual data. | * '''numericbox''': shows a textbox for numeric values. It's not possible to input textual data. | ||
− | * '''relation''': shows a dropdown list where a QPR Suite object can be selected. Id of the selected object is stored as the relation attribute value. | + | * '''relation''': (Will be supported in QPR UI 2018.3) shows a dropdown list where a QPR Suite object can be selected. Id of the selected object is stored as the relation attribute value. |
* '''textbox''': shows a textbox for storing string values. | * '''textbox''': shows a textbox for storing string values. | ||
|- | |- | ||
Line 92: | Line 92: | ||
|- | |- | ||
||relationQuery | ||relationQuery | ||
− | ||Query to get the list of objects to be selected from dropdown list. Used only used when ''type'' is ''relation''. | + | ||(Will be supported in QPR UI 2018.3) Query to get the list of objects to be selected from dropdown list. Used only used when ''type'' is ''relation''. |
|- | |- | ||
||relationAttribute | ||relationAttribute | ||
− | ||Attribute to show in the list of object in the dropdown menu. Used only used when ''type'' is ''relation''. | + | ||(Will be supported in QPR UI 2018.3) Attribute to show in the list of object in the dropdown menu. Used only used when ''type'' is ''relation''. |
|- | |- | ||
||validationRules | ||validationRules |
Revision as of 11:07, 23 February 2018
Editable Data Grid is a table, that shows data from QPR Suite Web Service, and the data can also 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.
Data shown in the data grid is fetched using QPR Suite Web Service query, where each row is linked to one object and each column is linked to an attribute in the Web Service.
Note that, the editable data grid does not use datasets to fetch data.
Property | Description | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
additionalAttributes | List of attributes and values that are saved to the object when it's created. Can be used to define a fixed parent object id for all created objects. Defined as a JSON object where the property name is the attribute name, and property value is the attribute value.
Example: "additionalAttributes": { "attribute1": "value1", "attribute2": "value2" } | ||||||||||||||||||||||||||||||||||
selectedRowVariable | Local context variable where currently selected row's object id of stored. Note that the selected row doesn't change, when the context variable is changed from somewhere else. | ||||||||||||||||||||||||||||||||||
query | Query parameter for the QPR Suite Web Service query to get the rows to the editable data grid. More information: http://kb.qpr.com/qpr2017-1/index.html?queryobjects.htm. | ||||||||||||||||||||||||||||||||||
sortBy | Sorting parameter for the QPR Suite Web Service query to get the rows to the editable data grid. | ||||||||||||||||||||||||||||||||||
queryOptions | Options parameter for the QPR Suite Web Service query to get the rows to the editable data grid. | ||||||||||||||||||||||||||||||||||
parentAttribute | (Will be supported in QPR UI 2018.3) Attribute name that is used as parent object when creating new objects to QPR Suite. The referenced parent attribute must exist either in the defined columns or in the additionalAttributes. The first case is better when user needs to select the parent from multiple options, and the latter is better when there is a fixed parent for all the created objects. | ||||||||||||||||||||||||||||||||||
createOptions | (Will be supported in QPR UI 2018.3) Options parameter for the QPR Suite Web Service CreateObject operation (http://kb.qpr.com/qpr2017-1/index.html?createobject2.htm), that is used every time a new row is created that is not based on a template object. | ||||||||||||||||||||||||||||||||||
copyOptions | (Will be supported in QPR UI 2018.3) Options parameter for the QPR Suite Web Service CreateCopy operation (http://kb.qpr.com/qpr2017-1/index.html?createcopy3.htm), that is used every time a new row is created based on a template object. | ||||||||||||||||||||||||||||||||||
(Will be supported in QPR UI 2018.3) deleteOptions | Options parameter for the QPR Suite Web Service DeleteObjects operation (http://kb.qpr.com/qpr2017-1/index.html?deleteobject2.htm), that is used every time a row is deleted from the data grid. | ||||||||||||||||||||||||||||||||||
columns | Array of objects where each represent a column in the editable data grid. Following properties can be used:
| ||||||||||||||||||||||||||||||||||
[other syncfusion settings] |
All Syncfusion datagrid settings can be used: https://help.syncfusion.com/api/js/ejgrid#members:columns |
{ "editSettings": { "allowAdding": true, "allowDeleting": true, "allowEditing": true, "allowEditing": "normal" }, "toolbarSettings": { "showToolbar": true, "toolbarItems": ["add", "edit", "delete", "update", "cancel"] } }
Batch editing is not supported by the editable data grid (editSettings: { allowEditing: "batch" })