LOV display value

Hello

I have a master/detail report. Here's the SQL for the part in detail:

SELECT ROLE_TYPE, COLA, COLB
FROM USER_ROLE
WHERE USER_ID = :P1_USER_ID
The user can have several role and so many records in the table USER_ROLE. I use a select list for one of the elements, based on a named LOV dynamics. I want to exclude role values that already exist for the particular user, identified by the report in detail query. The ROLE_TYPES table is just a lookup table with a role and description code.


ROLE_TYPES_LOV:
select ROLE_TYPE_DESC display_value, ROLE_TYPE return_value 
from ROLE_TYPES
where role_type not in (select role_type from user_role where user_id = :P1_USER_ID)
order by 1
This excludes the values that already exist for the user, which is what I want. The problem is that (ROLE_TYPE_DESC) descriptions are given for the 'other' values, but the ROLE_TYPE (or ID) is indicated for the value in this table USER_ROLE record.

I get something like this:

Administration
Read-only
MGR

When the MGR role exists in the USER_ROLE table for the particular user.

I tried to use the various features of apex_item without success.

Any suggestions?

Thank you
Matt

Hello

Go to the LOVs which have this problem. In the section change display additional values on No.LOV. It should be fixed.

Answer this based on your first post... no changes you can do since.

Mike

Tags: Database

Similar Questions

  • Presentation tabular popup lov display value erased during validation

    Hello Infantraj and Jitendra

    I have exactly the same problem as in your discussion here

    Presentation tabular popup lov display value erased during validation

    Could you please share what was the solution?

    Hi Mark,

    Just follow the steps described in the blog (Cluttermeleon: Oracle APEX - descriptions of disappearing Popup LOV key) which is given in the thread. Instead of Java script that is at the page level using

    function get_LOV_value (pLOV, pId) {}

    If (pId! = ") {}

    get var = new htmldb_Get (null, $v ('pFlowId'), 'APPLICATION_PROCESS is get_LOV_value', 0);

    get.addParam('x01',pLOV);

    get.addParam('x01',pId);

    Return get.get ();

    }

    }

    Thank you

    Infant Raj

  • Copy the LOVs display value to something else

    Hello

    I have: 1. two elements: P1_ID, P1_NAME and both are in the same form.
    2 P1_ID is a dynamic LOV witch popup displays the value of name (string, P1_NAME) and return the value of the id (number).

    I need: * 3. To copy the value of the item display P1_ID to P1_NAME. Can someone help me with this? Should I choose a different approach better then JS? *


    I tried with * $s (pNd, pValue, pDisplayValue) * but I only get the return value of P1_ID. I don't know how to get and use the pDisplayValue

    < script type = "text/javascript" >
    function getVal (NDP)
    {return ($v (NDP)! = "")? parseFloat ($v (NDP)): 0 ;}}

    function setvn()
    {$s ('P1_NAME', getVal ('P1_ID')) ;}}

    < /script >

    The JS is called from P1_ID: HTML attribute: onchange = "setvn (); »

    Thank you

    Hi 965374,

    create a dynamic action on the event change on the P1_ID. real action point should be set the value:
    -Set the Type = Expression JavaScript
    -JavaScript Expression = $('#P1_ID').val)
    -Selection Type = item (s)
    -Selection Type item (s) = P1_NAME

    Or you can do it with execution of JS Code and writing code:
    $s ("P1_NAME", $('#P1_ID').val ());

    BR,
    Marko Goricki
    ---------
    http://apexbyg.blogspot.com/

  • lov display value should extract in sub form of another column

    Hello

    I have a lov column in a table. After lovs return a value, I want to fetch value display (name) in another column of the same tabular form without refreshing the page.


    for example my lov is
    SELECT NAME AS DISPLAY_VALUE, CODE  AS RETURN_VALUE FROM MONUMENT_MAS
    When I choose lov value, the name should be display to another column of tabular form


    Thanks and greetings
    CORINE

    Published by: Sophie on July 25, 2012 05:03

    Hello

    Interesting case... I check this more in my own work space.

    But I didn't change your process on request as below and it seems to work.

    DECLARE
    l_sql VARCHAR2(32700);
    BEGIN
    
         IF APEX_APPLICATION.G_x01 IS NOT NULL THEN
              APEX_UTIL.SET_SESSION_STATE('G_TEMP', htf.escape_sc(APEX_APPLICATION.G_x01));
              l_sql := '
                   SELECT CODE AS RET,
                        NAME AS DIS
                   FROM MONUMENT_MAS WHERE CODE = :G_TEMP
                   ORDER BY NAME
              ';
    
              APEX_UTIL.JSON_FROM_SQL(l_sql);
    
         ELSE
              HTP.prn('{"row":[]}');
         END IF;
         APEX_UTIL.SET_SESSION_STATE('G_TEMP', NULL);
    
    END;
    

    Kind regards
    Jari

    -----
    My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • LOV display value based on the locale change

    Hi all
    I have this problem:
    my application is supposed to support two languages, English and another language.
    the user can change the regional settings by pressing a command link in their browser and switch between these two regions.
    all messages and labels are converted correctly.

    but in my case I use several objects in display list of choice as a data source for my LOV.
    for example, the views contain three columns:
    1 - id: which is the return value
    2 - English_meaning: description in English
    3 - Another_language_meaning: description in another language.

    is it possible to change the value displayed in LOV based on locale
    (i.e. If the user choose English locale English_meaning column will appear on LOV and when it goes to non_English_locale, the Another_language_meaning column is displayed)

    any help please.

    Maybe you find this post useful
    http://adfpractice-Fedor.blogspot.com/2011/02/ADF-BC-multiple-lovs-for-Vos-attribute.html

  • display value lov

    Hello!

    Is it possible to compare a lov display value with a string of characters in dynamic action?

    So, I need a dynamic action to trigger based on the displayed value of point lov. For example when I select "1" from point lov I want to trigger an action...

    Setup an example on apex.oracle.com

  • Position of the display value box

    Hello
    I can't find anything on google or here on the forum who can help me to set the right position for the display of my checkbox value.

    current appearance:
    Checkbox

    As you can see the position of the display value is not the same level with the element.

    Is it possible to get them to the same level?

    I am using APEX 4.0 on 10 g.

    I forgot: the display of the checkbox value is located in the text of item Post. Is not a static LOV display value (I'am using the LOV static to return the value "1"). Reason for this is that the display value for a static LOV will ignore their HTML (HTML is displayed as normal text). This is the reason why I put the display value are in the text of message item.
    Besides, my display value includes html and regular text.

    NEDO

    Edited by: Mr.Nedo the 27.05.2011 12:01

    Hello

    According to my knowledge, that this problem is related to the model you have chosen, then change the model and check the output.

    Thank you
    Stefan Bosamiya,
    + 91 76000 23053
    http://jbosamiya.blogspot.com

  • 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

  • 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

  • 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 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

  • The display "Display value" in a popup LOV

    Hi all

    I wonder if you could help me with this question. I have a LOV similar to this:

    Select the name display_val, id return_val
    < Table >;

    I want the LOV and form to display the display value "" and not the code. If I use LOV field type, it works, it displays the significant value to the field at a time, shape the LOV.

    The LOV having too many values, I need to go to a popup LOV. If I use the popup LOV the LOV will work ok, however, the form displays the ID

    How can I make the form to display the value of the end user and not the ID?

    Thank you

    You must set the element type ' Popup LOV key (description of the poster, returns the key value).

  • Possibility to get a popup to display the display value "" and not the "return value".

    Version - Application Express 3.2.1.00.11

    I have a list of values that exceed 1500 files and am so impossible to use a Select list.

    When you use a popup lov after choosing the recording, apex displays the return value (in my case a number). Is it possible to let him use the display value (in my case, a text string).

    Concerning

    Ben

    Benton says:

    Version - Application Express 3.2.1.00.11

    I have a list of values that exceed 1500 files and am so impossible to use a Select list.

    When you use a popup lov after choosing the recording, apex displays the return value (in my case a number). Is it possible to let him use the display value (in my case, a text string).

    See limiting the number of values in a LOV

    If it comes to a page element, and then change the type of Popup LOV key.

    If there is a control in a table, it's another reason to upgrade to a supported version, or the tabular form will need to be converted to be manually generated and processed in order to allow the appropriate control be returned using the apex_item.popupkey_from_lov method

  • The list of values - return value identical to the display value

    I fill a selection list with the names of the members with a lov sql like the following

    < tt > select memberName d, r FROM whateverTable < /tt > memberId

    The problem is that in the database, the stored value is the Member ID. I really want the real memberName stored in the database instead I want to use this name of Member elsewhere in my application.

    When the integrated trigger executes its code

    < tt >

       if NVL (:old. CONTACT_PERSON,'0') ! = NVL (:new. CONTACT_PERSON,'0'( ) then

    Insert into eba_ca_history ()table_name component_rowkey COMPONENT_ID column_name old_value new_value) values

           ('EVENTS', :new.row_key, :new.event_id, 'EVENT_OWNER',:old. CONTACT_PERSON,:new. CONTACT_PERSON()

       end if ;

    < /tt >


    I get the following text shows on my apps update page-"owner of an event has changed from 457879885611315631565 to 2546454654546546546546..."

    lov.PNG

    I want the value of the actual display to display for an update instead of the return value.


    I tried to convert the value to help

    lov2.PNG


    But which causes the following error


    lov3.PNG


    How can I make sure that the return value of the lov being stored in the database matches the display value for the lov?

    Hi Richie,

    If I understand your request, simply set your LOV query with the same column like screen and return:

    select memberName as display_value, memberName as return_value FROM whateverTable
    

    If this isn't what you're asking, I apologize for the misunderstanding.

    Thank you

    Erick

  • Enkitec LOV display problems.

    Hi all

    Using newer version of Enkitec LOV.

    https://Apex.Oracle.com/pls/Apex/f?p=4550:1

    Workspace: hanamike

    User name: test

    Password: test

    Application: Test LOV

    LOV 1.PNG

    LOV 2.PNG

    Problems encountered:

    1 Select the item (P1_EMPNO) still a Virgin after selecting the folder even if the session state has been defined using the da

    2 cannot search, example if I just type BL LOV, always search field empty and open return all records of data.

    3. also unable to see the application EK_ML_SEARCH in the State of Session preceding the point.

    Came across the thread below:

    Modal Enkitec LOV refreshment value on screen during the update programmatically

    where Dan mentioned using the:

    1. $s ('PX_ITEM_NAME' 'returnvalue' 'displayvalue',); 
    2. enkitec.modal_lov.jQuery ('#PX_ITEM_NAME') .enkitec_modal_lov ("setValuesByReturn" "returnvalue");


    but do not know how to apply the above.

    Tried $s ('P1_EMPNO', $v ('P1_EMPNO') in vain.


    The other columns column mapping works very well.


    Thanks in advance.

    Zack

    Hi Zack, looks like you want to see EMPNO designating the LOV, correct?

    According to me, which caused "trouble" is the 'Display, return, & Default sort Columns(Value Required)' field and you want to settle for other columns assignments.

    By default, the field "Display, return, & default sort columns (high-grade)" allows you to specify the column in which you want to display on the screen after selecting (in your case 1 for EMPNO) and allows you to specify which column to save on the DB (in your case also 1 for EMPNO).  So, I spent it to 1.1

    Once this is done, it is not supposed yo have EMPNO mapped the area of the 'column Element '. & Mapping (s)  This field is for OTHER items that are not your LOV point.

    I hope this makes sense now.

    I also put the DA never run.  It is not at all necessary.

    Let me know if I did not understand what you want to accomplish.

    Thank you

    -Jorge

Maybe you are looking for

  • Satellite click on Mini - some problems after installing Win 10

    HelloI hope someone here could help meI have a Mini click and I decided to install windows 10. First errorDuring installation, I decided to replace the partition recory (2nd error)After the installation, I have observed that no update was possible, a

  • Re: How to increase the memory dedicated 32 to 128 on Satellite C850-B906

    How to increase memory dedicated 32 to 128 on Satellite C850-906 on 8 to WIN? The word product specifications it can be up to 781 MB shared memory with 2 GB of installed system memory and up to 1 696 MB with 4 GB of memory system, (with a Windows® op

  • Satellite L40 - 14F: Win XP WLan driver do not work

    Hey,. I bought this Satellite L40 - 14F Nooteboom and installed Win XP. All the drivers, I have not already working very well, but having band wifi. I tried with the evolution of the lines in net8187b.inf but Installer could not find info on the use

  • Product key for Microsoft Word

    Now, I get this message asking me to enter my product key. Who is on my computer. I do it all the time and it is not accepted. I don't know why. He says now that I left the 5 times to use it.I know I have the microphone works on the computer, but do

  • Pavilion p7-1459: install 2 AMD Radeon HD 7450 graphics cards in my pc

    I have a second chart AMD Radeon HD 7450 card and wonder if it can be installed in my p7-1459 to improve game performance.  If possible, can you direct me also to the installation procedures.