Mandatory fields in NAV

shyamraooshyamraoo 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
Regards,

N.Shyam Kumar

Answers

Sign In or Register to comment.