Table relation being passed from caller form to the target form

Hi all,

We have two tables header and details, we have two forms one for header-detail tables (Form1) and one only for the details table (Form2).

From1 calls Form2, clicked method is not overwritten, no datasource is added to the menu item object.

I have set copy caller query to no on the source form menu item control.

When we run Form2 independently it fetches all the records from the details table, when we call the same form from Form1, we notice an added where condition (header.recid == details.refRecid). The details table has this condition on the table’s relations node, but nowhere mentioned on either of the forms.

How can I stop the unnecessary where clause addition when Form2 is called from From1?

The answer is here