Popup LOV Returning Values

In my entry form I'd like to use the "Popup LOV" to bring the names of employees. I use the following statement:
SELECT full_name, party_id
FROM vs_parties
ORDER BY 1
Everything seems to be working OK, however, only "party_id" is returned to the form. Is there a way I can hide the ID field and display the related "full_name" only.
Regards, Tomas

In order to clear out a Popup Key LOV value it was suggested to ..... Preface the query with [select '-choose option-' a, 0 b from dual union all ...].
Does anyone know of a fix for this solution if you want to set the value to null? Because as it stands if you use this query and replace "0" with null, the popup key lov actually returns "-choose option-" for both the display value and the actual value. I cannot use the value of "0" so that is why I am needing it to return as null.
Here is an example I posted up, the field that has the Popup key is "Name" you will see that once you pick "choose option" and save the record that in the report it sets the value of name to "-choose option" instead of null. Once this happens you cannot edit the record unless you do a backend SQL update to set value to null or a anything else.
Here is the link: http://htmldb.oracle.com/pls/otn/f?p=37103:21
This is the LOV query used for Name:
select '-choose option-' a, null b from dual union all select IP a, ip_id b from IP order by a

Similar Messages

  • Assigning LOV return Value to multiple text items

    Hi all
    I have a custom form on which i have 10 text items
    text item 1,text item 2 ....text item10
    I have a table xx_querywith fields
    text_item,query
    i have inserted into the xx_query table
    insert into xx_query(text_item,query)
    values(text_item1,'select sysdate from dual');
    insert into xx_query(text_item,query)
    values(text_item2,'select sysdate-1 from dual');
    I have created a record group dynamically and i am getting the query from the query column of the xx_query table into the record group(say test_rg)
    I have created a LOV test_lov and thr set_lov_property i have populated the test_rg query into the test_LOV
    is it possible for me to set the return item of the LOV dynamically so that i can get the LOV on the item which i want to ?
    thanks
    _

    Hi All
    thanks for your responses
    I have Created a control item and assigned the return value of the LOV to the control item
    and i have assigned the LOV to the text item that i want
    Currently when i navigate to the text item the LOV is visible
    but when i select a value from the LOV the value is not getting populated into the text item
    I have assigned the value of the control item to the text item
    but i am not sure in which trigger to write the code so as when i select the value from the LOV the value should be shown on the form populating in the text item
    Thanks

  • Double Quotes In LOV Return Value Being Replaced With &qu ot; By APEX 4

    My company recently upgraded our development and test boxes to APEX 4.0.2, which we have been wanting for a while now. We discovered that since the upgrade some of our checkboxes and radio groups no longer work as expected. What I mean by this is that the return values being checked for were not correct, and on several occasions we received PL/SQL errors related to numeric to character conversion issues.
    After debugging some it turns out that we have the following LOV query for one of our Checkboxes:
    select
    statement d,
    stmt_id || '" title="&P20_FORM_STMT. ' || statement || '.' r
    from
    stmts
    The return value for the LOV is setup so that it would return a 508 compliant checkbox. We were told we needed a title for each value of a checkbox or radio group to be 508 compliant. These titles must also be relevant to the selection being made, hence the substitution string being used in the return value.
    What I discovered in all of this is that APEX 3.2 did not convert the double quotes in our return value to &qu ot;, but APEX 4.0.2 does. This causes the value of any given checkbox or radio group to look like the following:
    value="1&qu ot; title=&qu ot;This is the statement that I have made."
    And what we are looking for, and what APEX used to do is this:
    value="1" title="This is the statement that I have made."
    Does anyone know a way to prevent APEX from converting the double quotes to &qu ot;, or is there a way to insert an element attribute for each checkbox or radio group value that contains a substitution string?
    Thanks in advance!
    Pastey

    ryansun wrote:
    4.2.1
    Hi,
    I have a classic report, which has a count column that is hyperlinked. using the standard apex column hyperlink option. In that we have the option of passing values. I noticed that when I am passing a value which has "/" in it, it replaces the / with & #x2F;
    I have created a application item which I am populating with the report column.
    Because of which I cannot use that value in the report query.
    Any suggestions?Yes. Don't pass string values in URLs. Especially where it is possible for these strings to contain URI reserved or APEX sensitive characters. This might work for a while but your application can be broken months from now by users including a "&" or ":" in data that gets passed as a URL parameter. Whilst it is possible to escape strings to make them URL- and APEX parameter-safe, it is much better practice to avoid the problem altogether.
    Exposing data in the URL may also introduce security vulnerabilities. Also note that the maximum length of a URL in Microsoft Internet Explorer is about 2KB, which can easily be exceeded by throwing a few string values at it.
    Only use discrete alphanumeric key values as URL parameters. In target pages/regions, use these key values to retrieve the required data using item source attributes and processes.

  • LOV return value to submit multi LOV/Text field order by value!

    I have nested LOV and return value reflected to another LOV/Text field by order wise.
    My problem,
    The return value LOV or Text field should be dispay with one by one values order by (Dynamic).here i using the query in each LOV source.
      select DMS_DD_ENG_DESC dis, DMS_DD_ID ret from DMS_DEPT_DETAILS
    where DMS_DD_DT_REF_ID=:P3_DETAILS
    Workspace          :RAM_R&D
    User Name/Password :aramani/apex
    App                http://apex.oracle.com/pls/apex/f?p=36167:3I should do the dynamic action for this case?
    anyone can help me plz.
    Thanx,
    Ram

    Hi Ram,
    I changed your application and i think it is working the way you want.
    I don't know if it exactly what you need but take a look and let me know.
    Regards,
    Kees Vlek
    <tt>Company: http://www.orcado.nl
    Blog: http://www.orcado.nl/blog/blogger/listings/69-kvlek
    Twitter: http://www.twitter.com/skier66</tt>
    If the question is answered please change it to answered and mark the appropriate post as correct/helpfull.

  • List Manager based on LOV returning values with missing spaces

    I am using a list manager based on a pop up lov, in this case it is a list of supplier names. When the pop-up list is shown the values are displayed as expected, with all spaces intact. When I click the supplier name, and then click Add to add to the list manager, all spaces in the supplier name are lost.
    The field I'm pulling is a varchar2 in the db. Here's the sql behind the lov:
    select '(All Suppliers)' d, '(All Suppliers)' r from rep_gy_spend
    union
    select distinct supplier_name d, supplier_name r
    from rep_gy_spend
    order by 1
    Any ideas on why the spaces are lost?

    DJ - There is a javascript function on the page that does that. View page source and you'll see it. You could override it with your own and change that behavior and you could prevent it from upper-casing the returned values as well by using different onclick javascript on the add button.
    Scott

  • Popup LOV, set value by clicking on a button.

    Hello,
    I have a Popup lov item on customers, and I have a button beside popup too to create new customer. I would like to set the new customer id/name in popup lov, that i have after clicked on new customer button. (from Javascript). With normal select list " $s('P58_COMPANYID', 58)" is working, but with popup lov not.
    What is the problem?
    András

    Hi András,
    are you using APEX 4.0? Because there $s has a third parameter to provide the display value for a "Popup Key LOV". For example
    $s('P58_COMPANYID', 58, 'Superman');Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins

  • Can a single LOV return values to two different fields?

    Hi,
    I have a scenario where I already have a LOV in the form which is assigned to a Field A. This LOV returns the value to field A. I have another field B which needs the same list of values. I can assign the same LOV to the field B as well, but can the value selected be returned to B?
    I can create another LOV with the same record group, but just wanted to know if its possible to use the same LOV again.
    Thanks

    Hi Karuna,
    You can achieve this by providing a third column in LOV (whose column width can be set to 0 to prevent it from being visible in lov) which can be comma-separated of two fields. This third field can then be assigned to the form field. And a substr() function call can get you both values.
    Hope this helps,
    Anantha
    [http://askanantha.blogspot.com]

  • Popup LOV returns not found on this server after upgrading to APEX 3.2

    The Popup Key LOV (Displays description, returns key value) does not work after upgrading to APEX 3.2 from APEX 3.0.
    Don't now if the character set is relevant.
    The database character set on APEX 3.0 was:
    NLS_CHARACTERSET: WE8MSWIN1252
    DAD CHARACTERSET: WINDOWS-1252
    APEX 3.2:
    NLS_CHARACTERSET:     AL32UTF8
    DAD CHARACTERSET:     UTF-8
    When clicking on the popup the message is "The requested URL /pls/apex31mb/wwv_flow_utilities.gen_popup_list was not found on this server.".
    This error applies for both Firefox and IE.

    Can't reproduce the error on apex.oracle.com, the popup works fine.
    The only difference I notice on the environments is the database version (our: 10g, oracle.apex.com: 11g), but I can't see this have any influence.

  • Dynamic popup does return value from popup window

    have to create a page , with dynamic Popup using query. I am using APEX_ITEM.POPUP_FROM_QUERY(). Dynamic popup is generated, i can able to open the popup, when i click the link of the generated records. It does not return the value.
    I feel that , it's like your error.
    could you please help me ou.t

    I also have similar kind of problem.
    1. How can I open new window to a particluar URL on a button click event? I know in line, we have target attribute.
    2. How can I pass the child window values to the parent
    3. How can I refresh the parent window or parent page to to show the changed values in the child window and ofcourse close the child.
    Any help on this will be appreciated.
    Thanks
    Rsaj

  • HOW TO RESTRICT A LOV RETURNED VALUES TO A DEFINED LIST

    Within Purchasing Superuser/Agreements PO Blankets Agreement page I'm trying to restrict the LOV's for the Operating Unit field. This currently lists all the Operating Units per standard functionality.
    However, I want to restrict the list of values on this field and I went into personalisation and found I could set the field to USER PERSONALIZABLE. Further zoom I get to the page as attached and here I would like to define the list of OU's to be restricted to the small set I have in mind. Is this the correct page this happens and could you point to me how I can do this ?

    Pratap,
    Since you want changes to the query output, just extending a Controller would not suffice. I agree that extending and thereafter substituting a VO can have impacts across. So my suggestion to you is to first analyze the impacts and in case you find tough with continuing the option, you can look at creating another VO (through Controller) and associating to the region using Controller itself. This is a complicated approach, but should suit your needs well.
    Regards
    Sumit

  • Bold value from popup LOV

    Hi,
    style="font-weight:bold" or class="fielddatabold" in the element's HTML Form Element Attributes work perfectly for the text field. I cannot get the same result for field with disp.value from popup LOV (display value,return key). I can change font family for example, but cannot bold. Any suggestions ?

    Thanks a lot for your answer. I got the same idea, but cannot see any place to manage returned values on this template. Description from pop-up key LOV seems to be turned "disabled", and will get the grey colour on the screen. However, if I will change to Select list, it looks fine.

  • LOV not return values more than certain limit

    Hi Guys,
    I have created 2 search fields (State, Area) in report page. Both of them are LOVs based. User select first field value, next field's LOV return values based on the first field( AJAX call). First field is states like 'VIC', 'NSW', 'SA' etc..., next field is 'Area'. when I select state other than 'NSW' in state field then next field is populated successfully. But when I select state as 'NSW' then next field is blank. 'NSW' state has records more than 100 in the table(LOV based on), but all other states have even less than 10 records. when I remove (more than 50) records of 'NSW' in the table then It works.
    Can anybody know if there is a limit of LOV that can be supported?

    Thanks Varad for reply.
    As you suggested to change gReturn = get.get('XML') to gReturn = get.get() for text values, But it is not simple as you said.
    I have found the problem. Actualy, there are some special characters in database column that suppose to return in LOV. But LOV is returned as xml object that may not support special characters (&,$, % etc...). I have put the 'replace' function in query. My query is like
    select replace(name,'&','and') d, id r
    from table1
    where val1 = :P2_val
    order by 1
    This query works in SQL WORKSHOP but not in AJAX. Any Idea? If I have to replace get.get('XML') to get.get() then what other steps I have to perform?

  • Disabled button of popup lov

    hello, i have a popup lov.
    i need to disabled this item
    but if a user click on the button associate to popup lov the value is changed
    how i can disabled this button?
    thanks
    Daniel

    Daniel,
    It's actually not a button at all. It's an anchor tag that displays an image. The href attribute of the anchor tag is the key - it makes a JavaScript call. If you're ok using jQuery for the solution I'd be happy to put one together for you. Put up an example application on apex.oracle.com. Let me know the workspace/username/password you want me to use...
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen
    http://sourceforge.net/projects/plrecur

  • Dynamically load Popup LOV

    <p>I need to load a Popup LOV with values filtered by a previous selection in a standard Select List. I need to do it without submitting the page to place the filtering LOV's value into session state (I've got other things happening on submit). </p>
    <p>I've used Carl's cool AJAX solution for standard Select Lists. Is there a similar method that will work when the target LOV is a Popup?</p>
    <p>thanks, </p>
    Mark

    A select list (dropdown) is part of the page when it is rendered, that is why the AJAX stuff is needed to replace the dependent dropdown lists.
    With popup LOVs, it is much simpler because the popup LOV query is not run until you click on the popup icon.
    If the popup LOV query refers to session state (:P1_ITEM), all you need to do is set the session state using the AJAX snippet.
    Put onchange="foo(this);" into the HTML Form Element attributes of the first select list (say P1_ITEM) and use something like
    function foo(pSelect)
    var l_select=html_SelectValue(pSelect);
    var get=new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=null',0);
    get.add('P1_ITEM',l_select);
    get.get();
    get=null;
    }"null" is a on-demand Application Process that does nothing. A PL/SQL block with just "null;"
    That's it. Now when you click on the popup LOV, it will get the latest value of P1_ITEM in session state in its defining query.
    Hope this helps.

  • Return multiple values for the popup LOV

    Hi folks,
    I have one challange. I have a search engine and there is an popup lov and its having three Display and 3 Retun value such as
    select
    p.A || ', ' || pi.B|| ', ' || km.C|| ' ' d, p.A || ', ' || pi.B|| ', ' || km.C|| ' ' r
    from tableA km,tableB p,tableC pi
    where km.col1=p.id and km.col1=pi.id and km.C is not null
    when i click on the pop lov it will display 3 values shuch as SAP+DBA+HR and in popup lov iteam its will return 3 values
    such as SAP+DBA+HR this return values are from 3 cloumn names from same table ie. A column, B column, C column
    and when i click on submit button this return values from 3 columns values should assign to the 3 column such as
    A=SAP, B=DBA and C=HR and search fetchs the result in a Report.
    Its some thing new, is it possible..:)
    ok will be waiting for your reply..:D
    Regards,
    Suri
    Edited by: user634694 on Feb 25, 2009 3:14 AM

    Hi Varad,
    am facing problems i wrote dynamic sql its working fine for 2 and 3 fields like (SAP+ORCL) and (SAP+ORCL+HRA) but for the single value like SAP the results are not comming properly. my code is
    If (:P25_TEST Is not Null ) THEN
    V_Sql := V_Sql||q'!
    And
    (multipleInstr1(R.Pillar,:P25_TEST)&gt;0 )
    or INSTR ( '+' || Upper(:P25_TEST) || '+', Upper(R.Pillar))&gt;0 ) and
    ((multipleInstr1(R.Product_Line,:P25_TEST)&gt;0 )
    or INSTR ( '+' || Upper(:P25_TEST) || '+', Upper(R.Product_Line))&gt;0) and
    ((multipleInstr1(R.Category,:P25_TEST)&gt;0 ) or (R.Category is null)
    or INSTR ( '+' || Upper(:P25_TEST) || '+', Upper(R.Category))&gt;0 )
    End If;
    where multipleInstr1 is a function created to search results even its delimited by '+' it ignors '+' delimiter and
    :p25_test is the popup iteam which takes values like SAP+ORCL+HRA or SAP+ORCL or SAP how its possible to get this results.
    Its turning too complicated for cheking condetion for a single popup iteam, can we get any solution for this or not..
    Hope will do respond
    Thanks and Regards,
    Suri

Maybe you are looking for

  • SSRS subscription issue

    We use some reports in SCSM (standard and custom). About week ago one of custom reports lost formatting when send to e-mail in MHTML format. We didn't modify this report before issue. Report display correctly: 1. In the SCSM console. 2. In the SSRS w

  • Error: Load operation failed for query 'GetAuthenticationInfo'. The remote server returned an error: NotFound.

    Hello, I have a lightswitch web-application in development, which I need to copy from one computer to the other. I have tried doing it both through Git and by simply copying the solution and opening the project on another machine. The project builds

  • I0s7 itunes not detecting iphone

    Since I updated my iphone 5 and my itunes after ios7 update, my itunes does show my iphone under the device column. I've tried everything, from restarting my macbook pro and my iphone, as well as uninstallig and installing itunes. I have no idea what

  • Problems logging on with microsoft?profile.languag...

    I am having problems logging onto my microsoft account I open skype like normal when I try logging on it brings me to the default log on page and on tops it says. "Sorry, something went wrong. Please try again," well i did and nothing i uninstalled a

  • Wine and resolution issue

    hello! i have used archlinux for a year or so. everything went quite perfectly, but because archlinux is not multilib (i need it for my 32-bit blitzmax application) i installed gentoo last week. and because gentoo did not get me "that feeling" of arc