web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

NAV2016 Do not insert record while type is not selected

(0) ShareShare
ReportReport
Posted on by

Hello everyone,

I'm having a little trouble. I have a page and subpage in the picture below:

59ac8353361af45715f3a83c10c2a4ea.png

Problem is that i would like firstly to select "invoice type" which has 3 values: " ", "one", "two".

And only after that, programming code would gather needed serial number and paste it in "serial no." field.

Is it possible or you can offer some other alternates?

What i have tried:

firstly choose invoice type (ofcourse it creates empty record) and then select serial no by hand, which causes message "do you want to rename it?" This is bad.

secondly I tried use only 2 values of invoice type, but by that whenever i click on expand window of invoice types, default serial no fills in.

Now i have set Serial no as a "NotBlank - Yes", which now on new entry after expanding invoice type, gives error "serial no. must be filled in. Enter a value", but after selecting invoice type i can manualy select serial no from assist button, which isnt fun to have.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Mohana Yadav Profile Picture
    61,019 Super User 2025 Season 2 on at

    why cant you have Invoice type also part of Primary key and place it before serial no. and set delayedInsert property of page to yes.

  • Suggested answer
    Community Member Profile Picture
    on at

    Totaly forgot about Primary keys.. Thank you Mohana!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans