How to create a parameterized report - select "- ALL -" for the Department and manager does not.

I downloaded the app OEHR sample of objects and followed the steps in Oracle® Application Express Advanced Tutorials
Version 3.2.

The report and the settings seem to work fine except when I get 'everything' for service or manager I get no corresponding success.

What is the way most effective to get 'everything' if the user selects all for dept and mgr - so we would like to return all records in the table.

Snipprt region

Enter search Edit   
Edit
Edit
Edit

Here is the sql code that was provided as part of the turitoral.

SELECT

'OEHR_EMPLOYEES '. "" EMPLOYE_ID ""EMPLOYE_ID"

'OEHR_EMPLOYEES '. "" NAME ""FIRST NAME",

'OEHR_EMPLOYEES '. "" LAST_NAME ""NAME,"

'OEHR_EMPLOYEES '. "" ""E-MAIL. "

'OEHR_EMPLOYEES '. "' PHONE_NUMBER '"PHONE_NUMBER. "

'OEHR_EMPLOYEES '. "' HIRE_DATE ' 'HIRE_DATE ',.

'OEHR_EMPLOYEES '. "" JOB_ID ' "JOB_ID,

'OEHR_EMPLOYEES '. "" TREATMENT ""TREATMENT. "

'OEHR_EMPLOYEES '. "" COMMISSION_PCT ""COMMISSION_PCT. "

'OEHR_EMPLOYEES '. "" MANAGER_ID ""MANAGER_ID. "

'OEHR_EMPLOYEES '. "" DEPARTMENT_ID ""DEPARTMENT_ID ".

Of

"#OWNER # '." OEHR_EMPLOYEES' 'OEHR_EMPLOYEES '.

WHERE

(lower (first_name) like '%' | lower(:P1_NAME) |) '%' OR

Lower (last_name) like '% "| Lower(:P1_NAME) | '%')

AND department_id = decode(:P1_DEPT,'%null%',department_id,:P1_DEPT)

AND manager_id = decode(:P1_MGR,'%null%',manager_id,:P1_MGR)

Hello

Use this...

SELECT

'OEHR_EMPLOYEES '. "" EMPLOYE_ID ""EMPLOYE_ID"

'OEHR_EMPLOYEES '. "" NAME ""FIRST NAME",

'OEHR_EMPLOYEES '. "" LAST_NAME ""NAME,"

'OEHR_EMPLOYEES '. "" ""E-MAIL. "

'OEHR_EMPLOYEES '. "' PHONE_NUMBER '"PHONE_NUMBER. "

'OEHR_EMPLOYEES '. "' HIRE_DATE ' 'HIRE_DATE ',.

'OEHR_EMPLOYEES '. "" JOB_ID ' "JOB_ID,

'OEHR_EMPLOYEES '. "" TREATMENT ""TREATMENT. "

'OEHR_EMPLOYEES '. "" COMMISSION_PCT ""COMMISSION_PCT. "

'OEHR_EMPLOYEES '. "" MANAGER_ID ""MANAGER_ID. "

'OEHR_EMPLOYEES '. "" DEPARTMENT_ID ""DEPARTMENT_ID ".

Of

"#OWNER # '." OEHR_EMPLOYEES' 'OEHR_EMPLOYEES '.

WHERE

(: P1_NAME IS NULL OR)

(: P1_NAME IS NOT NULL AND)

(

(lower (first_name) like '%' | lower(:P1_NAME) |) '%') OR

(lower (last_name) like '%' | lower(:P1_NAME) |) '%')

)

)

) AND

(: P1_DEPT IS NULL or department_id =: P1_DEPT) AND

(: P1_MGR IS NULL or manager_id =: P1_MGR)

Tags: Database

Similar Questions

  • My Vista system trying to download the updates, and it does not complete the download. It is up to "Windowsupdate_00000646" and "windowsupdate_dt000" How do I clear this code to receive these updates?

    My Vista system trying to download the updates, and it does not complete the download. It is up to "Windowsupdate_00000646" and "windowsupdate_dt000" How do I clear this code to receive these updates?

    They are only updated office or all updates?

    For Office updates, usually to pick up the item at the: http://www.microsoft.com/downloads/en/default.aspx

    then manually download and install the same.

    If all updates, perhaps consider the following general tips-

    Option: File of Windows Update agent wups2.dll is incorrectly registered and the registry associated with the Wups2.dll file files are missing.

    Method 1: Save the Windows Update files

    1. Click Start and type notepad in the box start the search.
    2. click on Notepad in the list programs.
    3. copy the following commands, and then paste them into the opened Notepad window:
    REGSVR32 WUPS2. DLL/S
    REGSVR32 STINKS. DLL/S
    REGSVR32 WUAUENG. DLL/S
    REGSVR32 WUAPI. DLL/S
    REGSVR32 WUCLTUX. DLL/S
    REGSVR32 WUWEBV. DLL/S
    REGSVR32 JSCRIPT. DLL/S
    REGSVR32 MSXML3. DLL/S
    4. in Notepad, on the file menu, click Save as.
    5. in the file type list, click all files.
    6. in the file name box, type register.bat.
    7. save the Register.bat file to your desktop.
    8 right-click the Register.bat file, and then click Run as administrator. If you are prompted for an administrator password or a confirmation, type the password or click on continue.
    9. try to reinstall updates.

    http://support.Microsoft.com/kb/958053
    See: method 1: save the Windows Update files

    http://support.Microsoft.com/kb/326253
    Method 5: Registry Windows Update engine files

    http://support.Microsoft.com/kb/971058
    How to reset the Windows Update components?

    Method 2: Download and install Windows Update agent

    Windows Update Agent

    How to get the latest version of the Windows Update Agent to help manage updates on a computer
    http://support.Microsoft.com/kb/949104

    Information for network administrators about how to obtain the latest Windows Update Agent
    http://support.Microsoft.com/kb/946928

    Click Start, click run, click Browse, navigate to the file you saved and click Open.

    Add the switch /wuforce at the end of the command run and then click OK. For example, the command run might look like this: "C:\WindowsUpdateAgent30-x86.exe" /wuforce

    Click run.

    Follow the steps to complete the wizard.

    Important

    To reinstall Windows Update Agent - download the relevant file from one of the links provided above and save it to a drive where Vista is not loaded because the file cannot be launched directly from the root directory of the system.

    Click Start, run, type: "D:\WindowsUpdateAgent30-x86.exe /wuforce" (without the quotes) and press ENTER to install the Windows Update engine.

    Note: There is a space between "D:\WindowsUpdateAgent30-x86.exe" and "/ wuforce.

    D: is the drive where Windows is not installed (IE a flash drive or a 2nd hard drive etc.)

    TaurArian [MVP] 2005-2010 - Update Services

  • I bought a windows version of 11 elements and not a mac version. So I can't install the dvd and it does not accept my serial number for the "downloadversion" how this can be solved?

    I bought a windows version of 11 elements and not a mac version. So I can't install the dvd and it does not accept my serial number for the "download version" how this can be solved?

    Thank you in advance.

    Arjen

    You can also download the Mac in trial version of the software through the page linked below and then use your current serial number to activate it.

    Don't forget to follow the steps described in the Note: very important Instructions in the section on the pages of this site download and have cookies turned on in your browser, otherwise the download will not work correctly.

    Photoshop/Premiere Elements 11: l http://prodesigntools.com/photoshop-elements-11-direct-download-links-pse-premiere-pre.htm

  • How can I remove the documents from my iPad added when it was running regular Acrobat, now that happened in DC?  The docs are not on the cloud, and DC does not appear to be a function of deletion for non-cloud docs.

    I use an iPad.  It switches me automatically in Acrobat outdated in DC.  How can I remove the documents that have been on my iPad with the old Acrobat?  They are not in the cloud, and DC does not appear to be a function of deletion for them.

    Hello

    By default, Acrobat DC IOS shows the consulted files recently.  You need to switch to another file location (for example, Local, Document cloud creative) to delete, rename, move or duplicate files.

    You can switch to the Local, if you do not want the files and folders that are stored locally on your iPad.

    Do you want to take a look at the following document to see how you can switch to another file location and delete the files?

    How to manage files Acrobat DC for iOS

    Please let us know if you have any additional questions.  Thank you.

  • How to create a value to select all the dashboard command prompt values

    Dear Sir/Madam,
    OBIEE version is 10g.
    I create a dashboard promt to act as a filter option. It includes all the values in the target column. I wonder how to add value to this prompt to select all of the values in this column?

    For example:
    Table has a column 'product '. Total of 3 values in this column: "product produced b","", "product c '. When I create a dashboard command prompt to include all the choice of 'product '.
    Show sql result: I press "select A product".
    Ok. This message now includes "product produced b","", "product c ' fall down meun. But the problem also. If the user wants to choose all the values in this column? How he/she can do that? I would also add a value 'All products' to include ' product produced b "," "," product c "drop menu drop-down. If the user choose this option. Displays all the results of the product?
    Thank you.

    June wrote:
    I'm sorry that I have no idea about this idea.
    Do you mean the dash prompt has a functional to the list of the values of all options as check boxes? Please would you give me a simple example if you are convenient?
    Thanks anyway.

    When you create the dashboard, as David T say, simply leave the values at all rather than send the SQL query. This will give you the list of all values for the prompt. When the user wants to run the report with all values, it will need check all the boxes in the list, to get the report with all products.

    Kind regards
    -Laurence.

  • How to remodel a star by selecting all edges at once and how symmetrical knots?

    I'm catching up with this tutorial: http://vector.tutsplus.com/tutorials/illustration/create-an-adorable-hedgehog-with-basic-t utils in inkscape /

    But I have two problems

    First of all: I'm drawing this form: http://i1159.photobucket.com/albums/p639/Cyanide2x4/hedgehog-1_zps62feac94.png

    It is written in the article I should use the star tool, so after using the star tool I got this:

    http://i1159.Photobucket.com/albums/p639/Cyanide2x4/Star_zps484ab7ea.PNG

    Now anyway to select all edges and remodel all at once to get to this shape drawn in the article (the first photo I posted)?

    Second problem:

    I do not understand this:

    http://i1159.Photobucket.com/albums/p639/Cyanide2x4/Hedgehog-9_zpsf39f2e73.PNG

    What does mean "Nodes Tool" article?

    It is written that I have to draw a triangle using the polygon tool, then using tool nodes > nodes selected symmetric I will get this form in the photo above, but I can't find the nodes tool nor symmetrical knots option

    I use Adobe Illustrator CC

    Tutorial is made for Inkscape (another drawing software)

  • How to create a signature to emails customized with the fonts and colors that I select instead of the default values?

    create a snazzy to my e-mail signature

    Hi, I want to create a signature in my windows mail email... He will be only with the police, which is the standard... How do I create a jazzy, as have the font and the color I want? Thank you

    Note: The HTML Signatures must be less than 4 KB.

    Open a new Message window and create your signature. (Insert the graphic & text). Click on the Source tab (view |) Source Edit if not already checked). Highlight the complete source code and copy / paste into Notepad. File | Save under and in the file name field, save as htm, (i.e. Sig1.htm). It will be saved in My Documents by default. Go to tools | Options | Signatures. Click: File | Browse and insert your saved signature | Apply. You can now rename it if you wish.

    Of course, if the recipient reads in plain text, they don't see the it.

  • How to create link on report of table on the othere dashboard page

    Hello

    I created a page of dashboard... we have graphic report... When I'm clicking Chart report, it goes to the page respective dashboard... Please help me

    Hi merago,

    This can be achieve with action links. Please refer to http://www.rittmanmead.com/2010/07/obiee-11gr1-action-framework-and-conditions/

    Close the thread and give points.

    J.

  • How to create a component with SMD pads on the upper and lower layer

    I am trying to create a piece that is a printed antenna. This will contain a table of these so I'll try to create it in the context that I can place. The active element of the antenna is on the top layer and the portion of land is on the bottom layer. So I need a PIN SMD on top for the active element, and I need a SMD rod on the bottom to connect the Party on the ground. But I can't seem to be able to place a SMD pad on the bottom layer. How can I do this?

    You can change the layer for the SMD pin in the Publisher of the imprint. Right-click the PIN you want to change, and then select the Orientation > layer Swap. He is now on the bottom.

  • How to create a virtual network of study for the MCDST?

    Hi guys.  I'm a studying MCDST trying to put my hands on XP Pro and Windows Server 2003 in order to have a better learning experience. I'm using Workstation 6.5, and I'm really interested in creating my own virtual network. You guys have probably brought to this subject a million times, but I really need your help. So, what I try to do is to create a Windows Server deployment in the virtual machine that has installed in Win2k3. Everything is set up, as in, everyting is ping correctly. So now I want to install XP Pro remote in a new VM with no OS installed. Both virtual machines have only active guest network and the new virtual machine is configured in the BIOS to boot from the network. Now I'm stuck because the new VM is supposed to detect the WDS server, as it is virtual NIC is compatible PXE. I know that I should probably make some adjustments in the virtal network options. But I did not now what to do. Please help me! If you need more info just tell me!

    It means open the .vmx in Notepad file, select all text by clicking on the Edit menu, and then clicking 'Copy' and 'Paste' ing this text in your next post.  Or even simply to attach that file to your next reply.

    You must first enable the display of file extensions in Windows Explorer so that you can be absolutely sure that you are working with a .vmx file:

    In your window Explorer (such as the one that you took a screenshot and validated in your last response) click on the 'Tools' menu, and then click "Folder Options."  Then click on the 'View' tab in the window that appears and look for the box "Hide extensions of known file types".  Clear this check box, and then click 'OK' at the bottom of this window.  Then you should be able to see the end of file .vmx file extension that you want to open in Notepad, or you want to join in your next reply.

  • How to create a guest account? I followed the instructions and it says that it does not recognize the user!

    I followed the instructions to create a guest account and it says that it does not recognize the user's address or the password.

    Hello

    1. What is the operating system installed on the computer?

    2. are you trying to create or attempt to activate the guest account?

    3. How have you tried to create the guest account?

    4. What is the exact error you get when you try to create the guest account?

    Perform the steps in the articles to create a guest account and check if the problem is solved or not.

    Turn the guest account on or off (Windows 7)

    Turn the guest account on or off (Windows Vista)

    Hope that helps.

  • Every second a link or I click on getting me to unwanted redirected Web sites, Ive tried all the antiwormspyware and it does not happen with Chrome or IE

    For the last few months since I've updated last Firefox when I do a search on google for the most part, but sometimes of other links too sometimes. I click on a link and more than half the time it redirects me to websites virus, pirates, games of chance or porn. Ive tried to find a worm or a malware with all known antivirus-antispyware programs, but nothing. I know it takes some malware or trojan but can you tell me are you aware of this and if so how can I get rid of him. I prefer to use Firefox for Chrome, but it can't on Chrome, so it must be a specific problem of Firefox

    It could be from a malicious add-on or 'search bar' which has installed without your permission. Check your add-ons to see if you have no matter what you do not recognize. Also, are you using any "bars," extra in addition to your navigation/menu/bookmarks bars? Sometimes adware disguised as research tools for your browser.

  • Windows Vista - all programs 'stopped working' and nothing does not open. McAfee is also not working and help and support center does not even

    On my windows vista computer, whenever I turn on my computer and log on, none of my programs work. An error message appears saying that the program has stopped working and windows will try to find a solution to the problem.  The problem is that the help and support center opens either. None of my internet programs to be open, and the same error message for all. We have tried to turn off DEP, and that did not help. My computer is connected to the internet (2wire) but is not able to run due to the problems with my computer. I scanned my computer with windows defender, and we found no problem. Help, please

    Hi Anna1298,

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

    Follow the suggestions below for a possible solution:

    Method 1:

    Step 1: Start in safe mode and check if the problem persists.

    Start your computer in safe mode

    http://Windows.Microsoft.com/en-us/Windows-Vista/start-your-computer-in-safe-mode

     

    Step 2: If the problem does not occur in safe mode, you can put your system to boot (in normal mode) to solve the problem.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

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

     

    Note: After troubleshooting, be sure to configure the computer to start as usual as mentioned in step 7 provided in the above article.

    Method 2: Try the SFC (System File Checker) scan on the computer.

     

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7

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

     

    Method 3: I also suggest that you scan your computer with the Microsoft Security Scanner, which would help us to get rid of viruses, spyware and other malicious software.

    The Microsoft Security Scanner is a downloadable security tool for free which allows analysis at the application and helps remove viruses, spyware and other malware. It works with your current antivirus software.

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

     

    Note: The Microsoft Safety Scanner ends 10 days after being downloaded. To restart a scan with the latest definitions of anti-malware, download and run the Microsoft Safety Scanner again.

    Important: During the scan of the hard drive if bad sectors are found, the scanner tries to repair this sector, all available on which data may be lost.

    Let us know if that helps.

  • How to remove fixcleaner? When I go into the Control Panel, it does not work!

    Original title: how to remove fixcleaner

    functions, programs and program says Control Panel does not exist when I try to remove it. How can I get rid of him?

    You could try Revo Uninstaller or maybe CCleaner could get rid of it.

    http://www.revouninstaller.com/revo_uninstaller_free_download.html

    OR

    You can get their directions complete here.

    NB: Check the q: how to uninstall FixCleaner? about three quarters of the way to the bottom of the page.

  • How can I get the window to fit the actual screen? The window is sized for the screen and I do not see the taskbar.

    To enlarge a window defines the type of window that is too big to see all of the graphics.  Under display properties to allow the resolution to be changed but that did not help at all.  Update the bios does not work either.  XP updates did nothing.  Using the restoration has not nothing changed either.

    Hi frozen,

    ·         You have installed the latest graphics drivers?

    ·         The resolution was earlier?

    ·         You did it change?

    Log on to the computer manufacturer website and update the last drivers graphic to verify the issue.

    See also:

    Microsoft Windows XP - change your screen resolution

Maybe you are looking for