Skip to main content

Notifications

Announcements

No record found.

Supply chain | Supply Chain Management, Commerce
Unanswered

EcoResProductCreate Form, FormReferenceGroupControl default value

Posted on by 4
Hi,
 
If someone could help my with this, it would be really appreciated.
 
I am trying to set default values on StorageDimensionGroup, TrackingDimensionGroup and WHSReservationHierarchy.
 
I am able to set default values, the problem is it gives me that error:
/he settings for the reservation hierarchy do not match the settings for the dimension groups that are assigned to the item. Make sure that the inventory dimensions for the reservation hierarchy are physically tracked for the dimension groups./
and I can't submit the form.
I have to reselect the same values using the lookup to get rid of that error.
If I do everything manually without setting default values, I never have that error.

I use the value() method to set the default value. I tried in init(), run() or on modified() of another field, always the same error message.
        select RecId from ecoResTrackingDimensionGroup
            where ecoResTrackingDimensionGroup.Name == /None/;
        if(ecoResTrackingDimensionGroup)
        {
            TrackingDimensionGroup.value(ecoResTrackingDimensionGroup.RecId);
        }
I also tried calling the modified() method of TrackingDimensionGroup after setting the default value, but when I debug I can see that this.value is equal to 0, so the field is blank after calling modified()

I someone has any idea, it would be great. Thanks!
I'm not sure if the categorie I selected is the right one.. Since it's customization I selected that one.
  • RudyZhang Profile Picture
    RudyZhang Microsoft Employee on at
    EcoResProductCreate Form, FormReferenceGroupControl default value
    Hi,
     
    Based on the information you have given, our team guesses that you are using Dynamics 365 Supply Chain.
    we recommend you to post this question in Dynamics 365 Supply Chain  forum, where your problem will be noticed by many experts in the field and you will get a more effective solution.
    The link to the forum is as follows
    Microsoft Supply Chain Center Forum (dynamics.com)
     
     
     
    Best Regards,
    Rudy Zhang

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 Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans