Reputation: 67
I'm using Oracle Forms and I'm trying to auto-query data when a new form opens (that is, automatically generating SELECT * from TABLE
data without clicking on "Execute Query" button from DEFAULT&SMARTBAR menu).
How can I automatically execute query when the new form opens without clicking on the Execute Query button?
Upvotes: 0
Views: 7901
Reputation: 132570
You can create a WHEN-NEW-FORM-INSTANCE trigger with code like:
go_block('BLOCK1');
do_key('execute_query');
Upvotes: 2