Hi all,
I have a requirement from a user where if they delete a record in a table, the appropriate records are deleted in two related tables. Per the structure in this simple diagram, if the user deleted a record in Table A, the appropriate record(s) are deleted in Table B and Table C.
I am familiar with the Parental relationship type, but my understanding is this only applies to one 'layer', for example, if a Parental relationship was set between Table A and Table B, and then a Parental was set from Table B to Table C, the user would have to delete the record in Table B first, which would delete the corresponding record in table C, then they would delete the record in Table A.
I thought to use the Custom / Cascade All relationship behaviour (as in below screenshot) to achieve the requirement.
Question 1: Would this fulfil the requirement (if a record in Table A is deleted, the corresponding records are deleted in Tables B and C).
Question 2: If the answer to Q1 is yes, presumably I just need to configure this relationship behaviour between A and B and B and C?
Question 3: If the answer to Q1 is no, what would be the way to achieve this requirement?
Question 4: I have tried setting up a Custom / Cascade All between Table A and Table B. No error message is generated and the save operation seems to complete. However when I open the relationship and expand Advanced Options, the relationship behaviour displays as 'Parental' and not the 'Cascade All' attribute. What am I doing wrong here?
Thank you very much for your help!