LOV SQL: How to configure a selection list to get all the records

Hello

I use Oracle 10 g with APEX 2.0.

Here's my question:

I have a report and I use 3 text fields and a selection list to search in a join of two tables. The selection list is composed of a "list of values" and the parameter is used in the SQL sentence, has a numerical value.

Table of results after the join operation looks like this:
Field1 Field2 Field3 Field4 (assuming that the field3 is used in the select list).
21 has this NL 1000
21 bis as 1001-vb
33 so 1012 ct

What I want to do is put another pair of the value of the parameter in the select list to let the user choose the "ALL" items mentioned in the selection list, so that the search returns all records without taking this select list-field into account.

Is it possible to do it with SQL and LOV? Do I need other functions? or configurations?

Thanks in advance,

Sedef

Hi user630478!

I always use a selection with submit list and the option to get a NULL value for such things. To solve your problem do the following:

1.) create two named LOVs. As you have already done and another for all values.
2.) to submit your selection list must be configured to display a NULL value e.g. it shows EVERYTHING with the value 0.
3.) create two conditional branches that work with your selection list. Which show normal results, if a user has clicked on a normal value and the second should act only if a user has clicked on the WHOLE.
4.) write a process triggering the LOVs in your selection from one to the other list. This process should only be fired if the second conditional branch has been activated.

As I understand it that's maybe what you want to know.

Yours sincerely

Tags: Database

Similar Questions

  • I use LRM6 with Win7.  Cannot display all of the subfolders on external drive with photos.  Can't see most recent used folders.  How can I get all the records to display in the tree when the library module?

    I use LRM6 with Win7.  Cannot display all of the subfolders on external drive with photos.  Can't see most recent used folders.  How can I get all the records to display in the tree when the library module?

    Syrup72 wrote:

    Why I see pictures when I click on the tab all the photos above, which do not show in the tree on the G: drive?

    DSC_2429 is in the shown locaton and present in all the Photos, but there is no folder "Tulsa"... "in the tree.

    The left pane is a "choose one". "All photos" are just that. 'G' is a different option.

    Lightroom is not a file Explorer. He knows only the drives and files that you have imported the photos of. If LR shows not all of the photos that are on your hard drive, it is because you did not import all photos.

    If LR shows you a photo in "all photos" but do not show it in the folder you think he is in, go to "all photos", select the image, right click "view in the library folder. This will show you where LR think the picture is.

  • I created signatures and look OK in preferences, but I can't use them.  It worked once, but I don't know how or why.  I don't get all the dialog boxes.

    I created signatures and look OK in preferences, but I can't use them.  It worked once, but I don't know how or why.  I don't get all the dialog boxes.

    Thank you.  I read the article you quoted, as well as others, several

    times.  Creation has been problem free.

    My problem is that AID has never said, that I could find, HELP or

    TIP to search for a tool called certificates.  I searched,

    Signatures, Signatures Digital and many others but they lead no where.

    I think that HELP need HELP.

  • If I create a second account (different) Zotero on the same PC, how can I configure it's empty without destroying all the records in the other account?

    I have long had a Zotero account and it works fine. I recently merged in a group with a few other people into account; We share the same set of references. Now I want to set up a personal account for different purposes, perhaps becoming a different group. When I try to set up the new user name and password, the same reference shows always. How can I start with an empty account for the new user name without clear items from the old account?

    I know Zotero and just the second jscher2000 tips - if you want to actually different accounts, you must use separate profiles of FF.

    The integrated solution for Zotero is to use groups for sharing of resources between people
    www.Zotero.org/groups/
    And have your own resources in a different group or in 'my library '.

  • How to make a loop through a list to get all the SelectedItems?

    Here is my code, but the loop is to return all items (items selected and deselected no)

    lstMarks in my ListBox.
    var markslist:String;

    for (var i: int = 0; i < marks.length; i ++) {}
    markslist = & markslist = ', ' + lstMarks.selectedItem.mymarks;
    Text1. Text = markslist;
    }

    If anyone can help. I need to get only the selecteditems in the comma delimited by the string.

    THX

    The forum feeds Media table unless you put spaces around them. Try:
    marksList is marksList + selectedMarks [i] .mymarks;.

    Tracy

  • How to get all the records for each group - double

    Hi all

    I have developed customized reports, I have a three for each group, the first group is for PO number and the second is for line number Po and the third is for activity ID.


    Today the third group is based on the activity ID.

    Some time the activity id is unique and other data are different. If at this time its settlement only one record.

    For example

    Date of activity Id

    1 25 - Jan

    1 26 - Jan



    Its single record display.

    Can someone tell me how to avoid this separate for each group.

    Thanks and greetings
    Srikkanth.M

    As another user said, delete syntax regroup.
    Why do you bring here?

  • How can I delete a partition and get all the free space?

    I have a partition on my computer, Local C drive and the Local disk D.  C drive is extremely low, free space and disk D is very high with free space. I am trying to delete the partition and have all the free space from D to C. is there someone who can help me maybe?  It would be greatly appreciated!

    Download the free Easeus Partition Master of http://www.easeus.com .  Keep in mind that there may be files on D: to restore factory settings, so do not delete if this is the case.

    I hope this helps.  Good luck.

  • How to filter a selection list

    I have several lists of selection.  All have FKs in the parent table.  The relationship of the tables is the following:

    BLDG - < ROOMS - < LOCATIONS - < POSITIONS

    ROOMS have a FK to buildings, PLACES a FK to ROOMS and POSITIONED a CF for LOCATIONS

    I have a form where the user will enter their selection for each attribute, and I want the ROOM list only see the room in the selected building, LOCATIONS in the ROOM chosen, etc.

    The selection list is defined as:

    Select room_number d, room_id r

    ROOMS

    where bldg._id =: P2_BLDG_ID

    P2 is the page where the user enters data.  All lists, follow the above format and the corresponding value of FK.

    When I test data entry any of the lists to return all data.  I guess that's because the corresponding value of the page has the value null when the page opens, and the list is not updated when the user makes the corresponding selection.  How can I get APEX to fill the lists once the user makes a selection of the corresponding value of parent?

    2785699 wrote:

    I have several lists of selection.  All have FKs in the parent table.  The relationship of the tables is the following:

    BLDG-<><><>

    ROOMS have a FK to buildings, PLACES a FK to ROOMS and POSITIONED a CF for LOCATIONS

    I have a form where the user will enter their selection for each attribute, and I want the ROOM list only see the room in the selected building, LOCATIONS in the ROOM chosen, etc.

    The selection list is defined as:

    Select room_number d, room_id r

    ROOMS

    where bldg._id =: P2_BLDG_ID

    P2 is the page where the user enters data.  All lists, follow the above format and the corresponding value of FK.

    When I test data entry any of the lists to return all data.  I guess that's because the corresponding value of the page has the value null when the page opens, and the list is not updated when the user makes the corresponding selection.  How can I get APEX to fill the lists once the user makes a selection of the corresponding value of parent?

    Cascading selection lists are covered in the documentation.

  • How can I create a list of choices for the search bit in Oracle 11g ADF fields?

    Hi Experts,

    Please inform how to add some selection list or drop downs on the pane search Oracle 11g ADF.

    I have a requirement to create a list of choices for the search store field. # Please notify.

    SS_SearchCriteriaPage1.png

    Thank you

    David Selvaraj

    You can create a view based on a static list object and attach it to your attribute as lov-driven model.

    Dario

  • How do I get all the SQL executed by my session?

    How do I get all the SQL executed by my session?

    Published by: user11300376 on 01/28/2013 11:27

    user11300376 wrote:
    I had tried, brings itself however only select table v $ session.

    Executed orders:

    SELECT * FROM MBS_ITEM;

    SELECT b.sql_id, b.sql_text
    SESSION $ v a, v$ sql b
    WHERE a.sql_id = b.sql_id;

    The output result:

    SQL_ID SQL_TEXT
    1 4qg3bft0w37rt SELECT b.sql_id, b.sql_text FROM session $ v a, v$ sql b WHERE a.sql_id = b.sql_

    The listed application is good, but does not limit the output of your session - it should return data from all sessions.

    You must add an AND condition in the WHERE clause to limit your session. You can try this (untested)

     where audsid=(select userenv('sessionid') from dual);
    

    You can also perform a SQL trace and tkprof to obtain data to SQL executed the trace start and end of the trace.

  • How to configure CPU Meter so that it displays the image instead of the text version.

    How to configure CPU Meter so that it displays the image instead of the text version.

    Hi John,.

    Welcome to the Microsoft community.

    The CPU Meter gadget shows the status of the two main resources, you can follow on your computer - the use of your CPU and memory.

    To install the CPU Meter gadget in Windows 7, just right click anywhere on your desktop and click on Gadgets. Search the CPU Meter gadget and drag it to your desktop.

    See the Microsoft Article below and check if this is useful:

    http://Windows.Microsoft.com/en-us/Windows7/customize-desktop-gadgets

    Let us know if you encounter problems under windows in the future. We will be happy to help you.

  • Is it possible to create a shuttle component in Oracle ADF, where the available and selected lists are tables of the adf?

    Hi all


    We use JDeveloper Studio Edition Version 12.1.3.0.0 and deployed on GlassFish Server Open Source Edition 3.1.2.2 (build 5) and connect to the SQLServer database.


    Is it possible to create a shuttle component in Oracle ADF, where the available and selected lists are tables of the adf?



    I did a POC sample on it. I can share with you. I can't put in my dropbox because dropbox is blocked in my network. Share your email. I'll send the POC through

  • How can I get all the ID of SQL the same SQL literals change?

    My SQL statement is the same throughout, but only changing the literals, and therefore the SQL ID, i.e. SQL ID change also. How can I get all the SQL ID this SQL?

    Hello

    the FORCE_MATCHING_SIGNATURE column is also entered in the ASH / historical AWR views V$ ACTIVE_SESSION_HISTORY / DBA_HIST_ACTIVE_SESS_HISTORY / DBA_HIST_SQLSTAT.

    .. and after all, you can join these views as described with DBA_HIST_SQLTEXT, if necessary.

    DBA_HIST_SQLTEXT displays the text of SQL statements belonging to shared SQL cursors captured in the repository of the workload. This perspective captures information from V$ SQL and is used with the DBA_HIST_SQLSTAT view.

    Concerning

    Stefan

    P.S.: AWR is only based on the captured of course SQLs.

  • How to get all the fonts in the paragraph?

    Hi all

    Especially in Indesign Javascript list how to get all the fonts section (without a loop in each character).  For example, I used "Minion Pro" to the first character and all other characters are "Zapf Dingbats" fonts. I use code below to get the paragraph font. But it shows only first typeface. If multiple fonts are used for including the paragraph then I need all the list fonts or result "undefined".

    var myPara = app.selection [0] .paragraphs [0];

    Alert (myPara.appliedFont.FontFamily);

    Thank you and best regards,

    Robert S

    var myPara = app.selection [0] .paragraphs [0];

    Alert (myPara.textStyleRanges.everyItem (.appliedFont));

  • How to upgrade all the record for a particular column in a table based on search criteria.

    Hi all

    I'm new to ADF. I have a requirement where I have to perform the update of mass on a table.

    Scenario:

    Ex: I have a search region manual dept. where I search with deptId: 20. I get 20 records in my table. now I have another area where I have an inputchoice list that contains all the column names that exist in the dept table. Beside that, I have a text box and a button update

    The user now, first research with dept id: 20 and click on the button Search, where it shows 20 record in the table. He then select an input choicelist(ex: ManagerId) column, then enter the new value in the decision-making box(ex: abc) then click on the button update.

    Now, I want to, all the records in the ManagerId column with dept id: 20 update with the new value 'abc '.

    Can someone help me with the code.

    Thanks in advance...

    Hello

    If you go to your VO and generate the ViewObjectImpl, here you can create a method that contains two parameters, 1 the name attribute and 2 the value.

    Then you can follow something as explained in this post:

    ADF tutorial: how to apply actions in bulk to a view object lines

    The only difference is that you must create a method like this:

    ' Public Sub updateAttribute (attribute String, Integer value) {}

    RowSetIterator iter = createRowSetIterator (null);

    While (iter.hasNext ()) {}

    Line = iter.next ();

    row.setAttribute (attribute, value);

    }

    }

    Then execute you who expose a customer interface and then after you filter your table according to your criteria just this method passing the correct parameters.

    Concerning

Maybe you are looking for