Save Filter
HsinChuMark
Member Posts: 14
Dear All
On monthly/weekly basis, users have to submit report on various topics. While all the needed data is in NAV, they have to set often complex filter criteria, or export data to Excel and use pivot tables (or worse, they ask me to create reports...).
Now, is there a possibility to save a filter setting? How would I have to code it? Has anybody encountered similar requirements?
Would it be a good idea to create a table (Keys: UserID, TableView, Description) and save all filter criteria as text? Could I save it to the ZUP file?
Thanks is advance for your replies.
M.
On monthly/weekly basis, users have to submit report on various topics. While all the needed data is in NAV, they have to set often complex filter criteria, or export data to Excel and use pivot tables (or worse, they ask me to create reports...).
Now, is there a possibility to save a filter setting? How would I have to code it? Has anybody encountered similar requirements?
Would it be a good idea to create a table (Keys: UserID, TableView, Description) and save all filter criteria as text? Could I save it to the ZUP file?
Thanks is advance for your replies.
M.
0
Comments
-
Two easy ways I can Think of.
1) If the report always & only uses a complex list of filters. You could change the DataItemTableView & set many of the filters in stone all except ones that need monthly/weekly adjusting (perhaps a date) for example.
2) if the report is used for other things too you may not want to hard code some filters. In that case you could do as above and save the report with a new name & number perhaps calling it Monthly "Some Report"
3)using the Aged Account Receivable report as an example. You can create a request form that has check boxes and a date field "say you call it" Apply monthly filters or Apply weekly filters. With code set those filters based on which check box is used.0 -
Dear Harry,
thanks for your reply. Indeed, hard coding filters does not do the trick. And I created Request form criteria, but this is a lot of work, especially when it comes to testing.
So I wonder if there is a way to 'personalize' a filter, or to store a set of filters for different purposes in a central table and fetch criteria from there when calling the report.
Cheers
Mark0 -
Example of putting filter on No. (first field) '000', and it should not be difficult to create table and code behind to fill at any change on Request Form(close) or PreDataItem.
Variables: Name DataType Fld FieldRef rcrd RecordRef
rcrd.OPEN(27) ; Fld := rcrd.FIELD(1) ; SETVIEW('SORTING('+Fld.CAPTION+') WHERE('+Fld.CAPTION+'=FILTER(000))') ;0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions