How to Create a Parameterized Report - The select "- ALL-" for department and manager not working.

I downloaded the OEHR Sample Objects application and followed the steps in Oracle® Application Express Advanced Tutorials
Release 3.2.
The parameters and report seem to be working correctly except when I enter "all" for department or manager I get no matching hits.
What's the most efficient way to retrieve "all" if the users selects all for dept and mgr - thus we'd want to return all records in the table.
Region snipprt
Enter Search
Search Employee
Dept
- ALL -
Administration
Marketing
Purchasing
Human Resources
Shipping
IT
Public Relations
Sales
Executive
Finance
Accounting
Treasury
Corporate Tax
Control And Credit
Shareholder Services
Benefits
Manufacturing
Construction
Contracting
Operations
IT Support
NOC
IT Helpdesk
Government Sales
Retail Sales
Recruiting
Payroll
Mgr
- ALL -
Steven King
Neena Kochhar
Lex De Haan
Alexander Hunold
Nancy Greenberg
Den Raphaely
Matthew Weiss
Adam Fripp
Payam Kaufling
Shanta Vollman
Kevin Mourgos
John Russell
Karen Partners
Alberto Errazuriz
Gerald Cambrault
Eleni Zlotkey
Michael Hartstein
Shelley Higgins
The following is the sql that was provided as part of the turitoral.
SELECT
   "OEHR_EMPLOYEES"."EMPLOYEE_ID" "EMPLOYEE_ID",
   "OEHR_EMPLOYEES"."FIRST_NAME" "FIRST_NAME",
   "OEHR_EMPLOYEES"."LAST_NAME" "LAST_NAME",
   "OEHR_EMPLOYEES"."EMAIL" "EMAIL",
   "OEHR_EMPLOYEES"."PHONE_NUMBER" "PHONE_NUMBER",
   "OEHR_EMPLOYEES"."HIRE_DATE" "HIRE_DATE",
   "OEHR_EMPLOYEES"."JOB_ID" "JOB_ID",
   "OEHR_EMPLOYEES"."SALARY" "SALARY",
   "OEHR_EMPLOYEES"."COMMISSION_PCT" "COMMISSION_PCT",
   "OEHR_EMPLOYEES"."MANAGER_ID" "MANAGER_ID",
   "OEHR_EMPLOYEES"."DEPARTMENT_ID" "DEPARTMENT_ID"
FROM
   "#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)

Hi,
Use this..
SELECT
   "OEHR_EMPLOYEES"."EMPLOYEE_ID" "EMPLOYEE_ID",
   "OEHR_EMPLOYEES"."FIRST_NAME" "FIRST_NAME",
   "OEHR_EMPLOYEES"."LAST_NAME" "LAST_NAME",
   "OEHR_EMPLOYEES"."EMAIL" "EMAIL",
   "OEHR_EMPLOYEES"."PHONE_NUMBER" "PHONE_NUMBER",
   "OEHR_EMPLOYEES"."HIRE_DATE" "HIRE_DATE",
   "OEHR_EMPLOYEES"."JOB_ID" "JOB_ID",
   "OEHR_EMPLOYEES"."SALARY" "SALARY",
   "OEHR_EMPLOYEES"."COMMISSION_PCT" "COMMISSION_PCT",
   "OEHR_EMPLOYEES"."MANAGER_ID" "MANAGER_ID",
   "OEHR_EMPLOYEES"."DEPARTMENT_ID" "DEPARTMENT_ID"
FROM
   "#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)

Similar Messages

  • My iphone 6plus not working not charge but when i run it the first time working half an hour  when you attempt to run it again light up thr screen and showws the apple logo and after the pice screen illuminates red and does not work what do i do now

    My iphone 6plus not working not charge but when i run it the first time working half an hour  when you attempt to run it again light up thr screen and showws the apple logo and after the pice screen illuminates red and does not work what do i do now

    Hello Nadersalah,
    It seems you're experiencing multiple issue with your iPhone. Based on the information you have provided, it appears your iPhone needs to be serviced. The following link should help you get started with the process and has links with additional information on topics such as warranty and service pricing, battery replacement, and express replacement service.
    iPhone Repair and Service - Apple Support
    Thank you for contributing to Apple Support Communities.
    Cheers,
    Bobby_D

  • My iphone5c is still under the 1 year warranty, the top button constantly sticks and does not work properly will Apple still replace my phone even though there is a few chips and scratches on the back?

    My iphone5c is still under the 1 year warranty, the top button constantly sticks and does not work properly will Apple still replace my phone even though there is a few chips and scratches on the back?

    As Peter says above, only an Apple Store genius can advise you.
    But to further clarify, you seem to postulate that if Apple helps you, the cure would be a replacement.  That is not necessarily true.  Let them look at it and advise you what the remedy is.  They may offer you nothing (saying it's your fault), or they may offer you a solution (keeping your current iPhone), or possibly a replacement.

  • When I try to purchase new app or update apps on iPad it tells me user name is disabled.  I have done all the "tricks" from the tech support on phone and still not working.

    When I try to purchase new app or update apps on iPad it tells me user name is disabled.  I have done all the "tricks" from the tech support on phone and still not working.

    Contact Apple Support
    https://expresslane.apple.com/GetproductgroupList.action
    Apple ID: "This Apple ID has been disabled for security reasons" alert appears
    http://support.apple.com/kb/ts2446
     Cheers, Tom

  • How to find out what are the interfaces used for Job and Job Codes

    HI All,
    I just wanted to know how do we find out what are the interfaces used for Job and Job codes .
    Thanks In Advance
    Sunny

    Hi,
    Here is an idea for your request.
    Basically you can create a simple query on multiprovider 0TCT_MC01.
    Filter: you can use a variable for restriction of time ( calday, or calmonth) since you should be interested for a time period.
    Choose following characters into your objects:
    InfoProvider ( 0TCTIFPROV )  - you can create a variable for choosing infoprovider before query runs.
    *Tp.[Type of BI Application Object] 0TCTBISOTYP  = filter this with 'QUERY' or whatever your need is.
    *BI Application Object 0TCTBISBOBJ,  ( this will give you the name of the queries)
    In key figures choose,  Count for BI Appl. (0TCTWTCOUNT).
    (number for query run)
    Create a condition , for top 20.
    Hope this helps.
    Derya

  • 'select all' in pages 'shapes' does not work

    When drawing 2-D floor plans using Pages / Shapes......the 'Select All' function does not work !
    I am uisng Mountain Lion, v 10.8.3
    Any help will be appreciated
    Thanks
    Sheldon

    Hi Sheldon,
    Is your document based on a Page Layout Template?
    In Pages, a floor plan is more suited to a Page Layout document (which mimics a drawing app) rather than a Word Processing document.
    Here is a document that I created with Template Chooser > Page Layout > Blank.
    I added some Shapes and Text Boxes.
    'Select All' (command a) selected everything:
    I hope this helps.
    Regards,
    Ian.

  • The built-in dictionary on my iPad only works with certain sites.  What do I need to do so that I can it all the time. (For example, it does not work when I read e-newspaper.)

    What do I need to do so that I can use the built-in dictionary all the time? My iPad 2's dictionary functions on Japanese e-newspapers but not on the Arizona Republic or other e-newspapers.

    Rikirannu wrote:
    My iPad 2's dictionary functions on Japanese e-newspapers but not on the Arizona Republic or other e-newspapers.
    Are you talking about the English dictionary?  Mine seems to work ok on the AZ republic web page.  Does yours not work on all webpages?  Does it not work when you type an English word in Notes and then do select and define?

  • LED for accessibility notifications does not work when the flash is turned off for the camera, LED for accessibility notifications does not work when the flash is turned off for the camera

    I use the LED notifications and the notifications weren't working. I found out when I had the flash off in the camera app, my LED notifications did not work.

    OK... so turn it on?

  • Regarding parameters in the selection module for Datasource

    Hi
    I created the datasource and selection module.
    Since the table parameters are no longer supported in the system ,i used changing parameters instead for selection module.
    But in the generated <b>call_select_function</b> it is still using the table parameters to call the selection module and raising an error 'parameter is not defined' error
    Please let me know how can i resolve this issue
    Regards
    Leon

    Dear Leon,
    I hope this earlier posting will be of some help...
    Steps for Creating DataSource based on Function Module
    <b>Tables Tab:</b>
    ============
    i) Parameter Name = I_T_SELECT; Associated Type = SRSC_S_IF_SIMPLE-T_SELECT
    ii) Parameter Name = I_T_FIELDS; Associated Type = SRSC_S_IF_SIMPLE-T_FIELDS
    iii) Parameter Name = E_T_DATA; Associated Type = 'Like your extract structure'
    Please NOTE: Please make sure that you have a tick on 'Optional' for all of the above. Also 'Type Specification' for E_T_DATA will be 'LIKE' but for the other two it will be 'TYPE'.
    ==========
    When I try to change the E_T_DATA table parameter to my structure,
    I receive message FL069 "TABLES parameters are obsolete!".
    Have you encountered this problem ?
    ==============================
    I could not exit the tables tab once the warning message was displayed.
    <b>However, I have since discovered that you don't need to specify the type spec and the associated type at all.
    You can just leave them blank and only specify E_T_DATA in the Parameter Name.
    The extractor seems to work just fine.</b>
    Refer the below weblog by Siggi...
    /people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
    Regards, ABY

  • How to create planned order from the sales order for a processing item

    In the MTO sceanrio, assembly order is created directly from the sales order. I would like to create a planned order from the sales order.
    I tried the Planning strategy group 81 in the material master but it didnt work.
    Could you please let me know how to do it? Is it Schedule line config that controls whether planned order is created?
    Thanks
    Harish

    Narayana,
    Planning strategy 82 is the best & standard way of getting production order created on sale order create.
    just assign this strategy  in MRP 3 view under strategy group.
    If not then using sale order reqt type ( KMFA- Assembly with production order) & assigning this to your sale order item category is also another way to create prodcution order without using planning strategy in material master.
    Follow steps in SPRO-->Sales & dist --> basic functions >avail check &transfer of requirements> transfer reqts-->determination of reqt type using transaction
    Here you may select the item category you in sale orders & assign KMFA to your item category. this will then give option in sale order create to change reqt type to KFMA for assebly orders.
    If you need KFMA to be default assign it to Item cat/ MRP type ( PD) combo.
    Regards
    Ritesh

  • How to create own functions in the decision maker for process chains?

    I need a further function which is not already implemented and available in the decision maker of the process chains. But I do not know how to implement a new function.
    Please give me some help!!!!!

    What does the new function need to do?
    You may have to create a new process type.  There are a few white papers and blogs about different ways of doing this.  Needs ABAP knowledge however.
    matt

  • How to create a FSV with the text groups in spabish and English

    Hi gurus,
    could you help me with a issue. I want to know where i can add the text in english in the groups of the fse2 , because i have tha configuration with spanish text but when i execute the f.01 with the language EN the system do not give text in English. So could you help me?
    best regards!

    I just tried it with our FSV, system language is EN and i executed the report in DE. I could see german texts but not on the FS items.
    I dont know, if that is possible because these are custom texts/input fields from you as compared to the system text converted to the required language on the report header and other layout fields
    If you want the FS items to also show text in 2 languages, i recommend creating another FSV in the alternate language and using it.

  • Cleartune has updates available, but I keep getting a message saying "cannot connect to Itunes store"  all other updates work just fine?  The one app I paid for is the one that for some reason will not work.  How can I upgrade without buying it again?

    I loaded cleartune a while back, there are upgrades/updates available, which I'm trying to load.  When I choose update, it asks for my password, which I provide and I get a message saying "cannot connect to Itunes store"  I have many other apps I've loaded and upgraded just fine.  However this one, the one I actually wanted bad enough to pay for, is wanting me to delete it and buy another copy.  How can I update Cleartune without buying it again? 

    Hi all,
    This is a very interesting situation. I did try to update one of my apps within itunes as was suggested. That worked !!
    But then I noticed that I had 2 different logins that I must have created over the years. I almost forgot. I have a apple ID and an AOL ID. It seems that I purchased (actually they are all free) some apps with one ID and other apps with the other ID. I must have done this by accident.
    So when I log out of one of the IDs on my Touch and then log in with the other ID, I can update the apps.
    It seems that something changed on Apple's servers. It seems that until recently I was able to update free apps regardless of what ID I originally bought them with. Now it seems that's not the case. Apple must check this now.
    Now that I know what the issue is, I'll make sure I use one ID all the time.
    Thanks,
    Steve

  • How to create custom images c.war, similar to i.war.  --context not working

    ORDS beta 3.0..65.09.31
    I am trying to create a custom images c.war file, similar to the way one creates the i.war file for the APEX satic images.
    The directions say:
    java -jar ords.war static [--context] <location>
    Options:
               [--context]           The context path at which the
                                     WAR will be deployed,
                                     defaults to: /i
    Arguments:
               <location>            The location where the Oracle
                                     Application Express static
                                     resources are stored
    but I have yet to find any combination of syntax that will give me a war that maps to /c instead of /i, the default.
    For example:
    C:\oracle\ords3.0.0.65.09.31>java -jar ords.war static --context /c   C:\oracle\custom_htmldb
    WAR Generation complete
    WAR location     : C:\oracle\ords3.0.0.65.09.31\i.war
    Context path     : /i
    Static resources : C:\oracle\custom_htmldb
    Ensure the static resources are available at path: C:\oracle\custom_htmldb
    on the server where the WAR is deployed
    and
    C:\oracle\ords3.0.0.65.09.31>java -jar ords.war static --/c   C:\oracle\custom_ht
    mldb
    java -jar ords.war static [--context] <location>
    Options:
               [--context]           The context path at which the
                                     WAR will be deployed,
                                     defaults to: /i
    Arguments:
               <location>            The location where the Oracle
                                     Application Express static
                                     resources are stored
    --/c is not a valid option
    and variations using quotes and single quotes - all result in the same, either /i gets mapped or I get the directions again/
    This has to be something really simple.
    Please help!
    Thank you

    hi Jose,
    thanks for your answers, i tried to emulate the same but during step create time constraint in OOVK i am getting an error below:
    Specify the key within the work area
    Message no. SV033
    Diagnosis
    You have attempted to create an entry whose key is not in the range defined for this area.
    System Response
    The entry cannot be created.
    Procedure
    Please check your entry.
    below are the steps i executed upto now.
    Create infotype smilar to IT 1001 (ppci)
    Created new object type (ooot)
    created new relationship along with allowed relationship (oovk)
    Do you have any idea where it went wrong?
    Mani

  • Select All in a table does not work for Drag and Drop

    Hi. I am using Jdeveloper 11.1.1.2 but have also reproduced in 11.1.1.3.
    I am trying to implement drag and drop rows from one table to another. Everything works fine except when I do a Select All (ctrl-A) in a table, the table visually looks like all rows are selected, but when I try to click on one of the selected rows to drag to the other table, only the row I click on is dragged.
    I tried setting Range Size -1, fetch mode to FETCH_ALL, content delivery to "immediate" but nothing works.
    I even have reproduced not using a view object but just a List of beans with only 5 or 10 beans showing in the table.
    Does anyone know how to get Select All to work for a Drag Source?
    Thanks.
    -Ed

    Frank-
    OK, thanks for looking into that. I also submitted this service request, which includes a simple sample app to demonstrate the problem:
    SR #3-2387481211: ADF Drag and Drop does not work for rows in table using Select All
    Thanks again for the reply.
    -Ed

Maybe you are looking for