Xpath contraint in Many to Many

I use two entities A and B which have a many-to-many association. When I display dataview of an A record I also want to show associated B records. Ofcourse I could  use association but hen I dont have selections fields available in the B datagrid for whatif questions. So I would like to use X-path on the B-Grid but I cant get it working. Can I test the B-grid in its  xpath the  reference to the  '[%CurrentObject%]' from the  enclosing A-object?  
1 answers

Yes, this is possible by using the CurrentObject token.

example for a constraint on a data grid which shows entities of type B, which is nested in a data view of entity A: