This code is there to be able to move backward and forward when you access to a card from a list.
For example, if you are on the Customer list (form 22), and push Customer --> Card, if this code wasn't there, you couldn't move to the next customer card, because the Card form will be filtered only for that customer.
This code is there to be able to move backward and forward when you access to a card from a list.
For example, if you are on the Customer list (form 22), and push Customer --> Card, if this code wasn't there, you couldn't move to the next customer card, because the Card form will be filtered only for that customer.
When you open a Card from the List, the list doesn't set any filter.
The card form doesn't inherit filter from List form, it is true the opposite.
Just try to comment the code and run the form.
This code is there to be able to move backward and forward when you access to a card from a list.
For example, if you are on the Customer list (form 22), and push Customer --> Card, if this code wasn't there, you couldn't move to the next customer card, because the Card form will be filtered only for that customer.
When you open a Card from the List, the list doesn't set any filter.
The card form doesn't inherit filter from List form, it is true the opposite.
Just try to comment the code and run the form.
If you comment the code, when you reach the card from the list, you won't be able to move to another cards.
This code is used to prevent "problems" when you set filter for the PK, you close the form and someone delete the card. In this case without this code you will be not able to open the form (there will be error that you cannot use manual nos. if they are disabled on the no. series) etc.
Oh, so *this* was the reason I always needed to tell users to delete fin.zup in NAV3.6 because of filters stuck on deleted records - this one line was missing
Do It Yourself is they key. Standard code might work - your code surely works.
Comments
I think is to avoid that user insert new record without seeing them.
For example, if you are on the Customer list (form 22), and push Customer --> Card, if this code wasn't there, you couldn't move to the next customer card, because the Card form will be filtered only for that customer.
The card form doesn't inherit filter from List form, it is true the opposite.
Just try to comment the code and run the form.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
If you comment the code, when you reach the card from the list, you won't be able to move to another cards.
:oops:
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Oh, so *this* was the reason I always needed to tell users to delete fin.zup in NAV3.6 because of filters stuck on deleted records - this one line was missing
Do It Yourself is they key. Standard code might work - your code surely works.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.