LOV query is invalid, a display and a return value are needed, the column n

Hello,
I used to have no trouble at all creating dynamic LOV but from today I' am alway getting the error mentioned above.
This is the LOV query
select nm,zon_id from scr_zones_mv@d29ut
I tried to created a view of the referenced table, I'm able to select from this view in query builder but it gives the same error.
What is going wrong?
Erwin

Sorry guys,
I already found the problem.
thanks
Erwin

Similar Messages

  • LOV query is invalid, a display and a return value are needed

    hello - i am having this issue and can't get around this when creating a popup LOV based on sql.
    below is LOV query. as you see the view has only two columns. I tried various ways by giving alias to columns in query but nothing works. What did I miss here?
    select description,inventory_item_id from xx_apex_inv_v
    1 error has occurred
    LOV query is invalid, a display and a return value are needed, the column names need to be different. If your query contains an in-line query, the first FROM clause in the SQL statement must not belong to the in-line query.

    Did you try it like this?
    select description d, inventory_item_id v from xx_apex_inv_v

  • Select List with Submit : a display and a return value are needed...error

    Hi,
    Why the next SELECT returns error in Select list with submit ?
    List of values definition:
    SELECT b.nom nom_bannniere,
    b.no_banniere no_bann
    FROM banniere@my_source b
    WHERE b.statut = 0
    ORDER BY nom_bannniere;
    1 error has occurred
    * LOV query is invalid, a display and a return value are needed, the column names need to be different. If your query contains an in-line query, the first FROM clause in the SQL statement must not belong to the in-line query.

    gfrancoeur,
    Try this SQL:
    SELECT b.nom d,
    b.no_banniere r
    FROM banniere@my_source b
    WHERE b.statut = 0
    ORDER BY 1Thanks,
    - Scott -

  • Infoview pick list values and CR parameter values are not the same

    Hello All
    We have created created Crystal Reports based upon BW Query using Static Parameters as recomended by SAP. When we run the query in InfoView the Pick List is dynamically updated and returns the correct data for selection. When The Crystal Report opens and you wish to navigate through the report using the parameter selection the selection criteria has not been maintained by BW and does not match the Pick List.
    Can you please advise if there is any way to make this work?
    We ar using Crystal Reports 2008 version 12.3.1.684
    on BOBJ XI 3.1
    Any help would be appreciated,
    Phillip

    Hello Ingo
    What is strange that in InfoView the pick list is only dynamic the Parameters when the document is open (in InfoView) are not dynamic. An example would be Searching on Material. In Info view the pick list provides all the materials to select from. Once though the report is open the parameter list on the left hand side could be seen as blank as it refers to the static list that is not manually maintained within Crystal Reports or provide a list of details that has no reference to the dynamic selection as returned from BW as it is a static list that was loaded with Crystal Reports Designer on creation.
    What we are wanting to achieve is that Info View Pick List is Dynamic and the Parameter list that can be used to navigate within the document once opened is dynamically refreshed to be the same as the Pick List provided by BW and InfoView.
    Is this possible?
    With CR Designer if we use Do Not Show, Info View no longer provides this parameter on the left hand side.
    If we use Editable the list provided in InfoView is equal to the static list as maintained within CR Designer.
    We have not tested Read Only Yet so I am not sure if this could be the solution or not.
    Any ideas would be of great benefit
    Phillip
    Edited by: Phillip L on Nov 26, 2010 5:22 PM
    Edited by: Phillip L on Nov 26, 2010 5:23 PM

  • Select list and subquery: "LOV query is invalid"

    Hi all,
    I want to create a select list with the following format:
    "name1 (count of another table)"
    "name2 (count of another table)"
    I've boiled it down to a simple query with a non-correlated subquery that works fine in SQL*Plus but not as an LOV:
    select table1.field1 || (select count(*) from table2) d,
    table1.field2 r
    from table1
    I get this (Apex 3.2.1):
    1 error has occurred
    * LOV query is invalid, a display and a return value are needed, the column names need to be different. If your query contains an in-line query, the first FROM clause in the SQL statement must not belong to the in-line query.
    Even this doesn't work:
    select table1.field1 || (select 'a' from dual) d,
    table1.field2 r
    from table1
    I've tried it with an inline view, joining table1 to a select from table2 that returns the count, but I get the same result. Any ideas?
    Edited by: MalcA on Jan 22, 2010 12:14 PM

    I don't know, but the difference is that the count(*) code goes from the select clause to the from clause.
    Other times I had the same problem and always did it and it was the solution.

  • LOV Query is "invalid" all of a sudden...

    The query below was written a while back (I've been through several APEX upgrades since then). I recently went in to the LOV Definition to make some changes and found that, no matter what I do, I get the error:
    "LOV query is invalid, a display and a return value are needed, the column names need to be different..."
    This is even true if I make no changes to the Query but try to "Apply Changes". I'm guessing that an upgrade someplace along the line is causing this.
    Any ideas on how to make this query valid once again?
    (APEX 3.1)
    Thanks!
    Alex
    SELECT 'ES Value of ' || TO_CHAR(round(ve_value,-2),'$99,999,999') d, 'ES' c
    FROM QUERY_MAIN qm
    WHERE query_id = nv('P310_QUERY_ID')
    AND subject_propid = nv('P309_BLS_PROPID')
    AND nvl(ve_value,0) > 0
    UNION
    SELECT 'PV Value of ' || TO_CHAR(round(Bluelime_Common.get_perfect_value(nv('P309_BLS_PROPID'), NULL, NULL, TO_DATE(:p0_base_date, 'MM/DD/YYYY')),-2),'$99,999,999') d, 'PV'
    FROM dual
    where TO_DATE(:p0_base_date, 'MM/DD/YYYY') != trunc(sysdate)
    UNION
    SELECT 'PV Value of ' || TO_CHAR(round(Bluelime_Common.get_perfect_value(nv('P309_BLS_PROPID')),-2),'$99,999,999') d, 'PV'
    FROM dual
    where TO_DATE(:p0_base_date, 'MM/DD/YYYY') = trunc(sysdate)
    or :p0_base_date is null

    Have you tried this:
    SELECT disp_val d, ret_val r
      FROM (SELECT    'ES Value of '
                   || TO_CHAR (ROUND (ve_value, -2), '$99,999,999') disp_val,
                   'ES' ret_val
              FROM query_main qm
             WHERE query_id = nv ('P310_QUERY_ID')
               AND subject_propid = nv ('P309_BLS_PROPID')
               AND NVL (ve_value, 0) > 0
            UNION
            SELECT    'PV Value of '
                   || TO_CHAR
                         (ROUND
                             (bluelime_common.get_perfect_value
                                                           (nv ('P309_BLS_PROPID'),
                                                            NULL,
                                                            NULL,
                                                            TO_DATE
                                                                   (:p0_base_date,
                                                                    'MM/DD/YYYY'
                              -2
                          '$99,999,999'
                         ) disp_val,
                   'PV' ret_val
              FROM DUAL
             WHERE TO_DATE (:p0_base_date, 'MM/DD/YYYY') != TRUNC (SYSDATE)
            UNION
            SELECT    'PV Value of '
                   || TO_CHAR
                         (ROUND
                             (bluelime_common.get_perfect_value
                                                            (nv ('P309_BLS_PROPID')
                              -2
                          '$99,999,999'
                         ) disp_val,
                   'PV' ret_val
              FROM DUAL
             WHERE TO_DATE (:p0_base_date, 'MM/DD/YYYY') = TRUNC (SYSDATE)
                OR :p0_base_date IS NULL)Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • LOV Query is Invalid

    When testing the following in SQL Commands it runs.
    select DISTINCT LNAME, FNAME as display_value, FNAME||' '|| LNAME as return_value
    from PERSONNEL_SSN
    where ACTIVE = 'Y'
    order by 1
    However, I get an LOV Query is Invalid error when trying to use it in Source: Lists of Values Query.
    I'm new to Apex and am learning as I go.
    Any suggestions would help.
    Thanks!

    As Marc advised, you are returning an additional field, although I suspect you are maybe attempting to display "Last Name, First Name" - if so, you would do this:
      select distinct lname||', '||fname display_value
           ,fname||' '||lname return_value
      from personnel_ssn
    where active = 'Y'
        order by 1Having said that, you might want to re-visit your data model - you might come unstuck if new employee "Michael R. O'Donnell Esq." joins the organisation on the first day of your holiday... :-)
    Edited by: Joel_C on 16-Nov-2011 15:42

  • I am getting a security code invalid error? everytime I try to download a app or update my current apps? I looked online and a few people are having the same issues anyone been able to get this resolved? Thanks

    I am getting a security code invalid error everytime I try to download a app or update my current apps? I looked online and a few people are having the same issues anyone been able to get this resolved? It's not just on Iphones either it's on all apple devices. I've called Apple customer service. I've wrote a complaint online as well so far no good.
    Any help would be much appreciated Love to all and thanks!

    I have done that thousands of times for my security code. Doesn't work and I have called the bank and they say no problem with my card. I have also tried useing different cards all together with no luck idk what else to do? Help!

  • How to create a display value and a return value for an item

    Hi! I have an item on a form. I want the default value for my item to be :":APP_USER", but the return value, to be the id of my user. I tried to create a PL/SQL Expression for the default item, but it doesn't work. What do I miss?
    It should be something like this, but it's not.
    begin
    select first_name || ',' ||last_name as "Employee",
    id_employee -- display value,return value
    from employees
    where id_employee = :APP_USER;
    end;
    Does anyone know?
    Thanks!
    Vitaly

    Hi VItaly,
    Display value and return value concept applies very well in case of a Combo box if i am correct, I don't know what type of item is your's.
    But any way, you can have a workaround like,
    Create a hidden item such that it's default value should be ID of the user which can be get from db by using :APP_USER.
    Use the this item for your references.
    I think this will meet your requirement.
    Thanks
    Kumaraswamy.

  • I loaded in Lion - but my time capsule will not back up. I get an message: couldn't complete backup due to a network prolem. Also it says "make sure your computer and back up disk are on the same network, and that the backup disk is turned on.

    I installed Lion on my Mac Pro laptop. Regarding Time Capsul - I get a messaage as follows: couldn't complete backup due to a network problem. Make sure your computer and back up disk are on the same network and that the  backup disk is turned on. Then try again to back up. I have time capsul turned on. bill

    I have exactly same problem with my MBP and MBA, after upgrading to Lion. I've tried to fix this issue while cheking key chain issues and network setup, even formating hdd and time capsule firmware upgrade (ver. 7.6.1.). Nothing can help. It is very annoying.

  • My keyboard on macbook pro (laptop) is acting weird. One key is not responding at all. Have verified using Keyboard viewer and some other keys are printing the unresponsive character at random.

    my keyboard on macbook pro (laptop) is acting weird. One key is not responding at all. Have verified using Keyboard viewer and some other keys are printing the unresponsive character at random. "z" is the unresponsive character.
    Is it a damaged keyboard ?
    The laptop is just 2 months old, will Apple replace it with a new one if its indeed a damaged keyboard or just repair, I use it for official purposes so being without a laptop is not much of an option.

    No one here works for Apple, so we don't know what Apple might or might not do.  If it's a genuine defect, they will of course repair it under warranty.  It is not their responsibility if it effects your ability to work or not, so that's on you.
    If, however, they determine that the key is problematic as a result of your misuse of the laptop, then everything is on you.  And trust me, if they find a glob of dried up beer or coffee there, they will charge you.
    Your only choice is to take it in for repair.

  • I seem to have lost the red, yellow and green dots that are in the upper left hand corner that close  or minimize the page.

    I seem to have lost the red, green, and yellow dots that are in the upper left hand corner that close or minimize the page.  How can I get them back?

    You may have to try a general OS X troubleshooting process to see if the issue goes away by doing this...
    Have you tried: starting the computer in SafeBoot mode, with shift key held down; a login screen should appear after a time, and then the regular desktop. At this point, locate Disk Utility in utilities folder, and run 'repair disk permissions' on the startup volume, usually the name given the hard disk drive as it appears on desktop. After Disk Utility is finished the permissions repair, restart the computer normally.
    ...The iTunes player has free support only through the duration of the hardware product's complementary or AppleCare extended plan coverages, so though you can download a newer version, that is not the same as free support for an issue. However, the iTunes Store or App Store has a different factor for their product.
    http://www.apple.com/support/itunes/
    There is an iTunes area in Apple Support Community discussions for more topics like this; except for when they involve a hardware product where an OS X is involved. If your computer is NOT a powerPC (an 'intel'-mac) the topic would more naturally need to be posted where that hardware and later supported OS X version topics get seen. So that is why one asks 'on what Mac running what version...' instead of writing four paragraphs in a wide angle reply. The details about your iMac and the OS X say more; without them, more questions arise.
    Good luck & happy computing!

  • New computer at work and all my song are on the server-when I try to change the folder location under preferences to the server, it still won't show my songs in Itunes?? please help!

    I have a new computer at work and all my song are on the server-when I try to change the folder location under preferences to the server, it still won't show my songs in Itunes?? please help!

    Howdy carpetjim,
    When you change the folder location like that, it changes where new songs and media are stored. To actually load the library you need to do this:
    Steps to create or choose a different iTunes Library file
    If iTunes is running, quit iTunes.
    If you are using Windows, hold down the Shift key and from the Start menu and choose All Programs > iTunes > iTunes.
    If you are using the Mac, open iTunes and immediately hold down the Option key.
    You should see one of the following screens:
    Additional information
    If you do not see one of the screens above, then you did not hold the correct key at the correct time. You may want to try again. Note that if you pinned iTunes to the Start menu programs, and open it that way, it may not work.
    From: iTunes: How to open an alternate iTunes Library file or create a new one
         http://support.apple.com/kb/ht1589
    Take care,
    Sterling

  • Help me i cant install itunes on my windows 7 enterprise i try installing 32bit and it says that i need the 64bit but then in need the 32bit to use the 64bit please help!!!!

    help me i cant install itunes on my windows 7 enterprise i try installing 32bit and it says that i need the 64bit but then in need the 32bit to use the 64bit please help

    Hi there,
    I would recommend taking a look at the troubleshooting steps found in the article below.
    Trouble installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/HT1926
    -Griff W.

  • My new Apple TV won't be recognized by my IPhone Air-Play. I made sure the home sharing is on and that both Devises are I the same network..

    My new Apple TV won't be recognized by my IPhone Air-Play. I made sure the home sharing is on and that both Devises are I the same network. The IPhone see the other two Apple TVs at my house, but for some reason it won't see the third one I just added.

    Check to see if AirPlay is actually turned on.  (in Settings on the ATV)
    Also, make sure it's not sitting directly next to your router; interference

Maybe you are looking for

  • How can I get an Image's resolution?

    how can i get the resolution of images been read into my paint application?

  • Technical data for planned order dependent requirements .

    Dear All,               I have to call the dependent requirements created by MRP run in my report. Can anyone please tell me that where these dependent requirements are stored in the database or is there any function module to get these values? Thank

  • Invoice Verification: Customer Accounts

    Hi... Is invoice verification possible of Customer Accounts? For example, a similar set up as to Vendor Accounts, with selecting the check box 'Chk double inv' in the Vendor Master and duplicate warning message display when posting FB60s and FB65s. T

  • Problem transferring JVC Everio HD Camcorder Video files to ZEN 1

    I can't seem to succesfully transfer video files recorded by my JVC Everio hard dri've camcorder to my ZEN. The files as originally downloaded from camcorder to PC are?.MOD format which is not visible to ZEN Explorer as a videofile and will not conve

  • Detection of user's leaving

    Hi there, With AS, can I trace that user hasn't been operating on the computer for a while, say 5 miniutes, and then do something? theoretically speaking, to detect that there is no mouse or keyboard event for certain a period of time, and then do so