SETRANGE("NO.") IN FORM EMPLOYEE CARD

elysaval
Member Posts: 24
HI, DOES SOMEBODY KNOW WHY IN FORM 5200 EMPLOYEE CARD TRIGGER ONAFTERGETRECORD THERE IS THE CODE
SETRANGE("No.");
WITH THIS CODE IF YOU MAKE A FILTER ON THE PRIMARY KEY THE FORM DOESN'T KEEP IT ! :-k
THANKS.
ELISA.
SETRANGE("No.");
WITH THIS CODE IF YOU MAKE A FILTER ON THE PRIMARY KEY THE FORM DOESN'T KEEP IT ! :-k
THANKS.
ELISA.
0
Comments
-
the same code is in all master data card.
I think is to avoid that user insert new record without seeing them.0 -
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.0 -
Alisha wrote: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.
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.0 -
elysaval wrote:HI, DOES SOMEBODY KNOW WHY IN FORM 5200 EMPLOYEE CARD TRIGGER ONAFTERGETRECORD THERE IS THE CODE
SETRANGE("No.");
WITH THIS CODE IF YOU MAKE A FILTER ON THE PRIMARY KEY THE FORM DOESN'T KEEP IT ! :-k
THANKS.
ELISA.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
navisi0ne wrote:Alisha wrote: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.
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.0 -
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.0
-
Kine
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.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