Ah, I see. Are you running one window from the other? Well, regardless, here is some code to establish the foreign fields, the data link, and open the child query.
I'm assuming that you can get to the stage of having handles to both SDOs in one place. SDO1 is the Customer SDO, SDO2 is the...