dbTalk Databases Forums  

Help on result of execute_query

comp.databases.oracle.tools comp.databases.oracle.tools


Discuss Help on result of execute_query in the comp.databases.oracle.tools forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
nick048
 
Posts: n/a

Default Help on result of execute_query - 03-14-2007 , 12:33 AM






Hi to all,

In a Form I have placed a button. in the trigger WHEN_BUTTON_PRESSED I
have a code that:

1) create a WHERE string (LC$Whr) with some filter Items, initialized
in the Header block;
2) after use this statement:
Set_Block_Property( 'MYBLOCK', DEFAULT_WHERE, LC$Whr ) ;
Go_Block('MYBLOCK');
Execute_Query ;

It is possible to control if the query return a valid search ?
In other words I need this:
If the Select in the Execute_query has found record(s) then display
the Canvas with the Data Block found, else display an Alert message.

I hope yes, but I don't know as.

Thank You and Best Regards.
Gaetano


Reply With Quote
  #2  
Old   
DA Morgan
 
Posts: n/a

Default Re: Help on result of execute_query - 03-14-2007 , 10:55 AM






nick048 wrote:
Quote:
Hi to all,

In a Form I have placed a button. in the trigger WHEN_BUTTON_PRESSED I
have a code that:

1) create a WHERE string (LC$Whr) with some filter Items, initialized
in the Header block;
2) after use this statement:
Set_Block_Property( 'MYBLOCK', DEFAULT_WHERE, LC$Whr ) ;
Go_Block('MYBLOCK');
Execute_Query ;

It is possible to control if the query return a valid search ?
In other words I need this:
If the Select in the Execute_query has found record(s) then display
the Canvas with the Data Block found, else display an Alert message.

I hope yes, but I don't know as.

Thank You and Best Regards.
Gaetano
You could run a WHERE ... EXISTS to see if there is anything that
corresponds and then either run the real query or pop up the alert.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.