EXECUTE_QUERY on MASTER-DETAIL form queries wrong block

Luceo Astrum picture Luceo Astrum · Apr 26, 2012 · Viewed 8.5k times · Source

I'm using Oracle Form Designer with a Master-Detail relationship, I have a WHEN-NEW-FORM-INSTANCE trigger which runs 'EXECUTE_QUERY;' but it is returning records from the Detail block rather than the master block. Can anyone tell me how to return records from the master block?

I have no idea what the block name is. I've tried the data block name and the title above the block and both say they are undefined.

Thanks.

Answer

GriffeyDog picture GriffeyDog · Apr 26, 2012

Precede the execute_query call with a go_block('MASTER_BLOCK_NAME') call.