Problem with ENTER_QUERY, EXECUTE_QUERY [message #141337] |
Sun, 09 October 2005 06:36 |
adamjsawyer
Messages: 79 Registered: April 2005 Location: Perth, Western Australia ...
|
Member |
|
|
Hi I'm having a problem with my form. I have a button which needs to perform an ENTER_QUERY, get a value from an LOV, and then do an EXECUTE_QUERY. The problem is that the ENTER_QUERY doesn't appear to do anything, so when the EXECUTE_QUERY runs, it just pulls all the records out instead of just the one I want.
Another thing I want to do is be able to do a Cancel Query using PL/SQL, but I can't find the command for it anwhere.
any help appreciated
adam
|
|
|
|
Re: Problem with ENTER_QUERY, EXECUTE_QUERY [message #141436 is a reply to message #141401] |
Mon, 10 October 2005 05:02 |
adamjsawyer
Messages: 79 Registered: April 2005 Location: Perth, Western Australia ...
|
Member |
|
|
If I press the ENTER_QUERY button on the smart bar, and then click the LOV it works fine. It just doesn't work when the code is all in one button, really weird. I got cancel query working thanks to someone on another forum, u just say
-- Cancel Query
IF :SYSTEM.MODE = 'ENTER-QUERY' THEN
EXIT_FORM;
END IF;
thx
adam
|
|
|
|
Re: Problem with ENTER_QUERY, EXECUTE_QUERY [message #141464 is a reply to message #141448] |
Mon, 10 October 2005 07:32 |
adamjsawyer
Messages: 79 Registered: April 2005 Location: Perth, Western Australia ...
|
Member |
|
|
ENTER_QUERY(no_validate);
--message('sysmode: ' || :SYSTEM.MODE);
IF :SYSTEM.MODE = 'ENTER-QUERY' THEN
-- Get the JOB_ID from the list of values
GO_ITEM('WTL_JOBS.JOB_ID');
LIST_VALUES;
IF :WTL_JOBS.JOB_ID IS NULL THEN
EXIT_FORM; -- Cancel the query
ELSE
-- Fill out the form values
EXECUTE_QUERY;
-- Go back to the LOV button
GO_ITEM('WTL_JOBS.JOB_ID_LOV_BUTTON');
END IF;
ELSE
message('No enter query');
END IF;
|
|
|