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

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How to show all warning messages related to mandatary fields in Runbase validate

(0) ShareShare
ReportReport
Posted on by 2,426

Good Morning,

In quality order validate.

i have added 2 new fields to Validate form

and when i click ok .

if 2 fields are not filled i want to show both fields are not filled in one infolog message.

But i am getting one Warning.

How can i show multiple warning messages at a time at the time of validating.

i have written in validate

if(!field1)

{

ret = checkfailed("Field 1 is not filled");

}

if(!field2)

{

ret = checkfailed("Field 2 is not filled");

}

how can i achieve this.

Please provide some light on this

*This post is locked for comments

I have the same question (0)
  • AX 2012 r3 Profile Picture
    2,426 on at
    RE: How to show all warning messages related to mandatary fields in Runbase validate

    Experts please provide any help

  • Verified answer
    André Arnaud de Calavon Profile Picture
    299,395 Super User 2025 Season 2 on at
    RE: How to show all warning messages related to mandatary fields in Runbase validate

    HI,

    You have to implement coding like:

    boolean errorFound;
    
    if (!field1)
    {
        error("Field 1 is not filled");
        errorFound = true;
    }
    if (!field2)
    {
        error("Field 2 is not filled");
        errorFound = true;
    }
    
    if (errorFound)
    {
        ret = checkfailed("Update aborted");
    }
    


  • AX 2012 r3 Profile Picture
    2,426 on at
    RE: How to show all warning messages related to mandatary fields in Runbase validate

    Good Morning Andre,

    Hope you are fine.

    Working like charm.

    Great help.

    Thank you very much Andre.

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

Responsible AI policies

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

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

#2
NNaumenko Profile Picture

NNaumenko 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans