Home » Developer & Programmer » Forms » post-query Trigger error (froms 10g)
|
|
|
|
Re: post-query Trigger error [message #640169 is a reply to message #640158] |
Thu, 23 July 2015 04:41   |
 |
Littlefoot
Messages: 21823 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
WHERE clause should be modified so that SELECT returns just one row for each record in a block.
Sometimes SELECT DISTINCT helps.
Or, using an aggregate function such as SELECT MAX(NAME), MAX(DESCRIPTION) ... does the job.
However, it is you who has to investigate all options and apply the most appropriate one.
[Updated on: Thu, 23 July 2015 04:42] Report message to a moderator
|
|
|
|
Re: post-query Trigger error [message #640385 is a reply to message #640156] |
Mon, 27 July 2015 16:03   |
 |
CraigB
Messages: 386 Registered: August 2014 Location: Utah, USA
|
Senior Member |
|
|
Quote:yes, it has one or more records to Display in the Detail block.
If there is more than one record, then you have to loop through the record set to process/display each row.
select Name, description, nvl(title),0)
into :blk1.name, :blk1.expl, :blk1.sub
from table1
where pid = :blk1.pid;
If all of the values are from a single table, why not simply create a block based on this table and set the WHERE_CLAUSE of the block to filter the records by the :BLK1.PID?
Craig...
|
|
|
|
Goto Forum:
Current Time: Fri May 02 21:45:47 CDT 2025
|