Versions Compared
Version | Old Version 13 | New Version Current |
---|---|---|
Changes made by | ||
Saved on |
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
- Create a filter using an expression
- Set a default filter on a table view
Create a filter using an expression
- Open the screen
Debt levels by payment means 2
(you created this in exercise 18 Create further Views)
The chart is cluttered. You will now add a filter to this view to limit the results to the last 40 days:
- In the chart, press
.Insert excerpt _filter _filter nopanel true - Press
.Insert excerpt _filter _filter name add nopanel true - Configure the filter with the following details:
- Name:
Last 40 days
- Conditions:
- The condition dialogue starts with Where ALL the following are true - leave this as it is
- Select
Calculation Date
- Press on equals - from the drop down list that appears, select greater than.
Enter this formula, which will take the current date, and then go back 40 days
Code Block dateAdd(now(), _DAY_OF_MONTH, -40)
Press the ABC button - this will now say fx
- This switches the input to handle expressions rather than a string.
- When you have completed all these details press Apply and Save.
- Name:
- Your grid should now show only results from the last 40 days.
Set default filter on a view
Since the view Debt levels by payment means 2
is too cluttered to be useful with all results showing, you decide to make the filter Last 40 days
, that you created in the previous exercise, the default filter for this view:
- Right-click on the chart for
Debt levels by payment means 2
and press
configuration.Insert excerpt _view_show _view_show nopanel true - Set Default Filter to
Last 40 days
- Press
.Insert excerpt _finish _finish nopanel true
Go into
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Using the same filter on other views
You can use the filter you created in the previous exercise on any other view defined on the underlying table (Overall Debt Levels
), but first you must associate the filter with the view:
Debt levels by payment means
Last 40 days
into the list of filters for this view.Last 40 days.
.