codinig for Execute_query button [message #284147] |
Thu, 29 November 2007 00:52 |
hasnat_kh
Messages: 11 Registered: September 2007
|
Junior Member |
|
|
hi friends,
i have designed one form based on two tables and they have parent and child relation with each other. i have designed two buttons there one is (Query BTN) other is (Enter_query) button. query button is working but enter_query button is not working i have written this coding for this button.
ENTER_QUERY;
--with the
WHEN-BUTTON-PRESSED trigger on button.
but its not working now i dnt know what coding i shuld write in this button, so when i open the form and i want to go into execute query mode. how i can go.
Regards
Hasnat
|
|
|
|
Re: codinig for Execute_query button [message #284194 is a reply to message #284147] |
Thu, 29 November 2007 02:48 |
hasnat_kh
Messages: 11 Registered: September 2007
|
Junior Member |
|
|
actually i want to hide that tollbar and i want to give user buttons so, i am creating all these buttons.
i dont knw what you mean by block. as i told u. that i have one form only and on that form i have designed two form one is in the upper portion of that main form and second is at the lower portion of main form. both r joined with each other thrugh primary and forign key.
i just created one simple button and wrote
QUERY_EXECUTE;
there is no error message but its not giving me any out put when i run the form.
thanks for your reply ,
regards
|
|
|
Re: codinig for Execute_query button [message #284205 is a reply to message #284194] |
Thu, 29 November 2007 03:01 |
|
Littlefoot
Messages: 21823 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
No records retrieved? It means
a) there are no records in a table,
b) there are records there, but none of them satisfied query condition,
c) you did something wrong.
So, there are two blocks: master and detail. You've created two buttons. In which block are they? Master or detail, or none of them (i.e. another, control block)?
You may attach a sample form based on Scott's schema so that we could actually see and try what you've done.
Just being curious: what's the purpose in "removing" a default toolbar and replacing it with the one you are about to create? Why do you think that your code will work better than the one Oracle provides?
By the way, QUERY_EXECUTE doesn't exist in Forms (unless it is a custom procedure. If so, please, post the code you've put into it).
|
|
|
|
|
|
|