Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Issue while Product Creation

(0) ShareShare
ReportReport
Posted on by 46,610 User Group Leader

Following is about standard  code of Dynamics AX: 

caught eye on something fishy which is not making sense to me. in validatewrite method of InventTable I can see following code.

if (this.isFormDataSource()
        && this.dataSource().formRun().args().name() == formStr(EcoResProductDetailsExtended))
    {
        _skipProductVariantUnitConversionValidation = true;
    }

Why validation is being skipped, if I create product using form named as EcoResProductDetailsExtended whereas  validation is in place if product is created from any other form. please note that a product can be created from different forms.

if its a business validation, it should happen around from all entry points.

I would appreciate, if someone can have their say, on this. to me it does not makes sense.

*This post is locked for comments

  • Sohaib Cheema Profile Picture
    Sohaib Cheema 46,610 User Group Leader on at
    RE: Issue while Product Creation

    yes, correct.

  • Guy Terry Profile Picture
    Guy Terry 28,626 Super User 2024 Season 2 on at
    RE: Issue while Product Creation

    Hi Sohaib,

    If I go to the Form EcoResProductDetailsExtended and hit New -> Product, the EcoResProductCreate Form opens. Does this code skip the validation in this case?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans