Say you need to show a list customers either living in the US or having a phone no. starting with +1
Inspired by Luc's article at https://dynamicsuser.net/nav/b/vanvugt/posts/filtergroup-1
I decided to try using the -1 filtergroup. I was very easy setting the filters, and marking the records and show them in the list.
However; that did't quite solve my problem. If the user opens the Customer Card and changes the country code or phone no. it needs to disappear from the list. As I'm using marks I need some way to trigger a reload of the marked records, but there doesn't seem to be any trigger to use.
I then came to think of the old way of showing a temporary record in a form, before the SourceTableTemporary property was introduced. You might recall that method was used in the Navigate form, by adding code in the OnFindRecord() and OnNextRecord() triggers.
I then simply copied this old style code into my NAV2016, and now it works like a charm
My only concern is that I might have overlooked something, and that this approach doesn't work in all scenarios. The performance isn't as good as using marks, but in my case the performance is not an issue. Do you see any other issues with this solution?