Skip to main content
Post a question

Notifications

Community site session details
Microsoft Dynamics AX (Archived)

Table inheritance process

Like (0) ShareShare
ReportReport
Posted on 27 Nov 2017 06:00:50 by 6

Table: TableA

First set property Table Inheritance = YES

Then create a Int64 type field : InstanceRelationType setThen set property InstanceRelationType = InstanceRelationType

Then added new fields : StudentID, Name

Table A properties:

4152.b1.JPG

Table : Table A

0257.b2.JPG

Then create records

b3.JPG

*** Here InstanceRelationType hold the TableID of Table A = 103696

Table: Table B

Then set properties:

b4.JPG

Note : I noticed that if i set Abstract = YES then its not allow me to create a New Record.

So, i put Abstract = No

Then add new fields in Table B

b5.JPG

It will automatically create relation with Table A with RecID.

Then create a new record in Table B

b6.JPG

Then I browse Table A

b8.JPG

It’s showing last 2 records from Table B which I am creating in Table B.

103697 is table id of Table B. 

**** Kindly Validate above process are correct ?

I have queries :

1. What is tthe use of Table A records ?

2. Why Table A records are not showing in Table B ? Because i extend Table A in to Table B.

3. What is the advantage of here Table Inheritance ?

Please give me more shed on this.

Thanks!

Arpan

*This post is locked for comments

  • @rp@n Profile Picture
    6 on 03 Dec 2017 at 22:22:24
    RE: Table inheritance process

    Thanks Sukrut and Chaitanya

  • Verified answer
    Chaitanya Golla Profile Picture
    17,225 on 03 Dec 2017 at 16:05:12
    RE: Table inheritance process

    Hi,

    I don't think its possible. On the base table after setting its inheritance properties, tableType property is greyed out(pointed to Regular) and on the derived table on setting the property TableType to TempBD property Extends is greyed out and on setting the property SupportInheritance to Yes, a warning is popping out stating "Can't set the Support Inheritance to yes for temporary table).

  • @rp@n Profile Picture
    6 on 03 Dec 2017 at 15:42:54
    RE: Table inheritance process

    Hi Chaitanya,

    I am just asking is't possible?

    Please give me more shed on this.

    Thanks!

    Arpan

  • Chaitanya Golla Profile Picture
    17,225 on 03 Dec 2017 at 15:31:39
    RE: Table inheritance process

    Hi,

    Could you provide more details about you business requirement and the reason being choosing a temporary table("TempDB") instead of regular table.

  • @rp@n Profile Picture
    6 on 03 Dec 2017 at 15:24:35
    RE: Table inheritance process

    Hi Sukrut,

    I did practically Table inheritance process and well understood the process.

    As I know table type  "InMemory" we can't use in Table inheritance.

    Shall I use Table type "TempDB" in Table inheritance?

    Means with combination like Table type "TempDB" is Base Table and "Regular Table" is Derived Table OR

    Opposite.

    Please give me more shed on this.

    Thanks!

    Arpan

  • @rp@n Profile Picture
    6 on 27 Nov 2017 at 16:34:00
    RE: Table inheritance process

    Thanks Sukrut

    Nice one

  • Verified answer
    Chaitanya Golla Profile Picture
    17,225 on 27 Nov 2017 at 12:12:14
    RE: Table inheritance process

    Hi,

    You need to create record in TableA and TableB after completing your table inheritence setup with base and derived table. In your case TableA, acts as base table to your derived tables. Inorder to have advantage from table inheritence, please check below link which explains when to use table inheritance:

    (When to Use Table Inheritance [AX 2012])

    msdn.microsoft.com/.../gg843731.aspx

  • @rp@n Profile Picture
    6 on 27 Nov 2017 at 11:55:20
    RE: Table inheritance process

    Dear All,

    Can you please any one validate.

    Thanks!

    Arpan

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,331 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,251 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans
Loading started
Loading started