looking for all when setting = null

Hi guys, im having a little problem with the settings on my report. When I enter a value to search it works fine, but when I do not enter a value in my parameter (because I want it to look for all) it won't bring back all records where the field is null.

for example suffice it to say I'm looking for a person with the name thomas it will work very well and bring everyone back with the name of thomas, however in my database name can be left empty. When the user runs the report, but does not pass in a name as a parameter we must assume that they want to see all records. In this case my report won't bring back all records where the name is empty. The way I coded it is as follows:

AND NAME = NVL(:RP_NAME,NAME)

IM being probably stupid, but I can not think anyway to get my desired outcom if I simply

AND NAME =: RP_NAME

It bring me a completely blank report.

Any advice would be welcome.

Thank you.

Published by: user13390506 on 27-Sep-2010 03:30

Hello
How about you try as below?

AND NVL(NAME,'-') = NVL(:RP_NAME,NVL(NAME,'-'))

Make sure that the user will not enter name as '-' or use any other character of NVL both places.

-Clément

Tags: Oracle Development

Similar Questions

  • Is it possible for someone to insert a logo when you fill out a form to fill out? I'm looking for all the options under the button 'add a text field.

    I have created a form to fill out that is a contract, but I need a way for the person who is to fill the form to insert their logo.  Is it possible for someone to insert a logo when you fill out the form to fill out? I'm looking for all the options under the button 'add a text field.

    It is not possible within a text field, either. If they have Acrobat, they can use the built-in under Tools - editing content Add Image tool.

    If they drive XI or higher, they can use a button form field you will need to set up for them, but the image must be in PDF format.

  • How default of a multiple selection for all values setting?

    I have a setting that allows the user to select multiple values.  I want the default to use all values (which means basically just ignore this parameter in the generated SQL code).  However, I can't create named on this calculation since it accepts multiple values, and the calculation supports only the first value.  Is there a way to do what I need, without selecting all the values in the list (the LOV contains hundreds and hundreds of values so it's not a viable option).  I'm not very experienced with the discoverer and don't know all the tips/solutions workaround, if you are looking for expert advice.

    Thank you

    Hello

    You must code the parameter and the condition that he accepts the word ALL.

    For example, suppose you are working with ITEM_NUMBER and you have thousands of articles. You want the user to be able to one or more key or access all THE items.

    You must create a Boolean condition like this:

    ITEM_NUMBER IN: ITEM_PARAMETER

    OR

    UPPER(:ITEM_PARAMETER) = "ALL".

    So if the user key word ALL all all or or any variation of the word to be determined as true by the condition and all items will be selected. If the user does no key ALL, and then the other half of the condition will be applied and the element must be a valid element as contained in the list of all the elements. You can even create your parameter with a default value of all THE

    Best wishes

    Michael

  • BlackBerry Smartphones BlackBerry Curve user looking for all compatible in a cradle/usb/charger.

    Looking for recommendations for the cradles of BB Curve that can be synchronized to the computer and outlook, etc. while acting as a charger as well.

    Look here, I noticed that two cradles of all-in-one for load/sycning.

    http://www.blackberryden.com/83cradle.html

    http://www.blackberryden.com/83cradlebat.html

  • Firefox keeps looking for updates when the new tab open.

    I'm under the latest version of Firefox (40.0.3) with adblocker more like my single addon. However whenever I try to open a new tab it take ages to open because Firefox is constantly looking for an update. It takes 2-3 minutes each time. Did you try refreshing Firefox, uninstall and reinstall without success. My system is 8.1 Win on a Lenovo PC i7. Everything worked well until the last FF update. I have no problem with the same version installed on my laptop.
    Any help/suggestions would be apprciated. Thank you.

    As long as it works. Play well.
    Please report your last post as solved while others will know.

  • I can't find the prefs.js file. I followed the instructions and looked for all the hard disk without success.

    I'm looking for the file try to solve the problem of the more recent recording is not my preferences.

    Open the profile folder and then open the ii2k2paq.default folder and find the file here. It is a JScript Script file.

    Thank you

    Please check 'Resolved' the answer really solve the problem, to help others with a similar problem.

  • Looking for all the drivers Vista for Satellite A305-S6872

    Hi, I reinstalled Windows Vista retail
    and I have no devices configured

    I'm looking for video, sound, ethernet, wireless,

    My laptop:
    Satellite A305-S6872
    PSAG8U-02E018

    Thanks in advance!

    Hello

    Satellite A305-S6872 seems to be a Toshiba laptop we and therefore, you should take a look at the Toshiba driver page we:
    http://www.CSD.Toshiba.com/cgi-bin/TAIS/Su/su_sc_home.jsp

    You should find your laptop model and the drivers.

    See you soon

  • Colors and photo look terrible quality when set as wallpaper and after emailing, help?

    Hello world!

    so I recently had a problem, I think that it is possible to do with the way my pictures are saved.
    I recently had to wipe my computer and support everything on a hard drive, so I had to re install photoshop. Since the wipe I had some problems with the way my photos look when I have them set as bottom of screen or when I send an email the colors in the pictures appear very dirty and washed out and the quality seems worse as well but who could appear just like that because the photo is already so horrible. When I discovered photos in my photo gallery in my documents they look very well,

    they look good in photoshop and they appear normally when I transfer them to Web sites, the problem only seems to occur when I email them and when I set them as the background.

    tilly photo error.jpg

    Here is an example of one of my photos, the background image is the good image of high quality with the colours displayed correctly. Above is what happens to the image when I put it as my background or when I send by e-mail. This would be a matter of CMYK? I thought that I double checked and all my settings were correct, but at this point I'm pretty frustrated


    Does anyone have an idea what is happening here?

    Thank you!

    Hi emmav,

    It seems to be a problem due to the change of color space.

    It seems that Photoshop working on ProPhoto RGB, and after saving the image, the color space is defined as sRGB.

    Suggest you follow these steps in Photoshop.

    1. open the image in Photoshop

    2. go in the Edit > convert to profile > change the Destination space to sRGB > click OK

    3. save the image and try to download on mail, or set as background.

    Kind regards

    Claes

  • Affecting a hidden page looking for the interactive report null element

    Hi all

    I'm a newb APEX and don't really understand processing and calculations very well yet. I want to do something fairly simple however.

    I have a page with an interactive report and two hidden page items. I want to set the value of these two elements with the NULL value when someone search the interactive report. Any way to do it?

    Thanks in advance.

    Published by: darstar007 on March 25, 2010 16:31
    
    
    
    

    Kind regards
    Shijesh
    ---
    Please reward the answer if this was helpful or correct

  • looking for mixidj when I opened the second tab please help me ive tried everything I know

    My browsers opens OK for fire fox but when I opened a second search of mixi dj tab opens tried AFAIK I don't even find on my computer to uninstall it please help me if you can

    I've used about: config before but never knew it was editable until that time. Thanks for the help.

  • How can I fix the system to show red and green colors to customize (you are looking for all colors)?

    Preium Running Windows Vista Home Edition, Service Pack 2.  Currently only display black, white, gray, yellow, blue & Brown under START - control panel - appearance & personalization - customize the colors.  How can I fix system to show "all colors".  Note: This affects all MicroSoft applications as well.

    Hi Martin,

    To provide the proper resolution, I would need more information on your side.

    1. you are trying to change the color of Windows?

    You can read the article and check if it helps.

    Change the colors on your computer
    http://Windows.Microsoft.com/en-in/Windows-Vista/change-the-colors-on-your-computer

    Check out the link for more information.

    Customize your computer
    http://Windows.Microsoft.com/en-in/Windows-Vista/personalizing-your-computer

    Hope this information helps. Answer the post with an up-to-date issue report to help you further.

  • DVD/cd player looking for disc when there is already one in place.

    My dvd/cd drive is no longer bed or written records as it does not recognize that there is a disc in the drive.  I tried all types of discs and auto repair, nothing helps.  Self said there's a problem, they can not fix.  the Device Manager shows the drive works. Help!

    Hi Malcolm Turner,

    Thanks for posting your query in the Microsoft Community. According to the description of the problem, your dvd/cd drive is no longer bed or written records. Provide the following information for a better understanding of the issue:

    ·         Did you do changes on the computer before the show?

    I'll help you with this problem. I suggest you follow these methods:

    Method 1:

    The CD drive or the DVD drive does not work as expected on a computer that is running Windows Vista

    http://support.Microsoft.com/kb/929461

    Method 2:

    Your CD or DVD drive cannot read or write media

    http://support.Microsoft.com/GP/cd_dvd_drive_problems

    I hope this helps. Let us know if you need help with Windows related issues. We will be happy to help you.

  • BlackBerry Smartphones looking for easy alarm setting

    How can I set an alarm on the storm for 30 minutes from now without having to press the UP ARROW 30 times?

    HI - select CLOCK and press the "Blackberry" button, choose the TIMER.  Press the "Blackberry" button again and choose 'set the timer.  A few quick shortcuts of your finger on the dial to the middle (minute) and you will have 30 minutes.  Press OK, and then restart. I hope this helps.

  • My sound levels barely increased at all when setting in the timeline panel

    Hello.

    I'm new to Premiere Pro (of the CPF).

    When I case to increase noise levels using the yellow that handles live on the actual audio track in the timeline, they increase only by a very small amount when you drag 'up '. If I slide down, I can reduce them to zero (-60 dB), but I can't increase them significantly greater than 12.

    I have other titles who desperately need to be stronger. I tried increasing using 'Amplify' hearing, but disrupts the audio to make it sound sounds garbled and 'underwater '.

    I hope there is a fix for this.

    Thank you.

    http://i.imgur.com/mCWMscB.PNG

    Try:

    Right click on the audio clip in the timeline panel and increase the Gain.

    This will increase the range available with the 'elastic '.

  • I'm looking for all the cards that have a VIEW as the target object.

    Environment:

    OWB Tahoe development Version 11.2.0.1 Client on Windows 7
    Repositories on Oracle EE 11.2 on AIX

    Is there a way via the repository tables or OMB (shudder!) to get a list of all the cards that have a VIEW that the target object?

    Thank you very much!!

    -gary

    Try this:

    Re: How metadata repository OWB mapping?

    **************
    (1) log under user OWBSYS
    (2) run a procedure owbsys.wb_workspace_management.set_workspace

    exec owbsys.wb_workspace_management.set_workspace ('', '');
    (3) now the public view contains rows
    (4) at the end of the work to perform the owbsys.wb_workspace_management.unset_workspace procedure

    exec owbsys.wb_workspace_management.unset_workspace ();

    *************

Maybe you are looking for