Can I use an IF statement in a Source in the region

Hello, Im using Apex 3.x. I have a standard report page whose Source region is a simple select statement... SELECT xyz OF... WHERE

I need to add an IF statement to this Source in the region, but when I do I get an error - query cannot be parsed in the generator.

IF: P2_FILTER = 'A' THEN
SELECT FROM ABC... WHERE
ELSIF: P2_FILTER = 'B' THEN
SELECT FROM ABC... WHERE
END IF;

The selected columns are the same in both scenarios. Is it possible to add an IF statement to the source of the region?

Thank you
you

You can either:

(1) create several springs in the area with a query and set a condition to show only based on your health status.

(2) a function returning the pl/sql and return the generic as columns:

if a then
  return 'select 123 from dual'
else
  return 'select 456 from dual'
end if;

Tags: Database

Similar Questions

Maybe you are looking for

  • New "Air" screensavers?

    When Apple announced 4 ATV, they were very proud of the screensavers air and, in my view, said that the new addition. I love them, but I don't remember one being added since the initial batch. I have defined automatic download, but wonder if it is po

  • X 300-11 of Qosmio - cannot start

    I'd appreciate any help any startup issues that struck my X 300-11. The startup process appears as instance, but stops after the microsoft corporation loading bar. A clicking sound is heard within the computer and the charging light flashes in time w

  • Install Win7 (Pro) on a C6Z35UT 4540 ProBook S?

    HI -. I recently bought a laptop from ProBook 4540 S C6Z35UT. I love the material. It came with 64-bit Windows 8. I've never tried Windows 8 before, but I really used Windows 7. After playing a bit with it, I decided that I really don't like Windows

  • Product identification number

    Trying to get Microsoft support, I get a screen that asks you the product identification number.  It offers two choices: type the number or leave Microsoft to find the number on my computer.  I typed the number on the instructions, but I get a messag

  • Hyperthreading

    I have a dv7 with a processor 4-core i7-3820QM Win 7 Home premium 64-bit. How can I disable hyperthreading? I could not find in the BIOS.