I need to pass caller forms master datasource's values

It is Axapta Original table and unfortunately it is a bit complicated.

It is activity table in the CRM module. Its relation with other tables like BusinessRelation,ContactPerson etc. is established with other table that is smmActivityParentLinkTable.

So, I just can not get the master record by a foreign key on the details record.