Propagating MARKEDONLY filter from List to Card

rocatis
Member Posts: 163
Open the Customer List and set a filter. When you double click on a record, the Customer Card is shown, retaining the filters you set on the List.
Except for the MARKEDONLY filter, it seems #-o
I'm working on a solution where I use MARK and MARKEDONLY extensively to do cross-field filtering.
Has anybody found a way to work around this problem/error/shortcoming?
Except for the MARKEDONLY filter, it seems #-o
I'm working on a solution where I use MARK and MARKEDONLY extensively to do cross-field filtering.
Has anybody found a way to work around this problem/error/shortcoming?
Brian Rocatis
Senior NAV Developer
Elbek & Vejrup
Senior NAV Developer
Elbek & Vejrup
0
Comments
-
I dont really understand your problem to be frank.
What are you exactly trying to achieve? (Maybe share some code)?
Regards, WisaAustrian NAV/BC Dev0 -
Customer.FINDFIRST; Customer.SETRECFILTER; PAGE.RUNMODAL(0,Customer);
If you this code, you're presented with a list containing 1 Customer. Click View to open the Customer Card. Using the buttons Previous and Next (Ctrl+PgUp and Ctrl+PgDn) will not change the Customer because the filter (SETRECFILTER) was inherited from the Customer List.Customer.FINDFIRST; Customer.MARK(TRUE); Customer.MARKEDONLY(TRUE); PAGE.RUNMODAL(0,Customer);
If you this code, you're presented with a list containing 1 Customer. Click View to open the Customer Card. Using the buttons Previous and Next (Ctrl+PgUp and Ctrl+PgDn) changes the Customer because the filter (MARKEDONLY) was not inherited from the Customer List.
To me, this is an error, but I'm going to hold my breath until it gets fixed. The question is if anybody has figured out a workaround to obtain the correct functionality.Brian Rocatis
Senior NAV Developer
Elbek & Vejrup0 -
You can probably do some fancy stuff with temp tables if the quantity of data is manageable.
You'll need an action to overwrite the doubleclick event: this button should create a temptable based on the filters and then run the card page (on the temp table, of course).
Or (based upon your nav version) take a look at the "selectionfiltermanagement" codeunit (no. 46 in nav 2016)0 -
How would you go about creating an action to overlay the doubleclick event? I don't think you can do that.
Temp tables are going to be quite messy, as the user can edit the records.
Codeunit 46 is intriguing and somewhat clever, but doesn't stand the test of really complex filters (it eithers goes into an infinite loop or overflows). When faced with the alternatives it might be the best choice, though.
Brian Rocatis
Senior NAV Developer
Elbek & Vejrup0 -
You're right, it's all about the amount of data you have to manage: CU 46 has limitations (possible overflow being the most evident...well, i suggest you to try it anyway, i don't really remember if there is an intrinsic maxlen for "limitless texts").
About temp tables...well, i just didn't think about you had to modify the table, whops
Btw, you can overwrite the doubleclick by creating an action with "Return" as shortcutkey. It also overwrites the keystroke.
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 322 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions