Skip to main content

Notifications

Announcements

No record found.

Microsoft Supply Chain Center Forum - Note: thi...
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!

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

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,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans