Can someone tell me what is the problem with this LOV query please?

This query works very well...

Select filter_name display_value, FILTER_ID return_value
from OTMGUI_FILTER where username = 'ADAM '.

But this one...

Select filter_name display_value, FILTER_ID return_value
from OTMGUI_FILTER where username = apex_application.g_user

Gives the following error.

1 error has occurred

* LOV query is not valid, a display and a return value is needed, the column names must be different. If your query contains a query online, the first CLAUSE in the SQL statement must not belong to the query online.

Thank you very much

-Adam vonNieda

Adam:

Define the LOV query as follows

declare
l_val varchar2(100) := nvl(apex_application.g_user,'ADAM');
begin
return  'select enAME display_value, empno return_value
from emp where deptno = '''|| l_val || ''''
end;

CITY

Tags: Database

Similar Questions

  • can someone tell me what is the problem with my battery or card

    Full charge capacity seems to be a bit low.  Download coconutBattery and see how it compares to what it was new.

    You have your charger connected?  If so, it is not recognized.

    Would it please you all the other details that push your concern.

    Ciao.

  • Configure the vco authetication way CAN LDAP fails, can someone tell me what is the problem I have

    Configure the vco to LDAP (openldap):

    Group Search Base: OU = Group, dc = admin, dc = example, dc = com (successfully)

    cn admin_group =, ou = group, dc = admin, dc = example, dc = com

    Error:

    Selected administration group isn't a group or the chosen LDAP client type is inappropriate.

    But admin_group is in fact a group, see:

    [root@lsfdc1 aaa] # slapcat s dc = example, dc = com

    bdb_db_open: warning - no DB_CONFIG file found in the/var/lib/ldap directory: (2).

    Expect poor performance for suffix "dc = example, dc = com".

    DN: dc = example, dc = com

    objectClass: dcObject

    objectClass: Organization

    objectClass: top

    DC: example

    o: corporation

    Description: LDAP server

    structuralObjectClass: Organization

    entryUUID: 0432c87a-4815-1033-9b4e-c92a34293f8e

    creatorsName: cn = Manager, dc is example, dc = com

    createTimestamp: 20140325025758Z

    entryCSN: 20140325025758.919334Z #000000 #000 #000000

    modifiersName: cn = Manager, dc is example, dc = com

    modifyTimestamp: 20140325025758Z

    DN: dc = admin, dc = example, dc = com

    objectClass: dcObject

    objectClass: Organization

    objectClass: top

    DC: admin

    o: admin

    structuralObjectClass: Organization

    entryUUID: 043356be-4815-1033-9b4f-c92a34293f8e

    creatorsName: cn = Manager, dc is example, dc = com

    createTimestamp: 20140325025758Z

    entryCSN: 20140325025758.922987Z #000000 #000 #000000

    modifiersName: cn = Manager, dc is example, dc = com

    modifyTimestamp: 20140325025758Z

    DN: or = users, dc = admin, dc = example, dc = com

    objectClass: organizationalUnit

    objectClass: top

    UO: user

    structuralObjectClass: organizationalUnit

    entryUUID: 0433b974-4815-1033-9b50-c92a34293f8e

    creatorsName: cn = Manager, dc is example, dc = com

    createTimestamp: 20140325025758Z

    entryCSN: 20140325025758.925516Z #000000 #000 #000000

    modifiersName: cn = Manager, dc is example, dc = com

    modifyTimestamp: 20140325025758Z

    DN: or = group, dc = admin, dc = example, dc = com

    objectClass: organizationalUnit

    objectClass: top

    organizational unit: Group

    structuralObjectClass: organizationalUnit

    entryUUID: 043463f6-4815-1033-9b51-c92a34293f8e

    creatorsName: cn = Manager, dc is example, dc = com

    createTimestamp: 20140325025758Z

    entryCSN: 20140325025758.929881Z #000000 #000 #000000

    modifiersName: cn = Manager, dc is example, dc = com

    modifyTimestamp: 20140325025758Z

    DN: cn = admin_group, or = group, dc = admin, dc = example, dc = com

    objectClass: posixGroup

    objectClass: top

    CN: admin_group

    gidNumber: 10000

    memberUid: Admin

    structuralObjectClass: posixGroup

    entryUUID: 043475d0-4815-1033-9b52-c92a34293f8e

    creatorsName: cn = Manager, dc is example, dc = com

    createTimestamp: 20140325025758Z

    entryCSN: 20140325025758.930339Z #000000 #000 #000000

    modifiersName: cn = Manager, dc is example, dc = com

    modifyTimestamp: 20140325025758Z

    DN: uid = Admin, ou = users, dc = admin, dc = example, dc = com

    objectClass: posixAccount

    objectClass: top

    objectClass: inetOrgPerson

    gidNumber: 10000

    SN: Admin

    displayName: Admin

    UID: Admin

    homeDirectory: / home/Admin

    CN: Admin

    uidNumber: 10000

    userPassword: e1NTSEF9SkgzdTA3bjgrMUNqOUZSTzNqWHAxcnpJZXNISXZTL1c =

    loginShell: / bin/sh

    structuralObjectClass: inetOrgPerson

    entryUUID: 0436d0b4-4815-1033-9b53-c92a34293f8e

    creatorsName: cn = Manager, dc is example, dc = com

    createTimestamp: 20140325025758Z

    entryCSN: 20140325025758.945771Z #000000 #000 #000000

    modifiersName: cn = Manager, dc is example, dc = com

    modifyTimestamp: 20140325025758Z

    DN: uid = pcmae_user, dc = admin, dc = example, dc = com

    objectClass: posixAccount

    objectClass: top

    objectClass: inetOrgPerson

    gidNumber: 0

    SN: pcmae_user

    displayName: pcmae_user

    UID: pcmae_user

    homeDirectory: / tmp

    CN: pcmae_user

    uidNumber: 10001

    userPassword: MmY3MjU0ZGM =

    loginShell: / bin/sh

    structuralObjectClass: inetOrgPerson

    entryUUID: 0439839a-4815-1033-9b54-c92a34293f8e

    creatorsName: cn = Manager, dc is example, dc = com

    createTimestamp: 20140325025758Z

    entryCSN: 20140325025758.963459Z #000000 #000 #000000

    modifiersName: cn = Manager, dc is example, dc = com

    modifyTimestamp: 20140325025758Z

    DN: cn = vmware, or = group, dc = admin, dc = example, dc = com

    objectClass: posixGroup

    objectClass: top

    CN: vmware

    memberUid: Admin

    gidNumber: 11577

    structuralObjectClass: posixGroup

    entryUUID: f228f69c-4826-1033-8a78-17f207c52dd8

    creatorsName: cn = Manager, dc is example, dc = com

    createTimestamp: 20140325050619Z

    entryCSN: 20140325050619.597137Z #000000 #000 #000000

    modifiersName: cn = Manager, dc is example, dc = com

    modifyTimestamp: 20140325050619Z

    DN: cn = vco, dc is admin, dc = example, dc = com

    objectClass: posixGroup

    objectClass: top

    CN: vco

    memberUid: Admin

    gidNumber: 1906

    structuralObjectClass: posixGroup

    entryUUID: c1f36a8c-4828-1033-8a79-17f207c52dd8

    creatorsName: cn = Manager, dc is example, dc = com

    createTimestamp: 20140325051917Z

    entryCSN: 20140325051917.709032Z #000000 #000 #000000

    modifiersName: cn = Manager, dc is example, dc = com

    modifyTimestamp: 20140325051917Z

    DN: cn = abc, dc is admin, dc = example, dc = com

    objectClass: groupOfUniqueNames

    objectClass: top

    CN: abc

    uniqueMember: uid = Admin, ou = users, dc = admin, dc = example, dc = com

    structuralObjectClass: groupOfUniqueNames

    entryUUID: 6cedd136-4831-1033-8a7a-17f207c52dd8

    creatorsName: cn = Manager, dc is example, dc = com

    createTimestamp: 20140325062120Z

    entryCSN: 20140325062120.536569Z #000000 #000 #000000

    modifiersName: cn = Manager, dc is example, dc = com

    modifyTimestamp: 20140325062120Z

    Can someone tell me what is the problem I have?

    You have the incorrect object for the group class. vCO using groupOfNames

  • My Wifi is on but IE tot impossible to connect to the Internet can someone tell me what is the problem?

    My WiFi is on, but when I try to go to the internet it says unable to connect to the internet can someone tell me what I need to do?

    I'll try tomorrow when I find work. Thank U!

  • What is the problem with this dynamic query? help

    with the following code, I get the correct answer.
    I just want to know maxempno current (and care for the 3rd, 4th tank only)

    declare
    Temp varchar2 (2);
    Start

    Select substr (A1.empno, 3, 2) in the emp A1 temp where A1.empno = (select (max (A2.empno) of emp A2) and rownum = 1;)
    HTP.p ('temp' is |) Temp)
    end;

    Temp is 34

    =====================================
    Now I need to make a call to the procedure and pass the name of a table and column

    P_CHECK_MAX
    ('emp' = > p_table,)
    ('empno' = > p_column)

    create or replace procedure 'P_CHECK_MAX '.
    (p_table in VARCHAR2,
    p_column in varchar2)

    is
    Temp varcahr2 (2);
    d_select varchar2 (500);

    Start
    d_select: ='SELECT substr (A1.'| p_column | 3: 2) IN ' | "temp" | 'FROM ' | p_table | "A1 WHERE A1.' | p_column | "= (SELECT max (A2.' | p_column |')) OF ' | p_table | ("A2) AND rownum = 1';
    immediately run d_select;

    end;

    I'm getting ORA - 00905 missing keywords. Can you help me what is the missing word here? I am stomped for hours on it.

    Published by: wanwan63 on September 29, 2009 06:23
    Sorry I reverse the setting in the call. must be p_table = > 'emp', p_column = > 'empno '.

    P_CHECK_MAX
    ("emp"-online p_table,
    'empno'-online p_column)

    It must be

    p_check_max(p_table=>'emp', p_column=> 'empno)
    

    d_select: ='SELECT substr (A1.'| p_column | 3: 2) IN ' | "temp" | 'FROM ' | p_table | "A1 WHERE A1.' | p_column | "= (SELECT max (A2.' | p_column |')) OF ' | p_table | ("A2) AND rownum = 1';
    immediately run d_select;

    IN is not part of the SQL syntax. Its syntax PL. If you can not use dynamic SQL. It should be like this

    d_select:='SELECT substr(A1.'||p_column|| ',3,2)  FROM ' || p_table || '  A1 WHERE A1.' ||p_column ||'= (SELECT max(A2.' ||p_column||') FROM ' || p_table||' A2) AND rownum=1';
    execute immediate d_select into temp;
    
  • Hi, I bought a student version for 15 Euros per month, but I had only a trial version for 30 days. Can someone tell me, what is the problem.

    Hi, I bought a student abo and each month 15 euros are charged out of my bank account, but I had only a trial version or 30 days. What the problem? Best, Peter

    Your subscription to cloud shows correctly on your account page?

    If you have more than one email, you will be sure that you use the right Adobe ID?

    https://www.adobe.com/account.html for subscriptions on your page from Adobe

    .

    If Yes

    Sign out of your account of cloud... Restart your computer... Connect to your paid account of cloud

    -Connect using http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html

    -http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html

    -http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html

    -http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html

    -ID help https://helpx.adobe.com/contact.html?step=ZNA_id-signing_stillNeedHelp

    -http://helpx.adobe.com/creative-cloud/kb/license-this-software.html

    .

    If no

    This is an open forum, Adobe support... you need Adobe personnel to help

    Adobe contact information - http://helpx.adobe.com/contact.html

    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    -Select your product and what you need help with

    -Click on the blue box "still need help? Contact us. "

  • When I change authentication to LDAP (EMbedded LDAP) vco for test, vco client is unable to connect to vcenter. Can someone tell me what is the problem I have

    It is seemly all things are OK configuration web page

    But vco client is unable to connect to vcenter

    Have a screenshot of the vCenter plug-in would help.

    If it is set at the session by the user that the vCO will try to authenticate with the LDAP credentials embedded on the vCenter which of course will fail.

  • What is the problem with this URL

    Can someone tell me what is the problem with this url
    owa_util.redirect_url(apex_util.prepare_url('f?p='||:APP_ID||':25:'||:APP_SESSION||'::'||:DEBUG||':25,28'||':P25_JOBID,P25_PG:&P3_JOBID.,3, null,||:APP_SESSION'));
    It gives me a value for P25_PG, that is to say 3 but always sets P25_JOBID to 0

    Gus

    Hello Gus,

    It looks like point P3_JOBID has no value for the rendering of the page.
    If the value is set subsequently, you can try the following change

    owa_util.redirect_url(apex_util.prepare_url('f?p='||:APP_ID||':25:'||:APP_SESSION||'::'||:DEBUG||':25,28'||':P25_JOBID,P25_PG:'||:P3_JOBID||',3, null,||:APP_SESSION'));
    

    But the part at the end

    ||',3, null,||:APP_SESSION'
    

    Wil do nothing because you give only 2 items in the list separated by commas of the page elements you want to submit. Everything after the second comma in the comma separated value list is of no use for the url of the apex.

    As additional info, the URL of the Apex is built like this:
    >
    1 - application ID or alias
    2 - page ID or Alias
    3 - session & SESSION. : APP_SESSION
    4. application (for example, PRINT_REPORT = REPORT_1) & ASK. : REQUEST
    5 - debug (YES or NO) & DEBUG. : DEBUG
    6 - cache framework

    APP - clear the cache for the entire application
    SESSION - clear the current user session cache
    PR - Reset pagination
    x - clear the page cache x
    -empty the cache for the element y

    7 - separated by a comma list of items on the page
    8 - the list of values separated by commas
    9 - mode printer friendly (YES or blank)

    f? p = & APP_ID.: 1010: & APP_SESSION. : & DEBUG. : RP, 1010:P1010_ITEM1, P1010_ITEM2, P1010_ITEM3:A, B, C
    >

    Kind regards
    Kees Vlek
    -----
    Company: http://www.orcado.nl
    Blog: http://www.orcado.nl/blog/blogger/listings/69-kvlek
    Twitter: http://www.twitter.com/skier66
    If the answer to question please change replied and mark the appropriate post as correct / helpful.

  • What is the id #. can someone tell me what that the product # is for mobile id intel r 915gm/gms.910gml express chip family

    can someone tell me what that the product # is for mobile id intel r 915gm/gms.910gml express chip family

    Hello

    I suggest you contact the Intel to get help.

    http://www.Intel.com/p/en_US/support?IID=HDR+support

    http://www.Intel.com/p/en_US/support/highlights/graphics/intel915gm/

    It will be useful.

  • Can someone tell me what is the difference between a default playback device and a default communication device?

    original title: sound settings are very complex. Can someone tell me what is the difference between a default playback device and a default communication device?

    In fact, I use the recording software to record songs instead of downloading. Some recorders record their own drivers and they work fine. But sometimes, they do not respond. The DD Realtek Audio Manager is sick with something. People suffer a lot using this. My questions are endless. Some of them are:

    • What is "Realtek Digital Output?
    • Save devices-part of sound cards?
    • What are animals like 'Audio CD' and 'Stereo Mix' displayed on the DD Realtek Audio Manager?
    I'm sorry for not being specific, but I need a very good idea of how to deal with the settings of the sound in windows 7. And one thing, I have no microphone plugged but always Realtek HD Audio Manager detects? Why?

    Hi SandiKollol,

    A communication device can mean different things, but mostly it is used to allow voice communications on the internet.

    A playback device plays his return, such as your speakers or headphones.

    I hope this helps.

  • Could someone explain to me what is the problem with this refined expression?

    Hi, could someone explain to me what is the problem with this refined expression

    faultCode:Server.Processing faultString:' unable to invoke CFC - regular expression malformed ' ^ [0-2][0-9][/][0-1][0-2][/][1-2][0-9]{3}+$ '.»»

    Thank you

    I think that the + should not be there. Do you have a match?

  • How I download 80070103 windows update is update safe what is the problem with this update

    Just got the update installation today to download update 80070103 time ever I go to download the update fail what is the problem with this update & how do I get updated.

    Hello

    Thanks for posting in the Microsoft Community.

    If I understand correctly that you have problems with Windows Update.

    Please answer these questions:

    1. What is the update's KB number?

    2 have you made any changes to the computer before the show?

    Let us try the following methods:

     

    Method 1: Run the following fix - it:

     

    The problem with Microsoft Windows Update is not working:

    http://support.Microsoft.com/mats/windows_update/

    Method 2: See the following article:

    Windows Update 80070103 error code:

    http://Windows.Microsoft.com/en-us/Windows-Vista/Windows-Update-error-80070103

    Hope the helps of information. We know if you need help. We will be happy to help you.

  • What is the problem with this Forum? Why Adobe taking so long to reply to messages?

    What is the problem with this Forum? Why Adobe taking so long to reply to messages?
    It is in fact 'specific' Forum of Photoshop.
    I usually come back another Adobe forum responses quickly.

    Chime.

    Hi people,

    For what it's worth, there are several of us who try, in addition to our regular work, to keep an eye on two other forums.  Quite simply, we care about the product and try to make sure that we give our customers the best experience as possible.  Plus, what better way to hear about your weak points in order to solve them.  But, as Mylenium and Christmas as well stress this, the forums are officially a user experience.  If you need help fast or official, it isn't the best place to do it.

    Regarding your question of Arab, Rahzah, I answered in two different threads and would be happy to help you with your problem.  Please choose a single thread and stick with it. two tabs is a pain.

    Thank you
    David

    PS - some of us do check the forums on our time, as I did last week at the launch while I was on vacation.

  • What is the problem with this WHERE statement?

    What is the problem with this WHERE statement?

    < cfquery datasource = "manna_premier" name = "kit_report" >
    SELECT SaleDate,
    TerritoryManager,
    Distributor,
    DealerID,
    Variable,
    US_Dealers.ID,
    DealerName,
    DealerAddress,
    DealerCity,
    DealerState,
    DealerZIPCode
    Orders, US_Dealers
    WHERE US_Dealers.ID EQ DealerID AND SaleDate BETWEEN #CreateODBCDate (FORM. Implementation) # AND #CreateODBCDate (FORM. End) #.
    ORDER BY SaleDate
    < / cfquery >

    It's driving me crazy!

    Syntax error (missing operator) in query expression ' US_Dealers.ID EQ DealerID

    You accidentally use the CF equals operator: "EQ".

    Instead of MS Access: «=»

    [Macromedia] [SequeLink JDBC Driver] [ODBC Socket] [Microsoft] [ODBC Microsoft Access driver]...

    in a query expression. AND SaleDate BETWEEN #10/1/2009 #-October 18, 2009 #'.

    I don't see how CreateODBCDate() would produce these values.  But maybe it's just a quirk of the error message?

  • What is the problem with this pl/sql code?

    What is the problem with this statement of the cursor? I am getting PLS-00341 error for her:
    CURSOR cur_rsource(p_sql_stmt IN VARCHAR2) IS
            SELECT plan_table_output FROM v$sql s, table(dbms_xplan.display_CURSOR(s.sql_id, s.child_number)) t WHERE sql_text LIKE '''%'||p_sql_stmt||'%''';
    How to solve this problem?

    Thank you

    Published by: PhoenixBai on December 14, 2009 14:05

    I don't have time right now to study exhaustively, but for me his vomit ORA-00942 table or view does not exist on this line:

        SELECT sql_id, child_number into tmp_sql_id, tmp_child_number
             from v$sql where sql_text like sql_statement||'%' and sql_text not like '%v$sql%';
    

    I am able to select from v$ sql in normal SQL as user I am compiling as, so don't know why it's complaing.

    Anyone know if there are certain restrictions on access to the views v$ through PL/SQL?

    EDIT: http://www.dbasupport.com/forums/showthread.php?t=22299

    Access to the views of $ v seems to be through a role - try giving explicit access to it.

    As SYS, you must grant select permissions on V_$ SQL (V$ SQL is synonymous with V_$ SQL) to your owner of the procedure. Just tested on my system and it allows him to compile.

    Published by: Cyn on December 14, 2009 10:30

Maybe you are looking for

  • Update of Java 7 13 not recognized by Firefox 18.0.2

    I recently updated my java update version 7 13 and FF 18.0.2. Somewhere between the two, Firefox no solitaire doesn't recognize Java. I tried to completely remove Java and then reinstalling Java 7u13, but Firefox doesn't recognize. It does NOT appear

  • Envy 15 k233ca: memory upgrades and hhd

    I'm trying to find out if the k233ca has a capacity of upgrade. By reading the plug here and there, the motherboard has 2 slots and there is 1 to 8 GB 1600 Mhz DDR3L module. When I called customer service to see if there was a favorite of the seller,

  • HP Pavilion No. 15: Can I install a second hard drive?

    There is a 500 GB HARD drive in my laptop. I want to add a 240GB SSD next to my existing HARD disk drive. Is this possible? If not, please tell me how then to SSD.

  • ImageBrowser does not appear in the menu AutoPlay Windows8

    I use EX ImageBrowser (currently at 1.4.0.5 level) on my computer of Windows8.  After a few initial setting issued (SilverLight, etc.) last may he worked satifactorily - except that it does not appear in the menu Windows Autorun for camera memory car

  • Dell will not restore

    I have a Dell Dimension B110. with windows XP... I left (even younger) children use this pc. It has become practically worthless. When I bought the computer I had several CDs with it.  As I read in the owner's manual, I found that the computer could