I am creating an Oracle Report6 report with a master and several detail sections.
Does anybody know a simple way to conditionally print/not print a Boilerplate text item based on the presence/absence of rows resulting from a query?
When a perticular detail section has no rows attached, I am to substitute the headers and detail rows with a single-line text message "No records found where ...".
Is there any simple method to do this?
At the moment, I have placed a frame around the headers and detail lines for the detail section. This frame has a format trigger, which repeats the general SQL, selecting only the count(*). If the count is zero, the frame is not printed.
Another frame contains only the boilerplate message "No records found...", with a similar frame level format trigger which will set it to be printed if the sql count is zero.
This method seems over awkward. Does anybody know a simpler way to conditionally print/not print based on the presence/absence of rows resulting from a query?
Does anybody know a simple way to conditionally print/not print a Boilerplate text item based on the presence/absence of rows resulting from a query?
When a perticular detail section has no rows attached, I am to substitute the headers and detail rows with a single-line text message "No records found where ...".
Is there any simple method to do this?
At the moment, I have placed a frame around the headers and detail lines for the detail section. This frame has a format trigger, which repeats the general SQL, selecting only the count(*). If the count is zero, the frame is not printed.
Another frame contains only the boilerplate message "No records found...", with a similar frame level format trigger which will set it to be printed if the sql count is zero.
This method seems over awkward. Does anybody know a simpler way to conditionally print/not print based on the presence/absence of rows resulting from a query?