I need to create master/detail of these tables:

It has a master table "SIGEV_CARGA" and its detail "SIGEV_CARGA_DET", and at the same time the detail "SIGEV_CARGA_DET" is master of "SIGEV_BOLETA_PRODUCTOR" and the last one has a detail table "SIGEV_BOLETA_PRODUCTOR_DET"..
Is it possible to configure that with the property mastersource of TUniQuery?
How can I capture the ID_SIGEV_BOLETA_PRODUCTOR to save in its master SIGEV_CARGA_DET?