Reputation: 45
I am creating form for search data in oracle forms 10g
when user select LOV from non-database field and press search button then non-database field goes null. I want field not null when button press
Upvotes: 0
Views: 792
Reputation: 142743
A screenshot would help; it is unclear where's that non-database field placed. If it is a tabular layout forum, is it placed within all the other fields? Or is it somewhere in a control, non-database block?
Anyway: here's how I'd do that.
First of all, if possible, avoid inventing your own searching algorithm. Forms is very good at doing such things by itself. Shortly:
If, for some reason, you have to do it "your way":
WHEN-BUTTON-PRESSED
should
SET_BLOCK_PROPERTY
and set database block's DEFAULT_WHERE
(or, maybe even better, ONETIME_WHERE
) to a selected LoV valueGO_BLOCK
)EXECUTE_QUERY
WHEN-BUTTON-PRESSED
would only EXECUTE_QUERY
, but you'd use PRE-QUERY
trigger on the database block that sets the searching criteria, for example :database_block.name := :control_block.lov_field;
As of your question:
POST-QUERY
triggerWHEN-BUTTON-PRESSED
trigger is doing - maybe it clears itSee of what I wrote helps. If not, please, edit the question (your initial message) and provide additional information which would help us help you.
Upvotes: 0