Card Page Auto Closes based upon List Page filter

doddwell
Member Posts: 65
Hello
I have a List Page displaying a set of Filtered Orders. I have set the CardPageID property so that the user can double click an order in the list to open the Order Card Page in edit mode.
If the user then amends the order so that the order would be omitted from the filtered List Page records, the Order Card Page automatically closes.
I don't want the Order Card Page to Auto-close. Is this possible or do I need to remove the CardPageID property?
Many Thanks
I have a List Page displaying a set of Filtered Orders. I have set the CardPageID property so that the user can double click an order in the list to open the Order Card Page in edit mode.
If the user then amends the order so that the order would be omitted from the filtered List Page records, the Order Card Page automatically closes.
I don't want the Order Card Page to Auto-close. Is this possible or do I need to remove the CardPageID property?
Many Thanks
0
Best Answer
-
In the OnPageOpen() trigger of the card page you can clear the filter that was used in your filtered list, e.g. Something like...
SETFILTERGROUP(2); SETRANGE(Status); SETFILTERGROUP(0);
5
Answers
-
In the OnPageOpen() trigger of the card page you can clear the filter that was used in your filtered list, e.g. Something like...
SETFILTERGROUP(2); SETRANGE(Status); SETFILTERGROUP(0);
5 -
Hello Kishorm.
I added SETRANGE(Status) to the OnPageOpen() trigger of the Card Page. When the user updates the Status, the Card Page remains open. The only problem with this is the fact that the Card Page then displays records that I don't want the user to see (when clicking Next/Previous).
Is there a way of caching the filter originally passed from the List Page to the Card Page?
Thanks0 -
Not a good idea - you either keep the original filter (default) and then when you change your record so that it no longer meets the criteria it disappears OR you remove the filter.
Trying to get a list of all the records that previously matched *could* be done by marking all records that match the filter (using MARK) prior to clearing the filter and then setting a filter on markerd records only (MARKEDONLY) but this is not advisable from a performance point of view especially if it possible that you could have a lot of matching records. It would also mean that you might have problems adding new records in the card page.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
- 320 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