Here is shown how to make a filter exportable for a grid.
1. Summary
If a custom filter is set for a grid, it must be exported manually.
2. Result
The custom filter created will be exported and will be permanently available.
3. Step by Step Guide
To enable the export of all grid filters, the following entry needs to be added to the base data export definitions: src/data/base-data-definitions.json
{
"BusinessEntity": "Akioma.Swat.System.QueryFilterEntity",
"FileName": "base/queryFilters.xml",
"ExportData": {
"Tables": "*",
"QueryString": "FOR EACH eQueryFilter"
}
}
Run a b1 trim
Exporting ONLY the system filters
If the user desires to export only the system filters, they would need to adjust the “QueryString” parameter
{
"BusinessEntity": "Akioma.Swat.System.QueryFilterEntity",
"FileName": "base/queryFilters.xml",
"ExportData": {
"Tables": "*",
"QueryString": "FOR EACH eQueryFilter WHERE eQueryFilter.RefHdl EQ ''"
}
}
Run a b1 trim
Restrictions
- Every created filter will be exported when using “Export all data” from CI/CD desktop.
- The attribute “default filter” will not be exported.
- When you want to export a filter not only for your user but for every user, you can toggle between
- System: Filter is available for every user
- User: Filter is user-specific
4. Documentation
To find more information, you can check the following documentation.
Back to Use Cases
Back to Home Page