How to return a query all the elements for an LOV if I select the "white point" (in this LOV)

Hello. In my application, I have a classic report where, in a region, I built a toolbar with three Popup LOVs which interact with the report. Each LOV displays different items and returns the value according to the selected item.

For example:

Popup LOV 1 named P33_DEPARTMENTS has the following components: production, development, projecting, ecc.

Popup LOV 2 named P33_LOCATIONS was the following: Europe, America, Asia, Africa, ecc.


Popup LOV 3 named P33_DEVICES has the following: printer, keyboard, mouse, monitor, ecc.


If I query the table to return the lines according to the selected in these LOVs I have something like this:


SELECT * FROM < table > WHERE the dep =: P33_DEPARTMENTS AND loc =: P33_LOCATIONS AND dev =: P33_DEVICES


Now I want that if the user selects all values (LOVs one white point) (or all), then the query must return all values for that LOV.

For example, if for the named LOV P33_DEPARTMENTS 'white' value is selected, then the query must return to the table lines this cointain values "production ' OR 'developing' OR 'project', ecc for the columns named"dep".

This means that must be the operator AND between LOVs but the operator or inside the LOV even, if the item is selected.


How is it possible? Thank you

SELECT *
FROM T
WHERE dep = nvl( :P33_DEPARTMENTS, dep)
  and loc = nvl( :P33_LOCATIONS, loc)
  and dev = nvl( :P33_DEVICES, loc)

You just need to ensure that, when no value is selected, the LOV will return a NULL value.

MK

Tags: Database

Similar Questions

  • How to get a program all the list of the names of the values in a registry key?

    Hello

    How to get a program all the list of the names of the values in a key of windows registry without having to configure the number of values in the key?

    Thank you & best regards

    Samuel J

    Hi Samuel,.

    you will get this info from "Query registry key Info.vi".

    Mike

  • How to return an iphone at the time where ordered by mistake?

    How to return an iphone at the time where he ordered by mistake?

    rblilbob wrote:

    How to return an iphone at the time where he ordered by mistake?

    Go back where you bought it from.

  • I use the capture tool. How dp I get rid of the white background in the photo already chiseled the part I. I just want the part chiseled with no experience at all? Any help, thanks

    I use the capture tool.   How dp I get rid of the white background in the photo already chiseled the part I. I just want the part chiseled with no experience at all?   Any help, thanks

    Although it seems to be a white border when you first fill the snip, after saving it shouldn't be present more.

    If the border remains you can remove by using the crop tool on a photo editing programs such as integrated Windows Paint program.

  • When you go on vacation, how can I temporarily stop all the emails?

    When you go on vacation, how can I temporarily stop all the emails?

    http://www.askdavetaylor.com/how_to_set_auto-reply_vacation_reply_msn_hotmail.html

  • How will I know where all the reports of users has access

    Hi gurus,

    We use the Hyperion Financial Reporting 9.3.1 & we have 80 reports & 750 users. How will I know where all the reports of users has access. Where can I find this information. I checked the SSP, it only shows the provisioing details, but not the name of the report. I also checked the Essbase.sec but no use. Where can I get the info. Kindly help me.


    Kind regards
    Kris...

    There is no tool of Hyperion to display easily groups and security filters.

    But it really depends on how you set up your security model.

    Normally, you add users into groups and assign these groups to essbase and reports (via the BEEP groups) cubes, so you can check reports have access to correct group and the users are in a good group.

    There is a security tool to export available here, hosted by Applied Olap, and underground work Olap-based:
    http://www.appliedolap.com/free-tools/Advanced-Security-Manager

    Best regards, Iain

  • lost all the restore points after the reinstatement of windows

    Original title: have just re-recorded windows software, now Ifind I lost all the restore points. How can I get the old one back?

    Windows has been registered online. Checked restore points after recording and found that the only listed restore point was created when the software has been registered. How can I find the previous restore points?

    If you reformatted and reinstalled windows, you will lose any restore points. Theyre gone

  • "All the data Points" option missing on totals

    In a specific workbook (Discoverer Desktop 10.1.2.2), when I go to edit or create a total for one of the worksheets Table, 'All the data Points' option is not there. I can always create sums, counts, etc. on the individual columns. I forget something obvious? There are some sets of circumstances where "All the data Points" would not be an option?

    Hello

    You will have only the option "All the data Points" when you create a new total if there is a data point in the report. Unlike a crosstab report where you can drag an item in the crosstab table to a data point, in the report of the table there is no way to tell Scout that a calculation is a data point.

    Items (including the calculated items) in a folder can be changed to be a data point by changing the property to default to "Data point" position using the administrator of the Disco. If you add a data point in the report, then 'All the data Points' option will be available.

    Also you can cheat discoverer by using a calculation as a data point using an aggregate function for example sum (case where student_grade like 'A%' then ends 1 0 otherwise), but discoverer will then use a group by in the query, and this can give you a different result.

    Rod West

  • Equium M50: green screen fuzzy and all the white bits are pink color

    Hello

    wonder if someone might be able to help as I have no idea. I have an m50 laptop computer witch has a fuzzy green screen and all the white bits are pink color.
    Hope some body can help me because I'll be very grateful.

    Hello

    I agree with Richard. Please contact your dealer or an authorized partner Toshiba. The addresses that you will find under http://www.csd.toshiba.com/cgi-bin/tais/su/su_gaspLocator.jsp?pf=true

  • I bought a presario cq43-412tu. all the operating system supports this laptop. ?

    I bought a presario cq43-412tu. all the operating system supports this laptop. ?

    Hello

    Do you not need to run all the operating systems on the machine? With the help of VMware or similar is the way to go, but with this card, you don't have much choice, you must upgrade first to 8 GB of RAM. It comes with FreeDOS, you need at least a host operating system in order to run the virtual machine.  At this point, Windows 7 Pro or Ultimate is the starting point.

    Good luck.

  • Report for all the mounting points on an OS(EP OPS) comments

    Hello everyone. A hope that someone knew a work around collecting that invited all support information for each operating system. I don't know if this would require a metric Super. But in the views when I select FileServer mount I have to specify the drive and drill down to use to get these statistics for each specific guest operating system. Our report will not look very good if need to add each frame for all Linux servers in the report. And then have an empty seat if the mount is not there on the specific guest operating system.

    Come on in "group by" and select the checkbox of the columns. Then go back to the metrics selector and select a metric which is instantiated (think "space GuestOS |") C:\").. It will add on to the right with an instance name. Click on the name of the instance and assign a group of metric, metric is the metric group that you just added. See attachment.

  • How to install and activate all my downloads for Adobe lightroom and cs6 design web premium

    How to install and activate all my downloads for Adobe lightroom and cs6 design web premium?

    Download and Installation Help-

    https://helpx.Adobe.com/download-install.html

  • How to print a file of the 8 page to this page after 2 follow 7, then 6-3-4-5?

    How to print a file of the 8 page to this page after 2 follow 7, then 6-3-4-5?

    Use file > print booklet and go through the settings.

    It's perhaps a bit of trial and error - also don't forget to check your printer for duplex printing options and the size and orientation of the page too.

  • How to call a query of the support bean?

    Hi all

    Another question for you guys:

    I did a page jspx with an entry form and a "submit" button.
    When I click the button submit, the action in my grain of support my_action is executed.
    This is the code:


    public BindingContainer {} getBindings()
    Return BindingContext.getCurrent () .getCurrentBindingsEntry ();
    }

    public String my_action() {}
    BindingContainer links = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("EmployeesView");
    Object result = operationBinding.execute ();
    If (! operationBinding.getErrors () .isEmpty ()) {}
    Returns a null value.
    }
    }

    I was hoping that the "EmployeesView" query has been run in this way, but I get the following exception:

    java.lang.ClassCastException: oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding cannot be cast to oracle.binding.OperationBinding


    So how should I run query EmployeesView?


    Second part of the question: what happens if I typed the name of the employee in my form, and I want to
    run a query that selects all employees with the same name?
    How to make a query with a variable as input in the WHERE clause?

    Thanks in advance.

    Published by: Facehugger on 7-apr-2010 11:15

    In this case use example 9-13, access to the Interface of Client Application Module in a JSF Backing Bean using a link of Action named:
    http://download.Oracle.com/docs/CD/E15523_01/Web.1111/b31974/bcservices.htm#sthref918

    So rather than get an operation binding - get you the pointer to the AM across the link - line 4.
    Then on the AM you can call the service method, or instead, use the findViewObject method to locate your specific VO, change and then run the query on the matter. Then, wrap everything in the VO.hasNext () and use the following method on your VO for the data lines.
    And then you are iterating over the lines of the VO and add them to any list/collection you pass to the BPEL.

    This video could help in terms of interaction with a VO and get the lines:
    http://www.YouTube.com/watch?v=bgawJD4yPeY&feature=youtube_gdata

  • How to return to firefox before the change?

    I hate this change, I liked the old firefox and none of my Add ons to work. How to return to the preceding her 9.0.1? I like things in a very particular way and it takes me a long time to get used to new things and it's scaring me.

    Follow the suggestions mentioned in the following articles:

    Check and tell if its working.

    -> Update all of your Firefox Plugins

    • https://www.Mozilla.org/en-us/pluginCheck/
    • During the installation of the Plugins download files hotfix, remove the check mark to download any other software options with your Plugins (for example, toolbars, McAfee, Google Chrome, etc.)
    • Restart Firefox

Maybe you are looking for