Mandatory fields in NAV

shyamraoo
Member Posts: 38
Hi,
I have kept FieldA as mandatory in Customer Card, for that i have written code in onqueryclose, onnext and ondelete triggers.
so when you create new customer you will not able to close the page, move to next record without updating FieldA but you can able to delete the record. so this works great.
Here are the issues follows.
1. In NAV 2016, when you create new customer, New lookup button(OK & New) was added in bottom of the screen. when you click this button new record created and prev record gets saved without calling onqueryclose page trigger. so where do i have to write code to validate OK & New button.
2. In NAV 2009, When you open customer list from customer card and then selecting other Customer record. the code is above triggers not gets executed. i tried OnDeactive and OnActive triggers also but no use.
Please advice.
Shyam
I have kept FieldA as mandatory in Customer Card, for that i have written code in onqueryclose, onnext and ondelete triggers.
so when you create new customer you will not able to close the page, move to next record without updating FieldA but you can able to delete the record. so this works great.
Here are the issues follows.
1. In NAV 2016, when you create new customer, New lookup button(OK & New) was added in bottom of the screen. when you click this button new record created and prev record gets saved without calling onqueryclose page trigger. so where do i have to write code to validate OK & New button.
2. In NAV 2009, When you open customer list from customer card and then selecting other Customer record. the code is above triggers not gets executed. i tried OnDeactive and OnActive triggers also but no use.
Please advice.
Shyam
Regards,
N.Shyam Kumar
N.Shyam Kumar
0
Answers
-
instead of this you can block the customer while creating and check whether all the mandatory fields are filled while removing blocking0
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