LOV shows no results, but SQL Workshop does.

Hello,
I am using a select list with a named LOV. The select statement returns results when executed with SQL Workshop, but when I use the named LOV with any select item it allways shows no results.
I already checked the assigned schema and everything seems to be correct.
Is this a bug in APEX 3.2.1 ?
Best regards
Tareq

I would try a couple of things:
1. Trying passing the query into a report region to get a better look at what it is returning - at least it will rule out a problem with LOV per se i.e. if it doesn't run as a straight report then we know its query-related.
2. create a before header process to output the value of apex_util.get_default_schema to ensure that a valid value is returned. Something along these lines:
begin
   wwv_flow.debug('apex_util.get_default_schema: '|| nvl(apex_util.get_default_schema,'invalid value');
end;If you re-run the page with 'Debug' switched on, you should see if a result is returned - this may well return a different value to what you were expecting.
On that note, obviously I have no idea what your application is trying to ultimately achieve, but I wonder if the default schema user is what you are looking for. The reason I say this is surely you would always have the same user (namely 'PUBLIC' or whatever DAD user you use to link to your oracle db) - unless you have multpile DADs and different instances referencing the same p_users_db table, I don't see how this is helpful to you.
Edited by: JoelC on 26-Apr-2010 09:19

Similar Messages

  • SQL Report not showing data - available in SQL Workshop and SQL Developer

    I am having an issue with developing a SQL Report in APEX 3.2.1. I run the code in both SQL developer and SQL Workshop and I get data pulled back (both against my development environment). When I run the same code in a SQL Report region, it returns no data available. Does anyone have any idea what would be causing this? Other regions on the page accessing different tables in the same schema return data without issue. Any help would be appreciated.
    Thanks
    Freddie

    Could you explain the last comment a bit more. Here is a bit more info just in case I touch on the info with it. The db schema is BPAMGR, the Workspace is BPAMGR. We use the same schema for all of our reporting. All of our tables are in the same schema. We don't use any tables outside of this schema. Our APEX workspace has been associated to only this schema. The tables are able to be queried by SQL Workshop in the same APEX instance that the report application is under.
    Freddie

  • HT2731 My iPad does not show in iTunes but my iPod does why is this?

    My iPad does not show in my iTunes but my iPod does. I get a message saying there is a error and a long number anyone help. Thanks

    It may have something to do with a conflict with any antivirus or security software that you may be running. I don't know if you've read this, but here is Apple's support article for Windows. You say you keep fixing the problem - I assume you mean by reinstalling iTunes?
    http://support.apple.com/kb/TS1538

  • SharePoint Search Results Not Showing all Results but in Refiners showing that Type of File is existing

    Hi Team,
    We have configured the Search Results and Search Refiner webpart in our Page. In few cases we are seeing that in Search Refiner we seeing the type of file is existing. But the respective file type files are not appearing in Search Results. When we click
    on respective Search Refiner Type then the Search Result showing the respective value.
    Could anyone help us on this.
    Thanks, Dinesh
    Dinesh Pulugundla, Microsoft Certified Technology Specialist.

    Hello,
    We are currently looking into this issue and will give you an update as soon as possible.
    Thank you for your understanding and support.
    Regards,
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • Numbers don't show german umlaut but quick view does

    I do have a problem opening CSV files in Numbers.
    I have a shared folder with VirtualBox. The virtual HD is formatted in FAT32. With Windows I created a CSV file which contains german umlauts like ÄÖÜ.
    When I open the CSV with the "quick view" (press space when file is selected in finder, the CSV is displayed as a nice Table and all Umlauts are OK.
    When I double click the CSV file to open it in Numbers, the Umlauts are not displayed. Opening in Text Edit is the same result, no Umlauts.
    ö = ^
    ß = fl
    ü = ¸
    ä = ‰
    I think this is an encoding problem, but why is "quick view" displaying it correct. I'm confused.
    Thanks for any help.

    Hello
    I cannot find any encoding settings for opening files in Numbers 09.
    A simple and obvious solution would be to save CSV file in UTF-8 in FAT32 volume in VirtualBox if possible.
    One other method is to copy the CSV file to HFS+ volume and set its extended attributes to specify its text encoding. This method is only changing the metadata of the file and so is less intrusive than to convert the data itself to different text encoding. When text encoding extended attribute is properly set, Numbers 09 (and TextEdit.app set to use "Automatic" encoding option in opening files) will open it in the specified text encoding.
    The following AppleScript script might help to set the extended attributes (OSX 10.5 or later only). Recipe is as follows.
    A1) Open /Applications/Utilities/AppleScript Editor.app, copy the code of set_latin1_xattr.applescript listed below and save it as application (bundle) in the folder where target CSV files reside.
    A2) Double click the saved applet and it will set the com.apple.TextEncoding extended attribute of the *.csv and *.txt files in the same folder where the applet resides to Latin 1 when they are recognised as 'ISO-8859 text' by file(1) command.
    -- set_latin1_xattr.applescript
    _main()
    on _main()
        set p2m to (path to me)'s POSIX path
        if p2m ends with "/" then set p2m to p2m's text 1 thru -2
        set sh to "
    # set current directory to parent directory of script (or die)
    cd \"${0%/*}\" || exit 1
    # add com.apple.TextEnncoding xattr for Latin-1
    # for *.csv and *.txt files, of which file info contains 'ISO-8859 text', in current directory
    for f in *.{csv,txt}
    do
        if [[ $(file \"$f\") =~ 'ISO-8859 text' ]]
        then
            xattr -w com.apple.TextEncoding \"WINDOWS-1252;$((0x0500))\" \"$f\"
        fi
    done
        do shell script "/bin/bash -c " & sh's quoted form & " " & p2m's quoted form
    end _main
    Another method is to convert the text encoding itself as you have already done using TextEdit.app.
    The following AppleScript might help to convert text encoding from latin-1 to utf-8 in bulk. Recipe is basically the same as the above.
    B1) Open /Applications/Utilities/AppleScript Editor.app, copy the code of convert_latin1_to_utf8.applescript listed below and save it as application (bundle) in the folder where target CSV files reside.
    B2) Double click the saved applet and it will convert the text encoding of the *.csv and *.txt files in the same folder where the applet resides to UTF-8 when they are recognised as 'ISO-8859 text' by file(1) command. Also it sets the extended attribute for text encoding accordingly.
    -- convert_latin1_to_utf8.applescript
    _main()
    on _main()
        set p2m to (path to me)'s POSIX path
        if p2m ends with "/" then set p2m to p2m's text 1 thru -2
        set sh to "
    # set current directory to parent directory of script (or die)
    cd \"${0%/*}\" || exit 1
    # make temporary directory
    temp=$(mktemp -d /tmp/\"${0##*/}\".XXXXXX) || exit 1
    # convert text encoding from ISO-8859-1 to UTF-8
    # for *.csv and *.txt files, of which file info contains 'ISO-8859 text', in current directory
    for f in *.{csv,txt}
    do
        if [[ $(file \"$f\") =~ 'ISO-8859 text' ]]
        then
            iconv -f ISO-8859-1 -t UTF-8 \"$f\" > \"$temp/$f\" \\
            && xattr -w com.apple.TextEncoding \"UTF-8;$((0x08000100))\" \"$temp/$f\" \\
            && mv -f \"$temp/$f\" \"$f\"
        fi
    done
    # clean up temporary directory
    rm -rf \"$temp\"
        do shell script "/bin/bash -c " & sh's quoted form & " " & p2m's quoted form
    end _main
    Note that the extended attribute is not supported in FAT32 and so the above methods only work in HFS+ formatted volume.
    Scripts are briefly tested with Numbers 2.0.5 under OSX 10.5.8 and 10.6.5. Please make sure you have backup CSV files before applying the above scripts.
    Good luck,
    H

  • Search function does not work, shows ( ) results but won't expand, javalangnullpointer error message

    I have a storm 9530 , verizon, v4.70.75 platform 4.0.0.94
    3 apps installed, facebook,, weather channel and live strong calorie counter, 44.7 mb free space.
    I just got this phone because I beat up my curve.
    I tried to search my device so find something on the calendar.  I opened the search, clicked the calendar and unclicked evertything else.  hit the menu button, highlighted search.... now it goes weird..... either NOTHING happens and the phone locks up.  PULLED the battery and started over.... sometimes it WILL search.... shows (3) results, but not what the results are, hit menu and EXPAND and nothing happens..... OR I get the uncaught exception, javalangnullpointer error. 
    Please help!  I rely heavily on my calendar and the search funciton.

    Hello,
    You are running an extremely old (and EOL, btw) device, further hampered with a very out of date OS (they offer into the 5.x.x.x range OS for that model). The device was never known for it's stability (I had one for a while), and may indeed never function well for you. (And I never bothered with any of the search capabilities, especially in older OS levels.)
    What I'd recommend is a clean OS reload...the simplest way is to, on a PC (you cannot do this on MAC):
    1) Uninstall, from your PC, any BB OS packages
    2) Make sure you have the BB Desktop Software already installed
    http://us.blackberry.com/apps-software/desktop/?lid=us:bboftwareesktopSoftware&lpos=us:bboftware
    3) Download and install, to your PC, the BB OS package you desire:
    http://us.blackberry.com/support/downloads/download_sites.jsp
    4) If that OS package is from a carrier other than the carrier for which your BB was originally manufactured, then delete, on your PC, all copies of VENDOR.XML...there will be at least one, and perhaps 2, and they will be located in or similarly to (it changes based on your Windows version) these folders:
    C:\Program Files (x86)\Common Files\Research In Motion\AppLoader
    C:\Users\(your Windows UserName)\AppData\Roaming\Research In Motion\BlackBerry\Loader XML
    5) Launch the Desktop Software and connect your BB...the software should offer you the OS package you installed to your PC. If, during the process, your BB presents a "507" error, simply unplug the USB cord from the BB and re-insert it...don't do anything else...this should allow the install to continue.
    Don't forget to backup.
    If you are on MAC, you are limited to only your carriers sanctioned OS packages...but can still use any levels that they currently sanction. See this procedure:
    KB19915How to perform a clean reload of BlackBerry smartphone application software using BlackBerry Desktop Software
    You may also want to investigate the use of BBSAK (bbsak.org) to perform the wipe it is capable of.
    You may also want to try this procedure to perhaps narrow down the precise causal item:
    Load your OS "bare bones"...if anything is optional, do not install it.
    If the behavior presents immediately, then try a different OS with step 1
    If the behavior does not immediately present, then run for as long as it takes for you to be sure that the behavior will not present.
    Add one thing -- no matter how tempting, just one.
    If the behavior does not present immediately, then again run for long enough to be sure it will not have the same problem
    Repeat steps 4 and 5 until all things are loaded or the behavior presents
    When the behavior presents, you know the culprit...the last thing you loaded.
    If the behavior does not re-present, then you know that either step 1 or 2 cured it.
    If the behavior presents no matter what, then you likely have a hardware level issue for which no amount of OS or software can cure.
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Aggregation not showing correct results in 10g

    Hi,
    We have created a calculated column in BMM layer as x=Sum(Amount)/sum(Distinct Members).
    In the report, individually it is showing correct results but when we are calculating "Total By" it is showing wrong total.This is because of while calculating totals it is taking the formula as x=Sum(Amount)/sum(Members).
    Aggregations are kept as default for all the columns in the report .
    Please help me to solve this issue.

    For this calculated column set aggregation level as sum.

  • Select works in SQL Workshop, but not as an LOV

    I want all venues to appear in my LOV
    With their affiliated Performing Arts Center, if one exists.
    I get the perfect results when I run it in SQL Workshop.
    When I try to create the LOV, I'm told it's invalid, because it includes an in-line query and the first FROM clause must not belong in the in-line query.
    Not quite sure what it means, but I'm sure I don't know how to fix it...
    SELECT
    v.VENUE_NAME, p.pac_name d,
    v.VENUE_ID r
    from pac p, VENUES v
    where v.venue_pacid = p.pac_id(+)
    thanks
    Marion

    I'm told it's invalid, because it includes an in-line query and the first FROM clause must not belong in the in-line query.Think that's just an example of why a query might be invalid, as this query clearly doesn't have that.
    Jari's right, it has to only return 2 columns, so the venue and PAC values need merged somehow, like:
    SELECT
             v.VENUE_NAME || nvl2(p.pac_name, ' (', null) || p.pac_name || nvl2(p.pac_name, ')', null) d,
             v.VENUE_ID r
    from     pac p, VENUES v
    where    v.venue_pacid = p.pac_id (+)

  • Using firefox 14.0.1. Loading a link using right-click and "Open Link In New Window", results in new window opening but address bar does not show URL..

    Using firefox 14.0.1. Loading a link using right-click and "Open Link In New Window", results in new window opening but address bar does not show URL. However, if I right click on a link and select "Open Link In New Tab", the Tab shows URL in address bar. So it's working when it's a New Tab but not a New Window.

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • Why this query does not show the result?

    Why the query with the schema prefixed does not show the result and the query without schema display the correct results?
    SQL> select data_object_id,object_type from dba_objects where object_name='HR'.'JOBS';
    select data_object_id,object_type from dba_objects where object_name='HR'.'JOBS'
    ERROR at line 1:
    ORA-00933: SQL command not properly ended
    SQL> select data_object_id,object_type from dba_objects where object_name='HR.JOBS';
    no rows selected
    SQL> select data_object_id, OWNER, object_type from dba_objects where object_name='JOBS';
    DATA_OBJECT_ID     OWNER                          OBJECT_TYPE
    69662              HR                                 TABLE
                       OE                                 SYNONYM
    SQL> SELECT USER FROM DUAL;
    USER
    SYS

    Hi,
    the column object_name refers to a object_name which is 'JOBS', the column owner refers to the owner 'HR', the value isn't stored together, so you have to select the two columns. It is the same behaviour as every other table/view. Have a look at the values in the view DBA_OBJECTS.
    Herald ten Dam
    Superconsult.nl

  • Tables are deleted but database size does not change in sql server 2008r2

    Hi All,
    20GB Tables are deleted in my database but database size does not change and disk size showing same size.

    Hi ,
    I have ran the Disk usage by Top Tables report and Identified couple of tables with unwanted data for last 5 years. I have deleted the data for the first 3 years and then ran the Disk usage by Top Tables report again. When I compared the report before
    and after the data deletion, I have noticed certain facts which is not matching with what I know or learned from experts like you. The following are the points where I am looking for clarification:
    1.Reserved (KB) has been reduced. I was expecting the data Reserved (KB) will remain the same after the data deletion. 
    2. The Data(KB) and Indexes(KB) fields have been reduced as expected. The Unused(KB) field have been increased as expected.
    I was expecting the total of Data(KB) and Indexes(KB) field space gained will be equal to the Unused(KB) field gained after deleting the data. But that is not the case. When I deducted(subtracted) the difference in  the Reserved(KB)(Difference before
    and after data deletion) field from the Total of space gained from the data deletion is equal to the Unused(KB) gained field value.
    I am not a SQL expert and not questioning but trying to understand whether we really gain space by deleting data from the tables. Also keen to get the concepts right, but my testing by deleting some records confused me.
    Looking ahead to all your expert advice.
    Thanks,
    Vennayat

  • My iPod touch won't show up on iTunes but my iPhone does, My iPod touch won't show up on iTunes but my iPhone does

    My iPod touch doesn't show up in iTunes but my iPhone does help

    See
    iOS: Device not recognized in iTunes for Windows
    - I would start with
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    or              
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    However, after your remove the Apple software components also remove the iCloud Control Panel via Windows Programs and Features app in the Window Control Panel. Then reinstall all the Apple software components
    - New cable and different USB port
    - Run this and see if the results help with determine the cause
    iTunes for Windows: Device Sync Tests
    Also see:
    iPod not recognised by windows iTunes
    Troubleshooting issues with iTunes for Windows updates

  • After upgrading to iOS 8, the weather app does not show up results for any of the Indian States/cities

    After upgrading to iOS 8 on my iPhone 5, the weather app does not show up results for any of the Indian States/cities. Can Apple look into this or does anyone have a solution to this.

    Swipe from bottom of days listed ("Wednesday, Thursday, Friday, etc")  upwards.  I thought it was gone too but it's still there~just takes different way to access it.

  • Added Schemas can be viewed in SQL workshop but can't while creating Form

    Hi Friends
    We are using APEX 3.1 and Oracle 10.2.0 at back end.
    I can assign other schemas to a work space successfully.
    The Problem is that
    Added schemas can be viewed in SQL Workshop (SQL commands)
    But can not view the added schemas in the list when want to create a form based on table
    Regards
    Jazib

    Jazib,
    When you select an application the application's Owner attribute determines which tables/views you see in the wizard LOVs. If your application owner (parsing schema) is FOO and you want to create a form on table BAR.T then you have to grant select on BAR.T to FOO.
    Scott

  • Works in SQL Workshop, not in LOV Definition

    I developed a query
    select distinct b.pointname display_value,a.pointnumber return_value
    from e_sub08@scadahst_xajardb a, analogpoint@scadahst_xajardb b
    where a.pointnumber = b.pointnumber
    in SQL Workshop and I get the dataset that I need when I run it there. When I went to plug it into an LOV as a shared component in an application, I get the message "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."
    Why in one, but not the other? Any suggestions as to what I need to change?
    Thanks!

    Hi Kofi,
    Many thanks for that, Kofi - I hadn't even noticed that that option was available!!!!
    In order to set this up, you need to define the LOV through Shared Componets, Lists of Values rather than on the page item itself. (Note that there is a typo in the example code - depno should be DEPTNO :D )
    I've just set up an example using this: [http://apex.oracle.com/pls/otn/f?p=34398:12] - pick any dept apart from the one shown at the top as being deptno = 10 and the second list is empty. Select the department that is deptno = 10 and you get the employees.
    The LOV is defined as:
    IF v('P12_DEPTNO') = '10' THEN
      RETURN
      'SELECT ename d, empno r '||
      'FROM emp '||
      'WHERE DEPTNO = 10 ORDER BY 1';
    ELSE
      RETURN
      'SELECT ename d, empno r '||
      'FROM emp '||
      'WHERE DEPTNO = 1234 ORDER BY 1';
    END IF;Therefore, you could have as many SELECT statements as you like provided all of them return a valid LOV recordset
    Andy

Maybe you are looking for