If you go to the layout, select the detail you want to refer to, right click and select "Set as Autotext Reference". Go back to the detail you want to refer from and use Autotext within a normal text element, selecting the "Reference for {Layout}" / Layout Number option within the Autotext pop-up. If your detail is moved or the layout renumbered the text will adjust accordingly.
Requires manual setup but is automatic from there on in, so semi-smart.
HTH