Why are no rows returned when I run a basic report?

I have setup a parameterised report using the query:
select p.id,p.first_name, p.surname, p.satsang_mandal, s.description, s.preference, p.phone, p.mobile
from personal_details p, seva_prefences s
where s.preference >= 2 and
s.sid= :P_10
and p.id=s.vid
and p.satsang_mandal =:P_11
order by s.preference DESC
Unfortunately no rows are returned with the predicate p.satsang_mandal =:P_11 where :P_11 is a static LOV's. If I use a predicate:
and p.satsang_mandal lik :P_11 || '%'
then it works fine - anyone got any ideas?
From sqlplus I can execute:
select p.id,p.first_name, p.surname, p.satsang_mandal, s.description, s.preference, p.phone, p.mobile
from personal_details p, seva_prefences s
where s.preference >= 2 and
s.sid= :P_10
and p.id=s.vid
and p.satsang_mandal ='TEST'
order by s.preference DESC

Hi,
are you sure that you didn't make a typo with your :P_11 page item reference? Because APEX doesn't complain if a page item doesn't exist.
That would also explain that if you add a '%' everything is found -> no restriction at all.
When you run your page in debug mode, check which value is transfered/stored when the page is submitted. See the beginning of the debug output.
Patrick
My APEX Blog: http://inside-apex.blogspot.com
The ApexLib Framework: http://apexlib.sourceforge.net
The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

Similar Messages

  • Why are certain keys disabled when I run Flash Player?

    I am building a resource for my students which allows text entry into a text input text field. When I try to type the answer a number of keys are disabled. I have tried disabling keyboard shortcuts in the Flash editor. I have then tried closing the program and just running it in the stand alone Flash Player. The list of keys that do not work are given below.
    The keys that do not work are 5,6,8,9,0,P,J,K,B, and X. I have not tested other alphanumeric characters.
    the Flash Player version is version 9.
    I am using Adobe Flash 5 at home but save as version 4 for use in school. I am running ActionScript 2. 
      Regards
      teacheRuss

    Kglad
    I am not detecting any keys. My Flash file is the start of a simple quiz. ans1 (in the code below) is a text box instance. The actionscript compares what is typed in with a number of given answers. The trouble is if I make questions that need any of the keyboard keys that do not work then the anser cannot be inputted. Thsiis my problem.
    Code given below:
    Q1.onRelease = function() {//Q1 carries out this function when
                                //the mouse is released Q1 is hte button named and is assigned this script
        trace(ans1.text); //ans1 is the variable name for the data entry box. The trace
                            //method traces ans1 text entered in the output window
        if(ans1.text == "-1" || ans1.text == "minus 1" ||
           ans1.text == "Minus 1" || ans1.text == "Minus one" ||
           ans1.text == "minus one") //checks the data entered into the box where ==
                                     //is equal to and || means OR
             _root.gotoAndStop(3) // if ans1 is equal to any ofthe above the playhead jumps to frame 3
                                   // for the welcome message then closes correct condition
          } else  {                  // else allows the playhead to jump to frame 4 with the
                                    // incorrect answer
             _root.gotoAndStop(4)
          }                        // closes the incorrect condition
    }                            // closes the script

  • Why are the options for "When Firefox starts" NOT clickable in Firefox 5? I want to choose "Windows and tabs that where opened last time you accessed the net" but Firefox won't let me.

    In the previous version of Firefox one could choose to save tabs so that when Firefox opened, all the tabs from the previous sessions appeared. This was done in Settings > Options > General > Startup. In the menu for the "When Firefox Starts" one had the option for "Windows and tabs that where opened last time you accessed the net." in Firefox 5.0, this menu is gray and not clickable. Help, please?

    ''Why are the options for "When Firefox starts" NOT clickable in Firefox 5?"
    Possibly you are not saving your "browsing history" which is what the session history is tied into.
    '''Not saving History''' -- check your settings for '''Tools > options > Privacy'''', make sure you are not clearing more than just cache in "Settings for Clearing History"
    * http://img232.imageshack.us/img232/4928/clearcachew.png
    * clearing your history at end of session, cache is the only one you would want to clear at end of session, if you don't want to lose things
    There are several things that are related to private browsing and not saving History
    * Private Browsing Ctrl+Shift+P
    * You selected "Never remember history" in first drop-down of Tools > Options Privacy and all of the check marks disappear (See picture above)
    * "Permanent private browsing mode" was check-marked under "Use custom settings for history" in the first drop-down of Tools > options > Privacy (see picture above)

  • Why are my notifications silent when I use my 4s on Toyota Fortuner bluetooth system, Why are my notifications silent when I use my 4s on Toyota Fortuner bluetooth system

    Why are my notifications silent when I connect my 4s to my Toyota Fortuner Bluetooth system ?

    Hi,
    The 'features' you refer to are not anything that a customer should really care about, so why don't you just turn them off.
    Do you really care about "Location-based iAds" - I've hardly ever even seen iAds!
    Do you really care about the time-zone updating based upon your international location - unless you are a very frequent traveller, this 'feature' is pretty useless and can be turned off without losing functionality that matters.
    The specific features to turn off are indicated in my post above - they are all in one place, they can all be turned off in about 20 seconds, and your problem will go away, and you will not lose any important functionality.
    Obviously I would agree with your point if you had to refrain from using the phone or making text messages, or playing games, or taking photos... all of which are genuinely useful features of a phone.
    But I disagree with you that you should deny yourself reasonable battery life on the basis that you need the specific features that made you buy this "Apple product and not an Android one" when these features are in fact not first-line, or even-second line features... they are just 'things' that make very little difference to how a person would use their iPhone at all.
    Anyway, that's my thoughts on it. Yes of course it would be great if Apple could fix the bug but as it isn't showstopping, I find it hard to get worked up about it

  • Why are two pages yoked when I prepare a newsletter in Pages?  How can I delete one without the other?

    Why are two pages yoked when I prepare a newletter?  How do I delete one without the other?

    They are all part of one Section. Just as you do not (hopefully) rip pages out at random from books, the pages of a Section are linked by the text that flows from one to the other.
    If you want to move or delete particular page/s Insert a Section Break at the end of the page before.
    Peter

  • HT3702 why are you charging me when i have not order any apps

    Why are you charging me when i have not order any apps

    Well I don't know. I just really, really, really wanted to test a legit versin of Angry Birds. Thought you wouldn't mind.
    But since you insist--
    iTunes Store Support
    http://www.apple.com/emea/support/itunes/contact.html

  • Why are my tags deleted when I replace pages?

    Why are my tags deleted when I replace pages?

    Hi Stephanie,
    My suggested workaround: In Acrobat Pro, in the Page Thumbnails pane, select the pages that you want to replace then right click and select "Delete pages". Then, right-click the page just ahead of where the replacement pages will go, select "Insert pages", and follow the prompts. This is just the way I do it, not the only way.
    Tiger26 is making the excellent suggestion that, prior to inserting pages, encapsulate the tags for the pages to be inserted using a Section tag. This makes the post-insertion chore of dragging the tags to their proper place in the tag structure easier.
    a 'C' student

  • Why are my styles disappearing when I cut and paste?

    Why are my styles disappearing when I cut and paste?

    Go to Preferences, and then into ClipboardHandling. Click a radio button choice for All Information instead of Text Only.

  • Why are my emails aborted when I'm trying to send pictures?

    Why are my emails aborted when im trying to send pictures?

    What is the size of the email attachments you are trying to send?  Many email providers limit the message content size some where in the 2-3 MB range, some larger some smaller.  If your photos are multile MBs that could cause the provider to reject the email.
    Try resaving a rejected photo to a smaller size/resolution and see if it goes successfully.

  • No rows returned when passing unicode criteria using UNISTR

    I'm trying to send a query that's looking for data from a column that is UTF16. The character set of the 10.2.0.4 DB is WE8ISO8859P1 but the national character set is UTF16, and the column in question is set to nchar.
    I am converting the character to hex and sending it through wrapped in the UNISTR function so that the DB can understand the unicode character (the query goes through as ASCII text but should get back a row with a unicode character).
    The problem is that when I issue the query in a program like SQL Developer or Toad, it returns the row, but when I do it through a .NET web page it doesn't return anything. Just to make sure, I ran the page in debug mode and took the query just before it's sent through the connection and pasted it in SQL Developer and it still returned the row, so the query text wasn't getting messed up. The query is something along the lines of the following (with some other unessential criteria omitted):
    SELECT * FROM <table>
    WHERE UPPER(<column>) LIKE UNISTR('%\1E24UQ%')
    These are the highlights from the code executing the query:
    OracleConnection oConn = new OracleConnection();
    oConn.ConnectionString = "Password=" + password + ";User ID=" + username + ";Data Source=" + database;
    oConn.Open();
    string sSqlLogs = "SELECT * FROM table WHERE UPPER(column) LIKE UNISTR('%\1E24UQ%')"
    OracleDataAdapter oAdaptLogs = new OracleDataAdapter(sSqlLogs,oConn);
    oAdaptLogs.Fill(dsLogs,"LOGS");
    The fill operation returns zero rows. Anyone have an idea of why this might be happening?
    --> Never mind. I figured it out.
    Edited by: psaleh on Aug 17, 2010 7:43 AM

    I am bumping into this when I use a primary key in my where clause. What was the problem?

  • Why am I finding this when I run disk utility? ACL found but not expected on "Library/Application Support/Apple/ParentalControls/Users"

    I am finding this when I run repair disk permissions in disk utility:
    ACL found but not expected on “Library/Application Support/Apple/ParentalControls/Users”
    Why is there an access control list on parental controls on my MacBook?  I don't use parental controls and I am the only user of this MacBook. I'm an old guy too, so it's not my Mom putting controls on the MacBook! ;-)
    Thanks!
    MacBook Pro 9, 2
    System Version: OS X 10.8.5 (12F45)
    Kernel Version: Darwin 12.5.0
    Boot Mode: Normal

    From the article I posted a hyperlink to in my 1st post (at bottom): You can also usually ignore any "ACL found but not expected..." message. These messages can occur if you change permissions on a file or directory; they are accurate, but generally not a cause for concern.

  • No rows returned when using sql in XQuery.

    Hi all,
    I have a small table on a db with seven cols and three rows. I am doing the following xquery, but the db is returning an empty rowset when I know there sould be 3.
    <WebPage>
    for $i in sqlquery("select * from project")/row
    return
    <project>
    {$i/title}
    {$i/image}
    {$i/icon}
    {$i/version}
    {$i/start_date}
    {$i/home}
    {$i/address}
    </project>
    </WebPage>
    There is no problem with the db connection, as it is one I have used before for doing plain sql searches remotely. Does any one know why this would be happening?
    Regards,
    Simon

    Hi Bart,
    try this.....
    To execute such XQuery queries that use the sqlquery function, you would need to initialize the Java connection information in the XQueryContext before executing the query. For example, your Java program would be something like this,
    // get the connection (for example, using the thick JDBC Driver)
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn =
    DriverManager.getConnection("jdbc:oracle:@","scott","tiger");
    // create a context using that connection..
    XQueryContext ctx = new XQueryContext(conn);
    // create a string from the file
    Reader strm = new StringReader(
    "FOR $i IN sqlquery(\"select * from scott.emp\")/ROW "+
    " RETURN <EMP empno=\"{$i/EMPNO}\">$i/ENAME,$i/SALARY</EMP>");
    // prepare the query
    PreparedXQuery xq = ctx.prepareXQuery(strm);
    // get a resultset
    XQueryResultSet rset = xq.executeQuery();
    while (rset.next())
    XMLNode node = rset.getNode(); // get result nodes
    System.out.println(" NODE "+ node.getNodeName());
    node.print(System.out);
    source:==>http://otn.oracle.com/sample_code/tech/xml/xmldb/jxqi.html
    Good luck
    Achim

  • Why are cookies not deleted when I close Firefox?

    Hey,
    My problem is that I set Tools / Options / Privacy / History to "Use custom settings for history", and then under cookies I set Keep until: to "I close Firefox".
    Yet, when I close my browser and restart none of the cookies are deleted. If I save my tabs, I stay logged in on the websites that are open on the saved tabs. But even if I close the website, and then quit. And then reopen the website after launching Firefox again, I am still logged in. Whereas Firefox is set not to remember any of my usernames or passwords, so the only way this can happen is via cookies. Therefore, the cookies are not deleted. But I can also see it in the list of cookies: it's full of old stuff.
    So why are cookies not deleted despite this setting?
    Firefox has beeen pretty soft on privacy lately, and frankly I don't understand why. The possibility to have history older than X days automatically deleted has also been gone for a long time, and now this cookie setting doesn't work, either.

    Hi madperson,
    I turned this setting on a long time ago. Basically, it's one of the first things I do after installing my OS and Firefox. So there shouldn't be so many old cookies there.
    But anyways, just now I deleted all the cookies manually via Tools / Options / Privacy / Show Cookies / Remove All Cookies to be sure that all the old stuff is wiped out. And yet it still doesn't work.
    I logged in to my Gmail account (the Remember Me box ain't checked), closed the tab containing my Gmail account and then closed Firefox. After that I verified in the Task Manager that firefox.exe is indeed not running anymore. So Firefox definitely shut down properly. Then, I restarted Firefox and opened a tab, entered gmail.com, and I was still logged in, therefore the cookies were not deleted.
    I have the 10.1.101.000 version of ZoneAlarm, which as it turns out after googling it is indeed not the latest version (it was released in March 2012). The ZoneAlarm Firefox add-on that automatically comes with the firewall is disabled in Firefox.

  • Why i get error msg when i run my program? (java.lang.NoClassDefFoundError)

    i have compile and run my program. First time the program can run. But after that when i run, come out error messege as below:
    java.lang.NoClassDefFoundError: FormPoster (wrong name: search/FormPoster)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    Exception in thread "main"
    what can i do? thank very much

    Hello,
    i have compile and run my program. First time theprogram can run.
    But after that when i run, come out error messegeas below:
    java.lang.NoClassDefFoundError: FormPoster (wrongname: search/FormPoster)
    Check your FormPoster class: the classname has to be
    the same as
    the file name and the class should be stored in its
    correct directory
    (the sub directory structure should reflect the
    package name).
    kind regards,
    JosYou should also check your clsspath if you are using packages.

  • Gob save me .why forms pop canvos poplist when i run my forms?

    when i run my forms , always pop canvos poplist ,force me to select a canvos . the canvow poplist like a lovs diaglong ,why ?

    Does that make Duncan a gob? LOL

Maybe you are looking for