Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The name HELPDEVTODO: David will probably change the name of this
FieldDescription
Basic Settings
NameThe name of the stream view. By default, a space will be included before each capital letter. For example, the name CustSpendAverage will be displayed in the column heading as Cust Spend Average.
Display TypeA number of chart types are available:
  • Barchart: plot a quantity as a set of bars against a set of categories along the horizontal axis.
  • 3D Barchart: a 3D version of the standard barchart.
  • Barchart (horizontal)
  • Grid: show stream data laid out in a table.
  • Line Chart (category horizontal axis): plot line, or lines, representing quantities against a horizontal axis of 'categories'. The categories are printed along the horizontal axis, ordered alphanumerically.
  • Line Chart (numeric horizontal axis): plot line, or lines, representing quantities against a numerical horizontal axis.
  • 3D Pie Chart: a 3D version of the standard pie chart.
  • Pie Chart: show a quantity as a pie chart, grouped by a category.
  • Pivot: show stream data laid out in a table, with data for values of one attribute broken out ('pivoted') into multiple columns.
  • Stacked Barchart: a bar chart where multiple series/multiple attributes per category are displayed in a stacked form.
  • Line Chart (times series horizontal axis): plot line, or lines, representing quantities against a date/time value - a stream attribute of type Date or Datetime.

HELPDEVTODO: no file download button on form; is this still correct anyway? If display type is a chart and the user elects to output the chart to HTML (either via a File Exporter or from a chart, PhixFlow will output the chart to HTML as a picture (.PNG).

Default Sort OrderIf specified, the default order in which data should be displayed. See the Stream View Sort Order form.
Default FilterAny filter on the stream can be selected as the default filter for this view.
Background FilterAny filter on the stream can be selected as the background filter for this view. When the user opens this view the background filter is applied first and any other filter applied to the view (either specifically created/selected by the user or automatically applied as the default filter described above) applied on top of the background filter.
Default ActionThe action that will be applied when users double-click on a row in a data grid. Often this is an update action - that allows users (if they have permissions to run the action) to update the record. But you can make this open a read-only detailed view of the record if that is more useful for most users. See Action.
Form View

Tick this box to make this a form view. This can be used to accepting input from a user, for an insert or update action.

Pivot Details
This section only appears for pivot views. See pivot views for details.
View Attributes

A list of attributes displayed in the view, or to build a chart. Press  to bring up a list of attributes for the stream, and drag the attributes you want to add to the view into this list.

For each attribute, the following fields are shown:

OrderThe order in which the attributes will appear in the view. For a grid view, this is the order of columns.
Name

The display name of the attribute in the view. By default, this is the same as the name of the attribute in the underlying stream.

Remember that if you are applying an Aggregate Function to the attribute, it is often useful to reflect that in the display name. For example: you are going to display the average monthly spend for each customer, by applying the aggregate function Average to the attribute CustSpend. You set the display name as CustSpendAverage.

Stream Function

You can specify an Aggregate Function on this attribute. As soon as you have specified a single aggregate attribute in your view, any other fields will be either aggregate attributes - if you also specify an aggregate function for them - or used as grouping attributes.

Role

This setting only shows if the view is a chart, i.e. not a data grid. This is the role that the field has in generating the chart.

You can set the role manually in the stream view attribute editor - but it is generally better to create charts using the visual editor. To do this:

  • drag your stream view into a dashboard
  • make sure you are in design mode
  • unlock the padlock in the view (if it is not already unlocked)

You will see a visual chart editor - you can drag stream attributes onto this editor to create your chart.


pivot views


charts


Decimal PlacesThis field will only show if the underlying stream attribute has type Float. The number of decimal places to display.
Date/Time FormatThis field will only show if the underlying stream attribute has type Date or Datetime. See toString for a description of display formats.
Hidden

HELPDEVTODO: not shown for charts, should it be? If not, put in Grid Settings section

Whether the field is shown on the view. Sometimes you need to include fields in views so that they can be used in filters and Actions, but displaying them would make the view cluttered. Make the field hidden.

Stream Attribute Details

Name

Stream Attribute Details

Name

The name of the underlying stream attribute.
TypeThe type of the underlying stream attribute. This cannot be edited here. It must be edited in the Stream.
Grid Settings
These settings are only available for view attributes for grid and pivot views.
Grid Default Width (pixels)Set the default width of the column for this attribute. PhixFlow will create the grid with default column widths - you only need to specify a value in this field if the width you want is different from this default.
Label

An optional label for the resulting column header. If left blank, this is the Name of the stream view attribute.

The label gives you more options for setting the column header - for example, control over the white space in the column heading - but you can also make this an expression. For example, to that the column contains transactions for the currently logged in user, you could use: 

Code Block
"Transactions for " + _user.username

For user pchevalier, this would give the column heading:

Code Block
Transactions for pchevalier

To use an expression in this field, tick the box Label is Expression.

Multi-level labels can be generated by configuring the Label to return a list of values.

Label is ExpressionTick this box if you want to set the Label using an expression.
Changes Row ColourIf ticked, the row colour changes whenever the value in this field changes.
Hidden

Whether the field is shown on the view. Sometimes you need to include fields in views so that they can be used in filters and Actions, but displaying them would make the view cluttered. Make the field hidden.

Alignment

Set the alignment of values in this column to:

  • Left
  • Right
  • Centre
Form Settings
These settings are only available for form views - that is, grid views that have Form View ticked.
Read OnlyThis makes the field read-only in the form view.
Height On Form (pixels)Sets the height of the form field for this attribute. PhixFlow will create the form field with a default height - you only need to specify a value in this field if the height you want is different from this default.
Width On Form (pixels)Sets the width of the form field for this attribute. PhixFlow will create the form field with a default width - you only need to specify a value in this field if the width you want is different from this default.
Multiline on FormIf ticked, users can press the Enter key to create multiple lines in this field, or copy multi-line text into this field.
Selection View Attribute

This sets the dropdown list from which the user can pick a value. Drag the stream view attribute that you want to use for the dropdown list into this field. The Show the dropdown button option must be ticked to display the drop down.

When a user is entering or updating data using a form view, you can use the internal variable _form to use a value already entered in the form in the filter on a selection view. That is, the values that appear in a drop down list will be governed by values they have entered so far in the form. See Configuring Selection View Attributes below for an example of configuring selection view attributes.

If another stream view attribute has a Selection View Attribute set and has Show the dropdown button set to yes, then it is possible to set the current stream view attribute from the same selection view without a further dropdown list. Drag the stream view attribute that you want to use to set this stream view attribute into this field

Drag the attribute out of the field to delete the contents of the Selection View Attribute.

Show the dropdown buttonSee Selection View Attribute above.
Formatting Rules

A list of the formatting rules that apply to this field in the view. This section only appears when you are configuring a grid or pivot view.

All formatting rules whose Rule Expression evaluates to true will be applied to the field in the grid. However, you can tick Stop if True so that, if a rule evaluates to true, no styles that follow this in the list of rules will be applied - regardless of the result of their Rule Expression.

For each formatting rule, set the following fields:

Rule ExpressionAn expression to govern whether this rule will be applied to this field in the grid. If this expression evaluates to true, the rule will be applied.
StyleSelect a style from the drop-down list, or create a new style.
OrderThe order in which the formatting rules are applied.
EnabledWhether the rule is currently active.
Stop if TrueIf ticked, if this rule evaluates to true, no styles that follow this will be applies, regardless of the result of their Rule Expression.
DescriptionA description of the formatting rule.
Refresh Actions

A list of Refresh Actions which are all the actions that, following their execution, will cause this view to be refreshed.

To add a Refresh Action go to a Stream's Actions tab and drag actions into this tab. The stream does not have to be the parent of this stream view.

Menu Items

A list of the buttons, menus and sub-menus that will be presented on this view - which buttons are available to users depends on whether they have permissions to run these actions.

Only actions that belong to the parent stream can be added to a view.

There are three ways to add Lists and Buttons:

  • Click on the Actions icon at the top of the grid.
    • A popup window will appear listing all the available actions on the parent stream
    • Drag an action from this popup form onto the grid
    • If you drop onto an existing button you will be asked if you want to:
      • create a new button, or
      • create a list which will hold the new button and the button you dropped the new action on to
    • If you drop onto an existing list, the dragged action will be added to the list
  • Go to the Stream Details Actions tab and drag actions into this tab
  • Use the '+' icon at the top of the grid
    • You can decide if you want to create a button, menu or sub-menu.

For each button you set the following fields:

NameThe internal name of the action button. This name will be used to refer to this button in other configuration objects
Display NameThe name that will be presented to users when they open the form.
OrderThe order that the button will be shown in the banner of the form, or, if the button is on a list (a menu or sub-menu), the order the button will appear in that list.
DescriptionA description of the action button.
Filters

The list of filters which will be available to users in the drop down list of filters on the view.

There are two ways to add a filter to this list:

  • Click on the filter button in this section
    • A popup window will appear listing all the available filters on the parent stream
    • Drag a filter from this popup into the list
  • Go to the parent stream's filters and drag filters into this list
Access Permissions
All Users Can View Data

If ticked, all users will be able to see data in this view (provided they have the basic privilege to view stream views).

If this field is unticked, a list of user groups will appear:

User Groups
A list of the user groups whose users can see data in this view. This list only appears if All Users Can View Data is unticked.
Advanced
Selection AttributeThis attribute will be used to determine the record selected. This is important when the data will be refreshed while users are looking at it - for example, if they run actions that run task plans to update the data, and which are set as refresh actions (see above). Setting this using a key field of the data means that after the refresh, the same record will be selected as before.

Override Default Row Selection Style

The style that will applied to rows in this view when they are selected. If set, this will override the default selected row style set in the System configuration /wiki/spaces/DEV/pages/1648132313.
Select First Row By DefaultIf ticked, the first row shown in the view will be selected when the view is opened.
PeriodsNumber of processing periods from the stream to display on the chart. If a full set of data is generated in each period, then this will be 1. If the data is spread across processing periods in the stream - for example, each processing period only contains new data for that day, but we want to plot data across a number of days - then this number must be high enough to include all data of interest to show on a chart.
Default WidthThe default width of the view. If empty, the view's width will be set to the system default value.
Default HeightThe default height of the view. If empty, the view's height will be set to the system default value.
Allow Multi-SelectIf ticked, users will be able to select more than one row in the grid.
Excel Template

An excel template can be linked to the view to specify the format the chart data should be exported in.

The location that excel templates must be saved to is specified in the System Configuration.

...

FieldDescription
Show LegendWhen a series is used, if this is turned on then a box listing all lines shown, along with the corresponding values, is displayed on the graph.
Show Values on ChartsHELPDEVTODO: what does this do? Currently, nothing (for 3D Barcharts)
Show Brush on ChartsHELPDEVTODO: what does this do? Currently, nothing (for 3D Barcharts)
Colour MapSelect or add a colour map
Horizontal Axis
Horizontal Axis TitleThe label given to the horizontal axis.
Label AngleThe orientation of the values displayed along the horizontal axis. Select a value from the drop down menu.
Show Horizontal GridlinesWhether to show horizontal grid lines on the view
Vertical Axis
Vertical Axis TitleThe label given to the vertical axis.
Minimum ValueMinimum value along the vertical axis to be displayed. This value will be lowest point on the vertical axis if any value in the data plotted falls below this value. Otherwise, the graph will be automatically sized as normal.
Maximum ValueMaximum value along the vertical axis to be displayed. This value will be the highest point on the vertical axis if any value in the data plotted falls above this value. Otherwise, the graph will be automatically sized as normal.
Fixed Scale

HELPDEVTODO: not currently on form

If fixed scale is turned on, the the maximum value and minimum value defined will always be used as the highest and lowest points on the vertical axis, regardless of the data plotted.

Show Vertical GridlinesWhether to show vertical grid lines on the view

...

You are recommended to avoid dark colours as they make data in the grid very hard to read.

...

HELPDEVTODO - update screen shots and instructions as needed

Configuring Selection View Attributes is illustrated with an example:

You have a selection of items for sale, as below:

Image Removed

You also have a form view that allows you to edit these entries - this pops up when the Edit button is clicked:

Image Removed

You need to assign a tax band to each item. You also have a set of tax bands configured:

Image Removed

To help with this task, you will set up a selection list to populate the tax band and tax rate values for the sales items, from the list of tax bands. To do this, open the configuration form for the form view 008 Edit Sales Item, then open the configuration form for the view attribute TaxBand:

Image Removed

Then open the list of attributes for the view that gives the list of tax bands:

Image Removed

From the list of attributes that pop up, drag the attribute BandDescription into the Selection View Attribute field, and tick the Show the dropdown button flag.

Image Removed

Populating further attributes from the same selection view

Repeat the same process for the view attribute TaxRate, dragging the attribute BandRate from the view of tax bands into the Selection View Attribute field. This time, do not tick the Show the dropdown button flag.

The form view will now appear as:

Image Removed

If you press the button next to the TaxBand field the list of tax bands will appear - you can select a row from this list by double-clicking it. This will populate the TaxBand and TaxRate fields for the sales item with the selected tax band details:

Image Removed

Controlling drop-down lists with other form values

You can use values that users have already entered into a form to control the values that appear in a drop down list. This is done by using the internal variable _form. Add a background filter on the view used in the selection view attribute, and include a clause which uses the value _form.formAttributeName to match values in the selection view with the value entered by the user in the attribute formAttributeName.

Model Ref: 008

Form Icons

...

Form Icons


The form provides the standard form icons.

...