Chart On-screen Settings: Difference between revisions

From QPR ProcessAnalyzer Wiki
Jump to navigation Jump to search
No edit summary
Line 4: Line 4:
On-screen settings are defined as a JSON array, where each item has the following properties:
On-screen settings are defined as a JSON array, where each item has the following properties:
* '''type''': Either ''measure'', ''dimension'', ''eventtypemeasure'' (for Event measures in flowchart), ''flowmeasure'' (for Flow measures in flowchart) or ''root''. If slicing into dimensions is disabled, columns correspond to dimensions.  
* '''type''': Either ''measure'', ''dimension'', ''eventtypemeasure'' (for Event measures in flowchart), ''flowmeasure'' (for Flow measures in flowchart) or ''root''. If slicing into dimensions is disabled, columns correspond to dimensions.  
* '''index''': Index of the expression. Not used for the root.
* '''index''' (integer): Index of the expression. Not used for the root.
* '''parameter''': Name of the parameter.
* '''parameter''' (string): Name of the parameter.
* '''label''': Custom label for the field.
* '''label''' (string): Custom label for the field.
* '''maxWidth''': Maximum width of the shown setting in pixels.
* '''maxWidth''' (integer): Maximum width of the shown setting in pixels.
* '''newLine''': Defines whether the setting is positioned to a new line for more spacing between settings.
* '''newLine''' (boolean): Defines whether the setting is positioned to a new line for more spacing between settings.
* '''excludeCaseIdColumn''' (boolean): When showing case or event attribute, this setting will hide the case id column from the list. Use value ''true'' to hide the case id.
* '''includeChartFilters''' (boolean):
* '''includeChartFilters''' (boolean): When showin a dropdown list with model data, this setting determines whether the list content is filtered with the chart filter rules.
* '''includeOnly''' (string array): With this setting, it's possible to filter the shown dropdown list values by explicitly listing the shown values.
* '''allowedDatatypes''' (string array): With this setting, it's possible to filter the shown case and event attributes in the dropdown list by explicitly listing the attribute datatypes which are shown. Allowed values: String, Integer, Float, DateTime, Boolean.


When using custom expressions, it's possible to define parameters for them as on-screen settings. To do that, there are additional properties to be set that define which kind of UI control is used. The following parameters can be used:
When using custom expressions, it's possible to define parameters for them as on-screen settings. To do that, there are additional properties to be set that define which kind of UI control is used. The following parameters can be used:
Line 19: Line 24:
* '''options''': Fixed options for the ''singleselectlist''. Array of object with following properties: '''label''' (user visible text in the dropdown list) and '''identifier''' (actual stored value to the parameter).
* '''options''': Fixed options for the ''singleselectlist''. Array of object with following properties: '''label''' (user visible text in the dropdown list) and '''identifier''' (actual stored value to the parameter).
* '''optionsData''': When ''control'' is ''singleselectlist'', defines type of items shown by the dropdown list. One of the following: AggregateNumbers, AggregateDates, AggregateDurations, AggregateDurationsWithoutNulls, AggregateText, SqlAggregateNumbers, SqlAggregateDates, SqlAggregateText, TimeUnits, DurationUnits, Periods, CountOrPercentage, CountOrPercentageCases, CountOrPercentageEvents, NumericalComparison, EventIndex, FlowStartEndEvent, DataTypes.
* '''optionsData''': When ''control'' is ''singleselectlist'', defines type of items shown by the dropdown list. One of the following: AggregateNumbers, AggregateDates, AggregateDurations, AggregateDurationsWithoutNulls, AggregateText, SqlAggregateNumbers, SqlAggregateDates, SqlAggregateText, TimeUnits, DurationUnits, Periods, CountOrPercentage, CountOrPercentageCases, CountOrPercentageEvents, NumericalComparison, EventIndex, FlowStartEndEvent, DataTypes.
* '''dynamicType''': When ''control'' is ''dynamicsingleselectlist'' or ''multiselectlist'', defines type of items shown by the dropdown list. One of the following: CaseAttributes, AllCaseAttributes, CaseAttributeValues, EventAttributeValues, EventAttributes,  AllEventAttributes, EventTypes, AllEventTypes, Variations, FlowsStartingFrom, StartEventTypes, EndEventTypes, CaseIds, DataTables, DataTableColumns, DataTableColumnsByDatatableName, AnalysisColumns, DataTablesOfProject, Models, ModelById, Projects, Scripts
* '''dynamicType''': When ''control'' is ''dynamicsingleselectlist'' or ''multiselectlist'', defines type of items shown by the dropdown list. One of the following: CaseAttributes, CaseAttributeValues, EventAttributeValues, EventAttributes, EventTypes, Variations, FlowsStartingFrom, StartEventTypes, EndEventTypes, CaseIds, DataTables, DataTableColumns, DataTableColumnsByDatatableName, AnalysisColumns, DataTablesOfProject, Models, ModelById, Projects, Scripts


It's also possible to change UI controls for the standard expressions, by overriding UI control settings in the on-screen settings. All above mentioned parameters can be used, except the the UI control type cannot be changed (i.e. the '''control''' parameter cannot be used).
It's also possible to change UI controls for the standard expressions, by overriding UI control settings in the on-screen settings. All above mentioned parameters can be used, except the the UI control type cannot be changed (i.e. the '''control''' parameter cannot be used).

Revision as of 18:56, 3 September 2025

Parameters of measures, dimensions, columns and analyzed objects can be defined as on-screen settings, bringing the settings easily available in the dashboard (above the chart). When the commonly used settings are defined as the on-screen settings, the settings dialog doesn't need to be opened at all.

Configuration

On-screen settings are defined as a JSON array, where each item has the following properties:

  • type: Either measure, dimension, eventtypemeasure (for Event measures in flowchart), flowmeasure (for Flow measures in flowchart) or root. If slicing into dimensions is disabled, columns correspond to dimensions.
  • index (integer): Index of the expression. Not used for the root.
  • parameter (string): Name of the parameter.
  • label (string): Custom label for the field.
  • maxWidth (integer): Maximum width of the shown setting in pixels.
  • newLine (boolean): Defines whether the setting is positioned to a new line for more spacing between settings.
  • excludeCaseIdColumn (boolean): When showing case or event attribute, this setting will hide the case id column from the list. Use value true to hide the case id.
  • includeChartFilters (boolean):
  • includeChartFilters (boolean): When showin a dropdown list with model data, this setting determines whether the list content is filtered with the chart filter rules.
  • includeOnly (string array): With this setting, it's possible to filter the shown dropdown list values by explicitly listing the shown values.
  • allowedDatatypes (string array): With this setting, it's possible to filter the shown case and event attributes in the dropdown list by explicitly listing the attribute datatypes which are shown. Allowed values: String, Integer, Float, DateTime, Boolean.

When using custom expressions, it's possible to define parameters for them as on-screen settings. To do that, there are additional properties to be set that define which kind of UI control is used. The following parameters can be used:

  • control: UI control type which is one of the following: singleselectlist, dynamicsingleselectlist, multiselectlist, singlelinetext, multilinetext, numericfield, datefield, datetimefield, checkbox, colorpicker, bpmneditor.
  • minValue: For numericfield, specified the minimum allowed numerical value.
  • decimals: For numericfield, specified whether decimal numbers can be specified (or only integer numbers). Note: Up to QPR ProcessAnalyzer 2021.9 this settings is allowDecimals (true/false).
  • mandatory: Defined that the UI control is mandatory, i.e. the chart is not drawn until a value has been specified.
  • unit: For numericfield, show unit for the numerical value.
  • updateImmediately: For singlelinetext and multiselectlist, specified whether the chart is updated with each change of the input box value. When disabled, the value updated only when cursor leaves the input box.
  • options: Fixed options for the singleselectlist. Array of object with following properties: label (user visible text in the dropdown list) and identifier (actual stored value to the parameter).
  • optionsData: When control is singleselectlist, defines type of items shown by the dropdown list. One of the following: AggregateNumbers, AggregateDates, AggregateDurations, AggregateDurationsWithoutNulls, AggregateText, SqlAggregateNumbers, SqlAggregateDates, SqlAggregateText, TimeUnits, DurationUnits, Periods, CountOrPercentage, CountOrPercentageCases, CountOrPercentageEvents, NumericalComparison, EventIndex, FlowStartEndEvent, DataTypes.
  • dynamicType: When control is dynamicsingleselectlist or multiselectlist, defines type of items shown by the dropdown list. One of the following: CaseAttributes, CaseAttributeValues, EventAttributeValues, EventAttributes, EventTypes, Variations, FlowsStartingFrom, StartEventTypes, EndEventTypes, CaseIds, DataTables, DataTableColumns, DataTableColumnsByDatatableName, AnalysisColumns, DataTablesOfProject, Models, ModelById, Projects, Scripts

It's also possible to change UI controls for the standard expressions, by overriding UI control settings in the on-screen settings. All above mentioned parameters can be used, except the the UI control type cannot be changed (i.e. the control parameter cannot be used).

Examples

Onscreensettingsexample.png
[
  {
    "type": "dimension",
    "index": 0,
    "parameter": "Attribute",
    "maxWidth": 500
  },
  {
    "type": "dimension",
    "index": 1,
    "parameter": "Period",
    "label": "Time"
  }
]

Creates a custom numeric field, where minimum value is 1 on decimals are allowed:

[
  {
    "type": "measure",
    "index": 0,
    "parameter": "var1",
    "maxWidth": 200,
    "control": "numericfield",
    "decimals": 2,
    "minValue": 1
  }
]

This example creates a custom dropdown list with predefined options:

[
  {
    "type": "measure",
    "index": 0,
    "parameter": "var1",
    "maxWidth": 200,
    "label": "Select option",
    "control": "singleselectlist",
    "options": [
     {
       "label": "Option 1",
       "identifier": "option1"
     },
     {
       "label": "Option 2",
       "identifier": "option2"
     },
     {
       "label": "Option 3",
       "identifier": "option3"
      }
    ]
  }
]