Execute query in control block?

I have a non database block which is the control block. In this block i have a button for query/ enter query. My other blocks are all based on a database table. So when i run the form and press the exec query button, on the control block, i want to be able to select something from an lov, or a drop down or even a text item which are located on any of the other blocks. and then hit the exec query button again to query the specific information.
But its not working. i can't seem to get the exec query button to work in the control block and i tried placing it on one of the blocks but i can only select from that block to query on and not any of the other blocks.
how can i get the exec query button to work on any of the other blocks depending on what i want to query up?

You will have to build a default where clause in the pre query trigger of the base table block(s)
example shown below.
declare
wh_clause varchar2(1500);
begin
if :qry_blk.item1 is not null then
     wh_clause := 'block.item1 like '''||:qry_blk.item1||'%'||'''';
end if;
set_block_property('block', DEFAULT_WHERE, wh_clause);
end;
then in your button, you will say
go_block('block');
execute_query;          
I have a non database block which is the control block. In this block i have a button for query/ enter query. My other blocks are all based on a database table. So when i run the form and press the exec query button, on the control block, i want to be able to select something from an lov, or a drop down or even a text item which are located on any of the other blocks. and then hit the exec query button again to query the specific information.
But its not working. i can't seem to get the exec query button to work in the control block and i tried placing it on one of the blocks but i can only select from that block to query on and not any of the other blocks.
how can i get the exec query button to work on any of the other blocks depending on what i want to query up?

Similar Messages

Maybe you are looking for

  • Can't get songs to appear in itunes from ext hard drive!

    I moved the contents of itunes to an external hard drive that is connected to the computer that I have always used itunes on. Now when I open itunes there are no songs in itunes. I have no idea how to fix this. Also, when I plug in my ipod an error m

  • Network mac mini to macbook air

    HOW DO YOU NETWORK MAC MINI WITH MACBOOK AIR

  • I keep getting error messages using Mail

    error: the message could not be appended to the outbox the message could not be moved to the mailbox trash Any ideas?

  • Any Suggestions for CGI Script for Web Slide Slow?

    Do you have any suggestions for creating a slideshow for my web site, 6 same-size jpgs that rotate automatically? I think I prefer a cgi script. However, I've tried two that don't work on Firefox or Safari. One developer tells me that he can see the

  • CS4 Crashes On Startup [Mac OS X Leopard]

    I am on a macbook using Mac OS X Leopard. I have used Dreamweaver successfully on this computer before. Here is a list of everything I have tried: Verify Disk via Disk Utility Repair Disk via Disk Utility Verify Disk Permissions via Disk Utility Repa