can u give sum example what code wd b written.many thanks
Main Topics
Browse All Topicshi friends
i have a master detail form between Department (master) n Employee(detail). i have 2 data blocks.
im using the default oracle 8i database. user selects a dept no from a LOV and the records corresponding to tht dept no from fetched from employee table and displayed in employee block.
to see the records,i have to first go to "enter query " mode and then "execute-query".
i want tht when the user selects a dept no from the LOV ,the records corresponding to the dept no instantly showen to him without haviing to do extra steps.
i have tried to do it but not with success.
i used a new form instance trigger and enter ENTER_QUERY in it.so now i dont have to go to enter_query at run time.but dont know the triggers for execcute query.
many thanks
sgf
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Here is a piece of code from Pre-Query trigger of my block REKLAM_REKL_OBJ based on table OBJEDNAVKA:
DECLARE
def_where VARCHAR2(4000):= NULL;
BEGIN
/* item from table POZIADAVKA */
IF name_in('REKLAM_REKL_OBJ.L
def_where := get_block_property('REKLAM
def_where := cgfk$lkup_qry.add_and( def_where )||
'(ID IN (Select poziadavka.objednavka_id from poziadavka where poziadavka.TYP_ZIAD_ID='||
set_block_property('REKLAM
END IF;
EXCEPTION
WHEN VALUE_ERROR THEN
MESSAGE('Error');
RAISE FORM_TRIGGER_FAILURE;
END;
Business Accounts
Answer for Membership
by: HenkaPosted on 2004-07-13 at 04:42:36ID: 11537978
I think that you can modify the DEFAULT_WHERE block propery of master block. It can be done in a Pre-Query trigger.