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)

Validate drop down

(1) ShareShare
ReportReport
Posted on by

On the shortage Consumption Worksheet I have code in place which produces an error when you enter SHOPFLOOR into both From Zone code and From Bin Code. 

48.PNG

However if you were to select SHOPFLOOR from the dropdown (If valid SHOPFLOOR would be shown in the bin contents page)

49.PNG

Then the previous validation is ignored and the fields are populated with SHOPFLOOR and no error message. How can I prevent this? 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Rabin Profile Picture
    2,976 on at

    Hi Lewishhh,

    There are many approaches for this. One approach is to create a boolean that activates when you do Dropdown(on Dropdown then it will be TRUE Dont forget to Update the record). 
    Now you can use this Boolean value in onvalidate trigger(If else).

    Hope it helps. 

  • Verified answer
    Nareshwar Raju Vaneshwar Profile Picture
    5,596 on at

    Hi,

    As per your code, if the value is SHOPFLOOR, then the error message will popup in Shortage Consumption Worksheet OnValidate().  Try moving your error messages to OnModify() trigger and check?

    Hope it helps.

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
TAHER_El_Mehdi Profile Picture

TAHER_El_Mehdi 2

#1
sliderxb Profile Picture

sliderxb 2

#1
broberts Profile Picture

broberts 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans