As joinChild takes no arguments, you will have to rearrange your datasources to have one child only like in this question: Display Methods - Multiple Form Data Sources. This can be done in AX 2012 by linking C to A directly using the third argument to addLink. You can then use A.joinChild().joinChild()
to reference C.
Or you will have to move your logic to the form where the records can be referenced directly.
Using joinChild
in the modifiedField
method is a sure sign of trouble, as you cannot be sure that a field is modified in a context of a join.