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)

Issue while Product Creation

(0) ShareShare
ReportReport
Posted on by 49,434 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

I have the same question (0)
  • Guy Terry Profile Picture
    28,924 Moderator 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?

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

    yes, correct.

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…

Neeraj Kumar – Community Spotlight

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

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 3

#3
Scott_itD Profile Picture

Scott_itD 2 Community Manager

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans