Query filtering rows in the ViewObject but works fine when run in sql

Hello,
The below query returns 8 rows when run in SQL Plus but the same query when used in the viewobject, its only returning 4 rows. I tried in all possible ways but not sure what's happening.
SELECT
tt.assignment_number,
tt.tab_name,
tt.old_value,
tt.new_value,
tt.oracle_value
FROM TestTable tt
WHERE tt.ppa_id = :1
AND ((:2 IS NULL) OR (:3 = tt.old_col))
AND ((:4 IS NULL) OR (:5 = tt.new_col))
Any suggestions are appreciated.
Thanks
--KK                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Try this
OAViewObject OAViewB = (OAViewObject)OAAppl.findViewObject("DisplayDetailsVO");
OAViewB.setWhereClauseParams(null);
OAViewB.setWhereClauseParam(0,Integer.parseInt(Pid));
OAViewB.setWhereClauseParam(1,Changes_Flag);
OAViewB.setWhereClauseParam(2,Changes_Flag);
OAViewB.setWhereClauseParam(3,Oracle_Flag);
OAViewB.setWhereClauseParam(4,Oracle_Flag);
OAViewB.setMaxFetchSize(-1);
OAViewB.executeQuery();
Thanks
Shree

Similar Messages

  • I have a production mobile Flex app that uses RemoteObject calls for all data access, and it's working well, except for a new remote call I just added that only fails when running with a release build.  The same call works fine when running on the device

    I have a production mobile Flex app that uses RemoteObject calls for all data access, and it's working well, except for a new remote call I just added that only fails when running with a release build. The same call works fine when running on the device (iPhone) using debug build. When running with a release build, the result handler is never called (nor is the fault handler called). Viewing the BlazeDS logs in debug mode, the call is received and send back with data. I've narrowed it down to what seems to be a data size issue.
    I have targeted one specific data call that returns in the String value a string length of 44kb, which fails in the release build (result or fault handler never called), but the result handler is called as expected in debug build. When I do not populate the String value (in server side Java code) on the object (just set it empty string), the result handler is then called, and the object is returned (release build).
    The custom object being returned in the call is a very a simple object, with getters/setters for simple types boolean, int, String, and one org.23c.dom.Document type. This same object type is used on other other RemoteObject calls (different data) and works fine (release and debug builds). I originally was returning as a Document, but, just to make sure this wasn't the problem, changed the value to be returned to a String, just to rule out XML/Dom issues in serialization.
    I don't understand 1) why the release build vs. debug build behavior is different for a RemoteObject call, 2) why the calls work in debug build when sending over a somewhat large (but, not unreasonable) amount of data in a String object, but not in release build.
    I have't tried to find out exactly where the failure point in size is, but, not sure that's even relevant, since 44kb isn't an unreasonable size to expect.
    By turning on the Debug mode in BlazeDS, I can see the object and it's attributes being serialized and everything looks good there. The calls are received and processed appropriately in BlazeDS for both debug and release build testing.
    Anyone have an idea on other things to try to debug/resolve this?
    Platform testing is BlazeDS 4, Flashbuilder 4.7, Websphere 8 server, iPhone (iOS 7.1.2). Tried using multiple Flex SDK's 4.12 to the latest 4.13, with no change in behavior.
    Thanks!

    After a week's worth of debugging, I found the issue.
    The Java type returned from the call was defined as ArrayList.  Changing it to List resolved the problem.
    I'm not sure why ArrayList isn't a valid return type, I've been looking at the Adobe docs, and still can't see why this isn't valid.  And, why it works in Debug mode and not in Release build is even stranger.  Maybe someone can shed some light on the logic here to me.

  • SignTool.exe verify /pa returns exit code 1 from the code but works fine while running from command prompt

    Hi,
    I am using SignTool.exe from a new Process() to verify a codesigned assembly and it returns the exit code 1 whereas it returns exit code 0 while i run the same from Visual Studio Command prompt. Please let me know your thoughts...
    Here is my code snippet from VS2012 ultimate on Win7 PC.
    p = new Process();
                p.StartInfo.FileName = "C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v7.0A\\Bin\\SignTool.exe";
                string args = @"verify";
                p.StartInfo.Arguments =  args + " "+ "/pa " + "/v "+ name;
                p.Start();
                p.WaitForExit();
                pexitcode = p.ExitCode;
    //name = "C:\\Users\\v-maparn\\Documents\\Visual Studio 2012\\Projects\\CodesignVerification\\CodesignVerification\\bin\\Release\\Microsoft.IT.Core.dll"
    Thanks,
    Mani

    Hi Amy,
    Thanks for your reply. I am receiving the exit code 1 by the Process even though the SignTool is able to successfully verify the assembly. I ran the below command from command prompt and received no errors or warnings. I assume the exit code should be 0.
    I have also verified that this assembly has digital signature embedded as you can see from the output.
    output:
    C:\Windows\system32>signtool.exe verify /pa /v "C:\Users\v-maparn\Documents\Visu
    al Studio 2012\Projects\CodesignVerification\CodesignVerification\bin\Release\Mi
    crosoft.IT.Security.UI.SystemSecurityManagement.SSMUIWebHost.dll"
    Verifying: C:\Users\v-maparn\Documents\Visual Studio 2012\Projects\CodesignVerif
    ication\CodesignVerification\bin\Release\Microsoft.IT.Security.UI.SystemSecurity
    Management.SSMUIWebHost.dll
    Signature Index: 0 (Primary Signature)
    Hash of file (sha1): 1B58113B218260837A6B850561538A804B034F2A
    Signing Certificate Chain:
        Issued to: Microsoft Root Certificate Authority
        Issued by: Microsoft Root Certificate Authority
        Expires:   Sun May 09 15:28:13 2021
        SHA1 hash: CDD4EEAE6000AC7F40C3802C171E30148030C072
            Issued to: Microsoft Code Signing PCA
            Issued by: Microsoft Root Certificate Authority
            Expires:   Mon Aug 31 14:29:32 2020
            SHA1 hash: 3CAF9BA2DB5570CAF76942FF99101B993888E257
                Issued to: Microsoft Corporation
                Issued by: Microsoft Code Signing PCA
                Expires:   Thu Apr 24 14:33:39 2014
                SHA1 hash: 108E2BA23632620C427C570B6D9DB51AC31387FE
    The signature is timestamped: Mon Dec 30 02:58:12 2013
    Timestamp Verified by:
        Issued to: Microsoft Root Certificate Authority
        Issued by: Microsoft Root Certificate Authority
        Expires:   Sun May 09 15:28:13 2021
        SHA1 hash: CDD4EEAE6000AC7F40C3802C171E30148030C072
            Issued to: Microsoft Time-Stamp PCA
            Issued by: Microsoft Root Certificate Authority
            Expires:   Sat Apr 03 05:03:09 2021
            SHA1 hash: 375FCB825C3DC3752A02E34EB70993B4997191EF
                Issued to: Microsoft Time-Stamp Service
                Issued by: Microsoft Time-Stamp PCA
                Expires:   Wed Feb 11 14:11:31 2015
                SHA1 hash: D967AB4CF991F11DA6E318C880F1AF1A9C8D2C7C
    Successfully verified: C:\Users\v-maparn\Documents\Visual Studio 2012\Projects\C
    odesignVerification\CodesignVerification\bin\Release\Microsoft.IT.Security.UI.Sy
    stemSecurityManagement.SSMUIWebHost.dll
    Number of files successfully Verified: 1
    Number of warnings: 0
    Number of errors: 0
    C:\Windows\system32>
    Thanks,
    Mani

  • The iTune Remote App has stopped finding my iTunes library when connected to wifi from my main router, but works fine when connected via second wifi router on the same network (different SSID)

    I'm running iTunes Remote App from a couple of iPhone 5's and a first generation iPod Touch. iTunes is running on a PC - Windows 7. My home network runs two Wifi Routers, each with a different SSID. I've had no problems with the Remote app running this set up for the last 8 months but recently the App can only find my iTunes library when the iPhone/iPod is connected via one specific router, when connected to the network via the other router, no iTunes library is found. I'm also running an Apple TV and it's the same as the iTunes Library, only visible via the one SSID.
    Everything else seems to work fine when connected via either router, eg Internet on the iPhones (definitely via wifi)
    I've tried renewing the lease on the iPhone wifi connection, restarting everything.....several times.....
    It used to work fine, this only seems to have been a problem in recent weeks
    Any help or advice would be much appreciated
    Thanks
    Ian

    It turned out to be the firewall settings on our router. Her machine was sending traffic that our router interpreted as a DoS attack and blacklisted her Airport's MAC address. That's why it would work fine if she switched to Ethernet.

  • Mail won't send mail when in wireless mode but works fine when wired

    Ok, this happens all the time. I have several pop email accounts, all of which work fine when I am hooked in to an ethernet cable, but Apple Mail won't send any of my outgoing mail form any of my accounts when i'm am working wirelessly.
    I always get a message like:
    Cannot send message using server smtp.name.net
    I try to switch servers and I cycle through all of them, getting them same message, followed by things like:
    The server response was: 5.1.2 Bad or missing RCPT domain k39sm5757680wah
    Any advice.

    Go to Apple Menu > System Preferences > Network, choose Network Port Configurations from the Show popup menu, and make sure that the configuration used to connect to Internet appears at the top of the list. Leave checked (enabled) only the port configuration needed to connect to Internet and Built-in Ethernet (in that order if not the same), uncheck (disable) the rest of network port configurations and see whether that helps — if it doesn’t, turn ON again the ones you want enabled.
    You may use “network locations” to more easily switch between network settings if necessary, as described here:
    Using network locations in Mac OS X

  • My audio does not work playing videos for Firefox 4 but is fine when running WMPlayer, how can I fix/check this ?

    I get no audio output from internet videos like tutorials for the new ff beta and such but it works fine when I run Windows Medial Player latest version . Is there an easy way to correct this or check for a correct fix ?

    Try to install the new WMP plugin
    * http://kb.mozillazine.org/Windows_Media_Player#Missing_plugin
    See also http://kb.mozillazine.org/Plugin-container_and_out-of-process_plugins

  • LOV works fine when run from JDEV

    Hi OAF Gurus,
    I have an issue with one of the LOV population.
    It is an external LOV and I have created it as a seperate region and it works fine when I run from the Jdeveloper .
    When I deploy it in the server,it throwing me an error with a OAF exception saying "java.sql.SQLException: ORA-01008: not all variables bound"
    I have created a seperated controller for the external lov and initiate the query for it.
    But when I click the About this page for the Region,it says theres no controller for the region.
    How could this be solved?
    Can this issue be tracked somehow?Answers plz as this is immediate.......
    Regards,
    Magesh.M.K.
    Edited by: user1393742 on Jun 15, 2011 6:36 AM

    Hi Gyan,
    No I have not attached the controller through personalization.
    My requirement is like
    I need to create a lov item but I have to pass bind variables to the lov query.
    I think this can be achieved only through external LOV, so I created an external lov and created a new controller for it and initiated the query and attached that to the normal page.
    It runs fine through the Jdeveloper but when I deploy it, it is throwing an error saying bind variable not existing and I dont see a controller attached to the region.
    Cannot understand whats the reason behind it?
    Regards,
    Magesh.M.K.

  • Working fine when running with eclipse, when exported, it doesnt.

    I have made a little mp3 player with the help of Jlayer 1.0 library. Now, it is running perfectly when I run it from eclipse. But when I export it to a .jar file, strange thing happens.
    The program starts ok, then I click add song button, a popup pops and wants me to choose a file, well I click the choose
    the file button, it opens a JfileChooser, choose file, everything ok so far. Now, I want to click ok so that the song would be added to the program, but nothing happens when I click ok. when running eclipse it would add the song to the Jtree and so on, now it does absolutely nothing, the box wont disappear, no error message, nothing. I wanted to check if it was somekind of bug in the button, but it would seem it does do some basic statements on the beginning, but when it would have to create
    new datastructure, it never comes back. I tested this with printing text when the program completed a statement and got the statement which makes the program idle. And the program doesnt freeze, it just wont do anything, and it wont even finish the method it is supposed when ok is clicked.
    Any suggestions? Im totally clueless.

    Yes, you probably don't have the application correctly set up to run outside of Eclipse. How to do that is different for each IDE. I am aware of the following tutorial for NetBeans, and (probably) Eclipse has something like that. You need to ask at the Eclipse website for that, since these forums are for the Java language, not Eclipse support.
    http://www.netbeans.org/kb/articles/javase-deploy.html

  • Data type change made to schema.xml of comments list which is part of blog site template is not reflecting in the existing site but working fine when new site is created.

    Hi,
    I have created a blog site with the available site template few days back. Now we have the requirement of having the attachments in the body of the comments section. 
    So, I updated the schema.xml of the comments list available under ../templates/blog/lists/comments/schema.xml to have rich text for the Body field.
    With this change, I created a new site and it was working fine. Change is reflected in the new blog site.
    However, this particular change is not reflected in the existing blog site. Any changes made to the schema.xml is not effecting the old blog site.
    Can anyone suggest what can be done for the change to be reflected in the old blog site?
    Thanks in Advance,
    Regards, Keerthi Suryadevara

    Hi,
    According to your post, my understanding is that you wanted to add attachments in the body of the comments section.
    You can add the the Code inside the Default list pages. For more information, you can refer to:
    Enable Attachment in SharePoint Blog post list and display the list Attachments
    In addition, you can add an enhanced rich text field to the comment list and remove the body field. Then you can insert files into comments, too.
    Here is a similar thread for your reference:
    http://sharepoint.stackexchange.com/questions/77194/how-to-add-attachments-for-comments-list-in-sharepoint-blog-2010
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Gray screen on start up, but works fine when hard disk in usb

    Im using a Mac book pro which is around 2-3 years old now i think. Anyway, a few days ago it froze while using it, when i restarted it i just got a blank grey screen (no spinning wheel or apple logo) and it just stays there.
    I replaced the standard hard drive with a samsung 840 EVO ssd 250gb a few months back and it has worked fine since.
    I tried all the setup/safe mode keys during start up and it still gets stuck on the same blank screen.
    I took it to the "genius" bar at the apple store and the guy that served me said it was a problem with the hard drive and told me to wipe it and reinstall the os. I've just taken the hard drive out and connected it via usb port, using the connector provided with it, to try and get into setup mode this way, however the laptop now starts and works perfectly fine with the hard drive connected this way. I tried connecting it internally again and got the same problem with the grey screen again.
    Im very annoyed the so called "genius" at the apple store told me it was a fault with the hard drive when it is clearly functioning properly and almost had me erase it and loose all my things. Very poor customer service and even poorer knowledge on his part.
    Has anyone had a similar problem or have an idea what it might be?

    Darren,
    one possibility is that your MacBook Pro’s internal SATA cable could be faulty, since your SSD works well externally but doesn’t work well internally.

  • New MBP Retina wifi is awful - even with bluetooth off! But works fine when using Ubuntu 13.04

    Hello - I've recently as of last week - purchased a new Macbook Pro Retina.
    I've dual booted it with Ubuntu 13.04.
    The wifi is terrible when logged into the OSX.  However, works fine in Ubuntu! I've tried turning bluetooth off as suggested in many forums, but to no avail.
    Any idea - my first Mac too, so I'm trying hard not to give up and just return it for something else!
    Thanks

    Was the OS X wifi terrible before or after you installed Linux?
    Linux is not a Apple approved operating system for running on Mac's.
    The open source community has a different philosphy than commerical companies like Apple or Microsoft, it might be that your OS X wifi drivers was surplanted with those from Linux and thus OS X can't recognize them and defaulted to a more basic mode of a slower speed.
    Apple doesn't provide drivers publically for Mac's, so it's some third party hacker, with quesitonable skills and non-communication with Apple, that's providing the drivers. So there is a problem there, which I've found out about myself when installing Linux on older Mac's.
    I advise Linux and other non-approved operating systems to be run in a virtual machine program instead.
    Install Windows or Linux into VirtualBox
    Unfortuntly to fix your system and uninstall Linux, which is designed to be installed on generic PC's, is to erase your ENTIRE boot drive, including the hidden EFI parititon where Linux installs it's swap file.
    I suggest you take your machine into Apple and tell them what you did.

  • Upgraded to 10.3.1 - photos appear blurry in the albumn but are fine when viewed on a computer

    Hi - I upgraded to 10.3.1 on my Q5 last week.  When I take a photo it takes a while to appear and then looks blurry.  If I turn the phone off and try again it's fine for a little while then the same problem happens.  I downloaded the photos to my computer to double check them and they are clear on the computer, so it's not an issue with the camera as I first thought, but rather when viewing them.  I have no outstanding updates and I have searched all over the forums but can't see a solution.  Thanks in advance for any help.

    can you please take one picture, view it when it is blurred and make a screenshot
    and do the same after turning the phone off ?
    then for both screenshots, you can attach them here so we can see.
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • Spell checker quirky running Outlook mail with Firefox, works fine when running Windows

    Using Firefox with Outlook mail. Spell checker misses many obvious typos and misspellings. After correcting an error or two with spell checker underlining of remaining uncorrected errors disappears.
    Spell checker works properly when using Windows with Outlook mail.

    I'm not using the MS mail service very much these days as there have been too often issues in Firefox that took too long to get fixed by MS, so I hadn't noticed these issues, but with checking it out I can see the same happen if there are multiple errors marked.
    <pre><nowiki>function clk() { parent && parent.rteOnClick && parent.rteOnClick() }function kyu() { parent && parent.rteOnKeyUp && parent.rteOnKeyUp() }function drg(event) { parent && parent.rteOnDragOver && parent.rteOnDragOver(event) }function drp(event) { parent && parent.rteOnDrop && parent.rteOnDrop(event) }function Init(){var wl = window.location, d = document;var hn = wl.hostname, dmn = hn.substr((hn.lastIndexOf('.', (hn.lastIndexOf('.', hn.length)) - 1)) + 1).toLowerCase();if (("live.com" == dmn) || ("live-int.com" == dmn)) d.domain = dmn;if (d.addEventListener) { d.addEventListener('dragover', drg, false); d.addEventListener('drop', drp, false); }d.body.hideFocus = true}</nowiki></pre>

  • Iphone alarm doesn't work when the phone is charging but works fine when it is not plugged in, any reason for this?

    Recently my alarm hasn't been going off on my phone when it is plugged into the charger. This is a problem as i have work most mornings and have been late. When it is not plugged in the alarm works. I know it would mae sense to charge it before i go to sleep, take it off the charger, set the alarm then wake up but was just wondering if there was any reason why I might be experiencing this issue?
    Cheers

    This is something peculiar, normally that doesn't work that way
    when did this happen? if it just happened, then something probably went wrong with either the software or the hardware
    do charge the proper way, and see if it happens again
    or try completely draining the battery, and charge it to 100% and see if its gonna solve the issue with the alarm

  • MacBook Pro says my password is wrong but I haven't changed it and my apple I'd says its wrong on the MacBook but works fine on the ipad, how can I log into my mac? Pls help urgently

    My MacBook Pro says my password is wrong, but I haven't changed it, tried resetting password with apple I'd but MacBook says that's wrong too.  The apple I'd works on the ipad though.  How do I log into my mac?

    a virus/trojan/malware is not cross platform so they are 100% made for a device
    the day a virus/trojan/malware is discovered that works on any ios devices that are not jailbroken
    you will find it all over the news and all posts in this forum would be about that
    try login from the browser rather then the mail program and verify each account setting one by one to verify that they are correctly because an undocumented unwanted feature in the os of your phone could be the cause

Maybe you are looking for