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

Announcements

No record found.

News and Announcements icon
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,172 Super User 2026 Season 1 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

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans