For those who are wondering, these are the exact steps that you need to perform to set up a filter for application log records with the new approach:
- Make sure that you have the “Expression tools plugin” revision 115202 or higher added to your component.
- Use the process “N_Application log - Write log with dynamic record reference” as mentioned above to write your logs.
- Make sure that you consume the concept N_ApplicationLog and create a virtual page for it:
- Add a new function to the virtual page called “is linked to record()” of the type “boolean”:
- Click on the plugin button to apply the “Expression tools” plugin to your new function:
- Chose the option “record links to me” from the available options and click OK. Do not worry about the red colors, it should work fine.
- Click OK again:
- Make sure you consume the feature “N_Record reference v2” for the “N_ApplicationLog” concept:
- Right click on your new function and then on “properties”:
- Go to the plugin configuration tab and fill in the fields with the consumed features. Then click OK:
- Your new function is now ready and can be used anywhere to filter application logs. For example, within other expressions for processes or as a filter for grids of application logs, for example: