Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

AX2012 reference field not showing replacement key in grid

Posted on by 40

Hello,

I've added a custom table to InventOnHandItem form, which has a reference field linked to another customer table, and added this as a field group from the custom table into the grid. I've modified InventDimCtrl_Frm_OnHand to do group by for the reference field. However, the reference field isn't showing the replacement key value, just 'unknown' in the grid. If I add the reference field as a separate field, then it is showing the correct Recid and 'View details' goes to the correct record. Does anyone know how I can get the reference group in the grid to show the replacement key value? This table is also added to a statndard grid elsewhere, where the replacement key is being displayed correctly.

Many thanks for any help given.

Mike

*This post is locked for comments

  • Suggested answer
    Martin Dráb Profile Picture
    Martin Dráb 229,963 Most Valuable Professional on at
    RE: AX2012 reference field not showing replacement key in grid

    I'm not sure what you're saying. Do you say that it doesn't work because of a field group, or because of "group by"?

    If it's the latter case, it seems that even the query trying to fetch replacement values is grouped and because replacement values are neither included in "group by" not they have aggregation functions applied, their values are left undefined.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 229,963 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans