Production PL/SQL query: can not find the error

I have a PL/SQL which produces a query for me, which is used to fill out a report. I use this to supply a filter/search form. Since I want to only filter using xxx movies WHERE = yyy when yyy actually has something else NULL, I use a PL/SQL script in the query I need to produce. However, it does not work as expected and I can't understand why. Here is my code:
DECLARE
  query VARCHAR(1000);
BEGIN
  query := 'SELECT * FROM F_OBJEKTE WHERE 1=1 ';
  IF :P15_REGION != null THEN
    query := query || 'AND REGION = :P15_REGION ';
  END IF; 
  RETURN query;
END;
However, the report still contains all lines, as if P15_REGION has not been defined - and so I guess that the script never enters the IF part. Everyone around who can enlighten me, why it is?

Just another little thing: is there a way I can print debugging messages I see when I press the "Debug" button on the lower bar of APEX? It would help a lot of debugging such PL/SQL functions.

Try changing

IF: P15_REGION! = null THEN

TO

IF: P15_REGION is not null THEN

Tags: Database

Similar Questions

  • my adobe cs4 can not find the error of video playback NV_OGL modules

    I spent several hours with adobe technology, and they said nothing was wrong with his stand or first pro. I get an error NV_OGL code and it says that the software can not find reading modules. I have loaded and reloaded the latest driver and the same thing?

    Adobe technology said that he could not to the hidden administrator Panel to give him permission? Any ideas?

    Hello

    1A this error has always been the case, or is this something new?

    2 How long this issue has popped up?

    3. have you made changes on the computer before this problem?

    Step 1:

    You can uninstall Windows media player. Check out the following link.

    Uninstall Windows Media Player
    a. go initially and in search type 'Turn Windows has or not'.
    b. click on "Turn Windows features on or off".
    c. find multimedia and uncheck Windows Media Player.
    d. restart the computer.
    For more information, see the article:

    http://Windows.Microsoft.com/en-us/Windows7/turn-Windows-features-on-or-off

    Step 2:

    After you uninstall Windows media player, you can view the issue in the clean boot state. Check out the following link

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135
    Note: once you are done with the boot, please follow step 7 of article to reset your computer to normal startup.

    Step 3:

    Reinstall Windows Media Player
    a. go initially and in search type 'Turn Windows has or not'.
    b. click on "Turn Windows features on or off".
    c. find the multimedia functions and place a check mark in front of the Windows Media Player.
    d. restart the computer.

    For more information, see the article:

    http://Windows.Microsoft.com/en-us/Windows7/turn-Windows-features-on-or-off

  • Can not find the error method append (java.lang.string)

    Hello, I am trying to run the following code, but the above error.

    Help, please.

    import java. IO;

    public class {StringBuilder

    public StringBuilder() {}

    Super();

    }

    Public Shared Sub main (string args [])

    {

    creates the vacuum generator, numbers of beds 16

    StringBuilder sb = new StringBuilder();

    Adds the 9 character string at the beginning

    SB. Append ("Greetings");

    }

    }

    Your class is not a method append (String). You must not name your classes the same as the API classes. Rename your class to MyStringBuilder or use the qualified name of java.lang.StringBuilder.

  • Manually reinstall Windows XP and can not find the product key.

    Manually reinstall Windows XP

    Manually reinstall Windows XP and can not find the product key.
    What to do to replace the product key.

    Where to find your product key
    You can find your Windows product key on the label supplied with the package provided with your copy of Windows. The label can also be on your computer case. Activation of the pairs with your computer, your product key.
    Lost or misplaced product key (certificate of authenticity)
    http://support.Microsoft.com/kb/824433
    How to get a replacement product key?
    To replace a Microsoft product key, you must contact Customer Support and Microsoft. To locate the phone number, visit the following Microsoft Web site:
    http://support.Microsoft.com/default.aspx?scid=fh; EN-US; CNTACTMS
     
    For more information on this topic, visit http://support.microsoft.com/kb/811224
  • My hard drive crashed and I had to reload vista. I can not find the product key. What can I do?

    My hard drive crashed and I had to reload vista. I can not find the product key. What can I do?

    Contact the manufacturer of your computer.

    Look on the side/back if a desktop computer; down if a laptop.

    Also look on any packaging the VistaDVD came, if you bought it yourself.

    If the product key is lost, we can NOT help you replace.

    See you soon.

    Mick Murphy - Microsoft partner

  • can not find the product code

    My computer is locked and since we got it fxed part of my microsoft programs don't work. I try to put in my update for windows vista, but can not find the product code and the phone number here has too many numbers.

    Here are the different ways to try to find the product keys:

    http://www.Belarc.com/free_download.html

    http://www.magicaljellybean.com/KeyFinder/

    If your Vista is a functioning and activation of operating system Vista, use either of the program above to find out what is your product key.

    If a desktop computer: look on the side or the rear of the case for a sticker

    If a laptop: look for a sticker on the underside.

    The sticker will contain 25 digits, divided into 5 groups of 5 digits.

    Look on the packaging in which it came.

    Or contact the manufacturer of your computer.

    This is all the help we can give you about a lost product key.

    See you soon.

    Mick Murphy - Microsoft partner

  • After the death of the hard drive on a computer Mac am not abel to reactivate acrobat pro - get msg error S/N # is good, but can not find the product

    the hard drive on my Mac is dead and when I tried to reinstall acrobat pro, I get the msg that the s/n is good, but can not find the product, I have reloaded acrobat pro 3 times and always get the same msg?  Can anyone help?

    This means generally that you install one version upgrade and it does not find the earlier version. You will need to provide the number of the prior product that qualifies for the upgrade.

  • HP G049AU: Can not find the product Page of G049AU HP drivers. Help me locate.

    My HP G049AU was delivered with WIndows 8.1. I erased from my HARD drive and install ArchLinux, it's been a year I use arch. But now I want to play games, so the intention to move to Windows 7.

    However, sad, it's part I am unable to locate the drivers 64 bit Windows 7 in my product page. Where can I find the drivers and download it?

    Help pl0x.

    Hello

    It's a HP 15- G049AU? All drivers for Windows 7 are at the following link:

    http://support.HP.com/us-en/drivers/selfservice/HP-15-notebook-PC-series/6545564/model/7483718#Z7_3054ICK0KGTE30AQO5O3KA30R1

    Kind regards.

  • Pavilion p7-1254: can not find the drivers for my hp keyboard ku-1060

    Can not find the drivers for my keyboard, the printer or the infrared transmitter/receiver anywhere. I tried hp support and they want the money because my warranty ls model.

    If you use the keyboard that has been deilvered with the PC, there is no driver required. It's a keyboard usb standard. It there no you can replace it easily.

    Simply plug into a usb port before starting the desktop computer.

    Windows will recognize it and use built in drivers that are part of the operating system.

    For a printer, simply use the printer product number and the word support. Suport page should have the full features drivers that you need for most operating systems.

    Infrared transceiver.

    You need to be more specific on this one here.

  • Example: Pavilion 550qe: have just got a QED Pavilion and can not find the place where the monitor.

    Have just got a 550qe of Pavilion and can not find the place where the monitor.   The image on the book they sent shows the exact card, I need but can't find anywhere on the back of the PC.    There are a few plates little who have the drivers there, but do not want to start removing the panels unless this is where some of the connections are hidden.

    Hello

    Can't find the official specs of HP. But since the following specifications

    |-Intel-Core-i7-|-Windows-10-|-Silver.product.100241370.html http://www.Costco.com/HP-Pavilion-550qe-desktop-

    There

    Ports:

    • 2 x USB 3.0
    • 2 x USB 2.0
    • 1 x HDMI
    • 1 x VGA
    • 1 x jack Headphone-out/microphone-in the drop-down list
    • Multi format card reader

    Depending on your monitor, you can use HDMI or VGA to connect. What is your monitor (make and model)?

    Kind regards.

  • Can not find the driver for my Canon Rebel XT/350 d camera to send pictures on my computer

    Can not find the driver for my Canon Rebel XT/350 d camera to send pictures on my computer

    And it is a Windows problem why?

    http://www.USA.Canon.com/Cusa/support/consumer/eos_slr_camera_systems/eos_digital_slr_cameras/digital_rebel_xt#DriversAndSoftware

    P.S., A lot of people just leave the CF card and use a card reader:

    http://www.Amazon.com/s/ref=nb_sb_noss?URL=search-alias%3Daps&field-keywords=CF+card+reader&x=0&y=0

    http://www.Newegg.com/product/ProductList.aspx?submit=Ene&N=40000069%20600021611%20600031471&IsNodeId=1&name=external

  • Can not find the updated driver for Intel PRO Wireless LAN 2100 3B for R40

    I can't find the good updated software listed for my R40 on the Lenovo site. The Device Manager shows my card wireless as:
    Intel PRO Wireless LAN 2100 3B Mini PCI Adapter but I can not find the model listed in the update list.

    My R40 description is by Lenovo site is:
    Product: ThinkPad R40 2897 B4U
    Operating system: Windows XP

    Original description: P M 1.4 GHz, 256 MB RAM, 40 GB 4200 RPM drive HARD, XGA(1024x768) 15 TFT LCD, 32 MB ATI Radeon 7500, 24x10x24x/8 x CD-RW/DVD, Intel 802. 11B wireless (MPCI), Modem (CDC), 10/100 Ethernet (LOM), UltraNav, Secure Chip (TCPA), IEEE 1394, 8-cell Li-ion, WinXP Pro

    Lenovo driver update page, I have the following choices:

    Network: R40, R40e wireless
    (1) mini PCI driver of cisco Wireless LAN

    (2) high rate Wireless LAN Mini-PCI Adapter III
    Note: The models ThinkPad R40 2681, 2682, 2683

    (3) dual-Band 802.11ab and 802.11abg wireless LAN Mini PCI adapt

    (4) Intel PRO/Wireless LAN 2100 3B Mini PCI adapt
    Note: The models ThinkPad R40 2722, 2724 only, 2723

    My card is listed for models 2722 2723 and 2724 ONLY.

    Here is the direct link to the driver page http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-46024R40.

    Device Manager shows that I currently have the Intel of the installed driver version: 07/03/2003, version 1.1.5.0

    Can anyone help on what version of the software update I should use?

    Welcome to the forum!

    Here is your wireless driver:

    http://www-307.IBM.com/PC/support/site.WSS/document.do?sitestyle=Lenovo&lndocid=MIGR-59438

    After you download it, make sure you unpack it in the following directory: C > drivers > win > Wlanint

    I hope this helps.

  • Reinstall, but can not find the activation code

    I had to reinstall Home premium to Windows 7 on my dads computer, but it can not find the activation code it makes when it was sold.

    I confirmed that its windows is certainly authentic.

    What should I do?

    I have 2 days to activate it.

    How can I get the activation code?

    The product key should be on the COA sticker on the case of the machine - perhaps in the battery compartment, if it's a laptop.

  • HP deskjet 3050 a j611 can not find the driver software when connected

    I tried to plug my new printer Hp deskjet 3050 a j611 range but can't get furthur than coonecting because it can not find the driver software. I had to download the driver software myself via this link http://h10025.www1.hp.com/ewfrf/wc/softwareCategory?cc=us&dlc=en&lang=en&lc=en&product=5061082& but once I downloaded that and is entered in the details of the wireless connection, it cannot find the driver software. I can't use the CD my drive is broken and I am awaitng delivery of an external in a few weeks, but I'd like to get my printer started. Help, please

    Hello Buzbybumble

    I looked into it further and found that all J611 Deskjet 3050 a models use the same software. So, you should be able to download and run the installation from the link below.
    Software HP Deskjet 3050 has complete features J611

    IMPORTANT: Make sure that the printer is not connected to the computer until the installation program ask you to do. Run the Setup and follow the instructions on the screen.

    If the printer is not yet seen, then choose the option "continue INSTALLATION WITHOUT CONNECTION NOW I WILL CONNECT the PRINTER LATER. A shortcut must be placed on your desktop and it will try to add a printer when it is executed.

  • Already have first Pro CC but want to get CS6 first... can not find the download site.

    Already have first Pro CC but want to get CS6 first... can not find the download site.

    I don't know that you can get unique version of older versions, with a subscription.  But here's what you would do if that is your intention...

    Get the CS6 Apps against Cloud subscription:
    -----------------------------------------

    Download previous versions of Adobe Creative applications-
    http://helpx.Adobe.com/creative-cloud/kb/download-previous-versions-creative-applications. HTML

    If you mean you want to buy CS6...

    Buy CS6:
    ----------------------

    http://www.Adobe.com/products/catalog/CS6._sl_id-contentfilter_sl_catalog_sl_software_sl_c reativesuite6.html

Maybe you are looking for

  • HP Pavilion series HPE h8-1227: try to update my GPU for my pc

    So I tried to solve this problem with my computer, where when I install a new graphics card (I tried several and no luck) currently im trying this graphics card (MSI GeForce GTX 750Ti GAMES DirectX 12 N750Ti TF 2GD5/OC 2 GB 128 - Bit GDDR5 PCI Expres

  • Why apple does not have a Dual SIM iphone?

    Why apple does not have a Dual SIM iphone? I have 2 numbers and one of the members of my family has 4 digits. We both prefer to have an iphone with a Dual-SIM and member of my family would rather have 2 iphones with dual sim each, rather than an ipho

  • How compile/link xnet with eclipse for the cRIO 9068

    Hi all I use a cRIO 9068 with a NI9862 (DRUM unit). I'm programming in C/C++ with Eclipse on windows Without seeking to CAN access via xnet, the C app compiles and works very well on the 9068. Now, I want to use xnet functions to access the CAN. I fo

  • At the end of August, 2011, I put Vista up-to-date with three recommended updates.

    At the end of August, 2011, I put Vista up-to-date with three recommended updates. I've never updated with the optional updates. After the required reboot, my computer did not start, did not start in safe mode or last good configuration mode. Then th

  • BlackBerry smartphones can not connect to my blackberry id account

    Hello I am a former owner of bb 8520 and already has an existing blackberry id. recently, I've upgraded to a torch 9810, but now I can not access my account id to bb using my phone. However, I can connect without problems with my id when you use a co