Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

How "Cardinality" relation is work in table

Posted on by 5,901

Dear All,

Can you please let me know how "Cardinality" relation is work in table.

Please give me an example.

Please give me more shed on this.

Thanks!

Arpan

*This post is locked for comments

  • @rp@n Profile Picture
    @rp@n 5,901 on at
    RE: How "Cardinality" relation is work in table

    Thanks Chaitanya

  • Verified answer
    Chaitanya Golla Profile Picture
    Chaitanya Golla 17,225 on at
    RE: How "Cardinality" relation is work in table

    Hi,

    Yes, as I mentioned earlier it defines the cardinality in-perspective of header table.

  • @rp@n Profile Picture
    @rp@n 5,901 on at
    RE: How "Cardinality" relation is work in table

    Thanks Chaitanya,

    RelatedTableCardinality having 2 options "ExactlyOne" OR "ZeroOne".

    The definition of both are same and just applicable for Header Table instead of Line Table.

    It's depends on Table design.

    Is't correct ?

    Thanks!

    Arpan

  • Verified answer
    Chaitanya Golla Profile Picture
    Chaitanya Golla 17,225 on at
    RE: How "Cardinality" relation is work in table

    Hi,

    Its a part of best practice to always mention RelatedTableCardinality on a relation. Yes, it defines the relation type in-perspective of header table.

  • @rp@n Profile Picture
    @rp@n 5,901 on at
    RE: How "Cardinality" relation is work in table

    Thanks Chaitanya,

    RelatedTableCardinality is mandatory to mentioned ?

    Here RelatedTableCardinality is referred HeaderTable ?

    Please give me more shed on this.

    Thanks!

    Arpan

  • Verified answer
    Chaitanya Golla Profile Picture
    Chaitanya Golla 17,225 on at
    RE: How "Cardinality" relation is work in table

    Hi,

    Yes. Correct.

  • @rp@n Profile Picture
    @rp@n 5,901 on at
    RE: How "Cardinality" relation is work in table

    Thanks Chaitanya,

    If the design of table (Line) is mandatory to have more than 1 records then it should be OneMore OR always 1 record then it should be "ExactlyOne" else (Optional) ZeroMore.

    Thanks!

    Arpan

  • Suggested answer
    Chaitanya Golla Profile Picture
    Chaitanya Golla 17,225 on at
    RE: How "Cardinality" relation is work in table

    Hi,

    No. As per design of SalesTable and SalesLine, we can have header(record) without any lines.

  • @rp@n Profile Picture
    @rp@n 5,901 on at
    RE: How "Cardinality" relation is work in table

    Sorry Chaitanya,

    I wrote wrong ZeroOne intead of ZeroMore.

    It should be OneMore right?

    Please give me more shed on this.

    Thanks!

    Arpan

  • Suggested answer
    Chaitanya Golla Profile Picture
    Chaitanya Golla 17,225 on at
    RE: How "Cardinality" relation is work in table

    .Hi,

    I think you might be checking property RelatedTableCardinality instead of Cardinality.Refer screen shot below.

    SalesTable-_2D00_-Cardinality.png

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

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans