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)

Reference Groups

(0) ShareShare
ReportReport
Posted on by 2,476

I would like to know what Reference group is all about. 

I know Reference groups used for populating look ups but we still have different way to pursue it.

What is the specific use of Reference Group which makes it unique from other.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    André Arnaud de Calavon Profile Picture
    299,149 Super User 2025 Season 2 on at
    RE: Reference Groups

    Hi,

    I think you are referring to the Form control ReferenceGroup?

    This control is used to display a value from a referenced table using a foreign key relation. An example is the field Project manager on the Project form. The value displayed on the form is the name of a worker. The database field in the table contains a record id, which is a reference to the worker table.

  • Verified answer
    Ivan (Vanya) Kashperuk Profile Picture
    on at
    RE: Reference Groups

    Also consider reading through the following nice white paper:

    www.microsoft.com/.../details.aspx

  • Mohammad Raziq Ali Profile Picture
    2,476 on at
    RE: Reference Groups

    Thanks andre......

  • Mohammad Raziq Ali Profile Picture
    2,476 on at
    RE: Reference Groups

    Thanks Ivan, It's always pleasure to view your satisfied replies....

  • Verified answer
    Martin Dráb Profile Picture
    236,297 Most Valuable Professional on at
    RE: Reference Groups

    Just for reference, I also tried to explain reference groups on my blog.

  • Mohammad Raziq Ali Profile Picture
    2,476 on at
    RE: Reference Groups

    Hi Martin,

    One Small doubt that has to be clarified and I will demonstrate with an example.

    I created two tables e.g., BaseTable & DerivedTable, the fields in BaseTable(EmpId, Name, DOB) and in Derived Table(TotalHourWorked, TotalAmountCharged).

    EmpId is primary key in BaseTable, in table properties, I assign Replacement Key =  PrimaryIdx (Alternate key = Yes in Index properties of BaseTable).

    In DerivedTable, I created Foreign key (Primary key based) based Relation, It added the BaseTable field with same name as Table Name which of type Int64, till here, It's OK but when I dragged this field in form-> Design->Designs node, It became type of Reference Group (I am not Emphasizing on contents of Form) 

    My questions is, Can't I get this same feature as simple as same above in another way?

    You did this same thing in your post in more simpler way by just selecting ReplacementFieldGroup.

  • Verified answer
    Martin Dráb Profile Picture
    236,297 Most Valuable Professional on at
    RE: Reference Groups

    Sorry, it's not clear to me what your problem is. You described how you created a reference group by dragging a field, which is exactly the same approach as used in my article. Then you talk about selecting ReplacementFieldGroup, but it's not clear what problem you have with doing the same with your newly created reference group.

    Note that I would expect you to have the surrogate key as the primary key and EmplId as the alternate key. Having an alternate key the same as the primary one doesn't make much sense to me.

    (By the way, you should use the worker table in any real implementation, instead of creating a new table with the same purpose.)

  • Mohammad Raziq Ali Profile Picture
    2,476 on at
    RE: Reference Groups

    I did the same thing which you specified in the Note, surrogate key as primary key and EmplId as alternate key, ReferenceGroup Control present in Form & when you add it, you have ReplacementFieldGroup property associated with it, here we can select table field groups( AutoIndentification & manually Created Field Groups).

    So, Instead of creating like this, Is there any alternate method to populate Replacement keys on Foreign key Table?

    hope you got my question

     

  • Verified answer
    Martin Dráb Profile Picture
    236,297 Most Valuable Professional on at
    RE: Reference Groups

    What and why would you like to do differently? What problem do you want to solve by the theoretical alternate method?

  • Mohammad Raziq Ali Profile Picture
    2,476 on at
    RE: Reference Groups

    You demonstrate one Example in your blog on Replacement Groups.

    My Questions is, Is there any alternate method to do the same Example of yours?

    It's a part of my R&D.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#2
Guy Terry Profile Picture

Guy Terry 2 Moderator

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans