web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Table inheritance process

(0) ShareShare
ReportReport
Posted on by 30

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

I have the same question (0)
  • @rp@n Profile Picture
    30 on at

    Dear All,

    Can you please any one validate.

    Thanks!

    Arpan

  • Verified answer
    Chaitanya Golla Profile Picture
    17,225 on at

    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
    30 on at

    Thanks Sukrut

    Nice one

  • @rp@n Profile Picture
    30 on at

    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

  • Chaitanya Golla Profile Picture
    17,225 on at

    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
    30 on at

    Hi Chaitanya,

    I am just asking is't possible?

    Please give me more shed on this.

    Thanks!

    Arpan

  • Verified answer
    Chaitanya Golla Profile Picture
    17,225 on at

    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
    30 on at

    Thanks Sukrut and Chaitanya

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans