Display values in LOV by one and addition of choice for all

Hello

How can I add to values of the shape parameter of Runtime (RPF) of each record as well as the option for all records. Below, I describe my problem more in detail.

Here is a picture of what I want
[Photo of LOV | http://img201.imageshack.us/img201/7974/captureq.png]

To be clear lets say we have employee table:

Nr. Name
--------------
1. Joe
2. To get married
3. Sam
4. Steve
5. Jack

In order to add all employees to the list of values simply write us: "SELECT Nr OF THE employee. Then our RPF would contain the following entries in the drop-down list box:

1
2
3
4
5

But I also want to add the option for 'ALL', so my RPF should contain:

ALL THE
1
2
3
4
5

I know that this can be done by using the UNION somehow, but I just can not understand.

Thanks for the help in advance.

You can adjust your where to handle the special value, as

Select nr, name from employee where name = DECODE(:parameter, '-1', name, :parameter)

Tags: Oracle Development

Similar Questions

  • display value inactive LOV / add value

    Hello friends...

    I need your support to fix this LOV...

    I have a lookup table (where I can mark some values as active and inactive). If I mark an inactive lookup value, but it is already associated with a record. Now if I open this file (which the idle value is associated with), how to display the current value inactive in the lov (because current LOV brings only active values)? At this point, I see an empty value selected...

    Example:

    Table: Used-column: empid and emptype
    Table of correspondence: emptype - column: emptypeid, descr, isactive

    emptyp Vo view criteria to select only active emptypes

    -----------------
    Employee information:
    EmpID - 1and emptype - 2


    LookupTable data:
    emptypeid-2 descr-test isactive-N
    emptypeid-3 descr-test1 isactive.-y.
    ----------------

    If I open the page for employeeid = 1... I see current lov value as empty (because of unique active emptypes of selects the criteria from the VO)
    How to display the value all the assets of table of correspondence and the current value that is marked as inactive...?

    In the VO Source for LOV "Lookuptable", you would use a standard of display to filter active records.
    In addition to him, create an additional condition with 'OR' clause of the attribute "emptype' with a link named 'BindEmpType' variable that can be changed.
    This can be used so that the current record can also be added to the active list.

    In the 'employee' VO, go to the view tab accessors and open view accessor that you created for the LOV and shuttle the VC created above.
    For BindVariable 'BindEmpType', simply specify the name attribute of the emptype in employee VO - in order to transmit the record of the current line to the VC.
    This would ensure that the current record is also added to the list of records for LOV, if the current type of emp is inactive.

    Thank you
    Nini

  • How spacify display value in LOV

    Dear friends,

    I want to create of LOV, but the problem is how can I spacify a column display value and return value that SQL query.
    select executable_name, object_id, object_type
    from object_mas
    where nvl(object_type,'X') = 'F'
    union
    select
    rep_name executable_name, to_char(rep_num) object_id, 'R' object_type
    from rep
    order by 3,1
    I want to here executable_name column must be return value and the display value.

    How can I do this?


    Thank you

    Hello

    Try to change your query to:

    Select executable_name d, executable_name r
    Of
    (
    Select executable_name, object_id, object_type
    of object_mas
    where nvl (object_type, 'X') = 'F'
    Union
    Select
    rep_name executable_name, to_char (rep_num) object_id, 'R' object_type
    the rep
    3.1 order
    )

    See you soon,.
    JAS

  • By default the favorite and update bookmarks later for all users

    Hello.
    I run FF 31.2.0 ESR and I'm looking for a way to define some default bookmarks for all existing and new users. And if necessary, I want to update in the future.
    And I want that users can customize their bookmarks. But a few (about 5) bookmarks/links should be for the admin editible where the link changes.
    Someone at - it an idea? How can I do? Is it possible to create a 'public' bookmarks file with these 5 links, which will be imported at each start of FF and merge to the list of bookmarks private profilebased?

    See:

  • 1215 HPpsc all-in-one and only may not cancel all print jobs no matter what I do.

    One of the jobs only says: this is the removal, but he can't seem to get rid of employment, which stands everything up.  I tried everything I can think of to delete.  All ideas are welcome.

    Thank you very much.  I managed to do the sort of follow a few instructions on the site, or uninstall and reinstall.  Thanks again.

  • All-in-One 200-5200t: adding RAM for all-in - One 200-5200t

    Hello, currently my all-in - One 200-5200t has 4 GB of RAM, but I want to upgrade to 16 GB. What kind of RAM would need and what would be the maximum amount that I can put in the computer?

    @NinjaSponge, welcome to the forum.

    Here is the memory upgrade information for the computer:

    Upgrade memory information:

  • I was on the site of the Bank of talents of Michigan for unemployment before and now it will not open... I emptied my story and scanned my laptop for all problems and all out ok. But if I use aol it will load the page very well.

    I've been on this site before on FireFox and now it will not load. But all other websites work fine.

    https://www.michworks.org/MTB/user/MTB_EMPL.EntryMainPage

    No problem here with Firefox 3.6.13 under WinXP.

    You have this problem when running in Firefox SafeMode?

    http://support.Mozilla.com/en-us/KB/safe+mode

    Do not choose anything at the moment, just use 'continue in safe mode.

    If this is not the case, see this:

    http://support.Mozilla.com/en-us/KB/troubleshooting+extensions+and+theme...

  • How to invoke the export and import of orders for all tables of pl/sql code?

    I want to export a few (not entire schema) tables from one database to another. But I want to run as a PL/SQL package so that I can call it from an application server. So my question is...

    How to call a tax / export commands from pl/sql code (SP or packaging) so that I can call these (SP or packaging) as a JDBC application server call?

    Krishna_Architect wrote:

    I want to export a few (not entire schema) tables from one database to another. But I want to run as a PL/SQL package so that I can call it from an application server. So my question is...

    How to call a tax / export commands from pl/sql code (SP or packaging) so that I can call these (SP or packaging) as a JDBC application server call?

    When all else fails, read the Fine

    The API data pump

  • Problem LOV... Turning the display value and no key-value

    Hello. Sorry for my bad English.

    I have a problem with LOV dynamic pop up.

    I have a simple form called nom_element and item_code containing the form A. users can create, update, and delete a new item using this form.
    Another form called form B has a field called item_code item_code is a dynamic field of LOV pop up and a request for this LOV is like that;

    Select nom_element d, r from item_master by item_code item_code;

    When I create the new record in the form B and LOV allows to find and get the item code, LOV works very well
    and he returns the key value in the field of item_code.
    But when I try to update the record (I have a link to the page of the form B), item_code field value is not the key-value of LOV, but is a
    Display value of LOV.

    Any ideas?

    Thank you.

    Hello:

    If you want to display the key value, and then create a new field that can be a test field or a tabled text (display only) and assign the value of the column of the reporrt link or just the column as it appeas in the database.

    If you use the form at the same time create and view, you might want to do this new field, but also your LOV field as conditional.

    Bruce

  • How can I delete all emails read without highlighting each one and delete it

    Original title: how to remove the old E-mail

    How can I delete all emails read without highlighting each one and remove it.  You want to remove them all at once.  I use Windows 7 and Windows Live Mail 2011

    To remove all the: select one and Ctrl + A will highlight all. -Delete.

    To delete a section: highlight the first one you want to remove. Scroll to last and click while holding down the SHIFT key. -Delete.

    To delete several messages that alternate: hold down the CTRL key while you click each message in order to highlight. -Delete.

    To empty the remove items, click on it and there will be an X to the right.

    SHIFT + DELETE bypasses the deleted items folder.

  • Display the default icons for all users who connect

    How can I view documents of the user, computer, network, and recycle bin icons for all users in the domain who connect?

    As journal of domain in a PC users, I want the icons is displayed as a default without having to add icons and customize the desktop.

    Hello
     
     
    As Microsoft Answers is oriented towards the level of consumer support, and since you are on a domain network, it would be preferable to view the query in the Microsoft Technet Server forums.
    http://social.technet.Microsoft.com/forums/Windows/en-us/home
     
     
    If you have other issues with the Windows operating system, please and we will be happy to help you.
  • possible to have a display value and the return of LOV

    Hello

    With the help of obiee 11g, I have a variable prompt that takes column as value.
    I have the report that I use a diff column eual to this prompt value.
    I wanted to know if its possible at all to have a view and a return value
    i.e. in the lov, we show a value and when we choose we choose a different value that goes to the filter

    For example. If we have an APAC region in the table, and then in the show LOV in Asia-Pacific and it returns APAC, so that
    in the data filter gets filtered using ICCA.

    Thank you

    You can try something like this sql in the Prompt Variable:
    SELECT CASE WHEN Office.Region = "ACPA" THEN 'Asia-Pacific' WHERE Office.Region = END 'EMEA' THEN 'EUROPE' TO THE "subject domain name.

    And then in the report so you need to change the column fx filter
    CASE WHEN Office.Region = "ACPA" THEN 'Asia-Pacific' WHERE Office.Region = END 'EMEA' THEN 'EUROPE '.

    Note: This is very good for the case where you have less no.. of LOVs in the column.

    Hope it will be useful...

  • Add the value of point two apex and display the result in another part of the apex

    Hello

    I need to make the addition of the two item values using apex.item.text and find the result in another apex.item.text.

    For example:
    SELECT
    apex_item. Text(1,null) ONE
    apex_item. Text(2,null) TWO
    apex_item. Text(3,null) RESULT
    FROM EMP
    please suggest me

    Thank you
    Sudhir

    >
    No it does not add the two values in the column, user key to enter the value, it must add the value of the item and displays the result in a dynamic way. Need a suggestion for using javascript
    >
    This requirement was not not clear in the op.

    See the demo of Denes Kubicek.

    This topic is discussed far too often. Have you tried to Oracle Application Express (APEX) and adapting one of the many examples of LoV cascading to your situation?

    See you soon,.

    PS: Tip:
    Look for the p_item_id and p_attributes of the APEX_ITEM API parameters.
    You can call JS functions for example using p_attribute

    APEX_ITEM.TEXT(...
    p_attributes => 'onchange="doTotal(this);"', /* doTotal being your JS Function */
    ...
    

    Published by: Dominic August 16, 2012 11:52

  • Need help on automatically display values LOV

    The current functionality - user clicks on the icon of the lov lov screen opens and the user should click on 'Go' and displays the values of lov
    The features you want - the lov icon is clicked, lov screen opens with the displayed values. The user must NOT push the button 'Go '.
    Gurus of the OFA - please let know us how this desired features can be achieved
    Thank you
    Julius

    Hello

    There is only one way to do this...

    While the page is loading in process request, just put the text in LOV entry '% '.

    OAMessagelovInputBean lov = (OAMessagelovInputBean) webBean.findIndexedChildRecursive ("lovid");
    If (lov! = null)
    {
    lov.setText(pageContext,"%"); "
    }

    Thus, when you open the lOV now it will display all values.

    Thank you
    Gerard

  • How can I display the display value for an element of lov in another area

    My page has a few elements that allow the user to select specific criteria for their report.
    pn_person - select point based on lov. Lov shows the name of the person and returns the code of the person in pn_person

    When the user has made their choice, they press a button that the report is generated.

    I want to do is show the display value for one of the search fields in the title of the report (for example, person_name) region. I think to do that I need to create a (hidden) pn_person_name point, then I put & pn_person_name. as a region

    However, how can I get the value of pn_person in pn_person_name display?

    I thought that apex_item.text_from_lov, but don't know how to use it - what elements (types), the calculations / process I need to create...

    THX Caron

    Published by: user11267129 on January 7, 2010 15:01

    Published by: user11267129 on January 7, 2010 15:02

    Published by: user11267129 on January 7, 2010 15:02

    Caron:

    You can use javascript to set the value of 'pn_person_name' to display the LOV selection value.
    Set the form field HTML to the elements attributes for the element of selection as list page

    onchange=$s('PN_PERSON_NAME',this.options[this.selectedIndex].text)
    

    CITY

    Published by: city has on January 7, 2010 17:22

Maybe you are looking for