You can reference a dynamic port in a port selector.
A dynamic port can contain one of more generated ports. If the join condition contains dynamic ports, the number of master ports must be the same as the number of detail ports.
For example a dynamic port A has 2 generated ports:
CustomerID
OrderID
Dynamic port B also has 2 generated ports:
CustomerNo
OrderNo
The following join condition is valid:
DynamicPortA = DynamicPortB
The join condition expands to the following expression:
CustomerID = CustomerNo AND OrderID = OrderNo
You can reference a port selector and a dynamic port in a join condition if the port selector contains the same number of ports as the dynamic port.