How to access elements inside a RG in Custom Events

I have a repeating group inside which there is a group element A whose value is the current cells’ value. I want to assign the group’s A value to a custom state of another element B outside of the repeating group through custom events.
However, in custom event, when setting the value of custom state of the element B outside the repeating group, desire RG’s group (A) is not appearing.

image

Is there any solution to this?