Microsoft Dynamics AX 2012:Example of Cascade,Restricted and Cascade + Restricted (Delete action property for a table relation)

Hi, Hope you guys are fine!.

Use of Cascade, Restricted and Cascade +Restricted (Delete action property for a table)

image018

 

Example of Cascade

Suppose we have two tables  (Customer & Order) and the relation is of One-To-Many i.e. Customer can have many orders

So on a parent table i.e.(Customer) if I set a delete action property to “CASCADE” for Order table. Then If I go and delete the record from a Customer table. It will also delete all the related records in Order table automatically

Example of Restricted

Suppose we have two tables  (Customer & Order) and the relation is of One-To-Many i.e Customer can have many orders

So on a parent table i.e.(Customer) if I set a delete action property to “RESTRICTED” for Order table. Then If I go and delete the record from a Customer table. It will first check the record in the child table and if exist that warning prompt saying that first we need to delete a record from child table.

Example of Cascade + Restricted

Suppose we have three tables  (Person ,Customer & Order) Now Person is a parent of Customer table, and Customer is a parent of Order table having (One-To-Many) relations

If I set a Delete action property on Person table to “CASCADE” for customer table  and If I set a  Delete Action property on a CUSTOMER table for Order table to “CASCADE +RESTRICTED”.

So if I delete a record from Customer table then It will first check the record in the child table(order table) and if exist that warning prompt saying that first we need to delete a record from child table.

But if I delete a record from Person table it will automatically delete a record in Customer table and all records related to customer table in Order table would also be deleted.

Advertisements

7 responses to “Microsoft Dynamics AX 2012:Example of Cascade,Restricted and Cascade + Restricted (Delete action property for a table relation)

  1. HI Saeed,

    This is Hima Bindu,

    if you know can you please clarify one of my doubt,

    actually i have one scenario, in this in AX we have 2 different Companies say Example “DAT” And One More “CEU” if i select DAT Then The Total Labels need to show the English language when i will go for the CEU then need to change the language Arabic is it possible like this scenario in ax 2012 can you please clarify this.

  2. hi please post some screenshots of restricted delet action. Because through this definition i am not able to get right thing
    .

  3. Hi Saeed,

    The Delete actions are only we can set for one – to – many and one – to – one relations???.. We can’t do it for Many – to – Many??

    Thanks in Advance,
    Malleswaran

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s