ExecuteQuery WhereClause problem for first time in the session of the page

I am new to OAF and I have panic problem.
I have two pages application like following..
First page “LookupTypes” and second page “LookupValues” for the selected first page Lookuptype.
The problem is when I press first time(after lunching the page/first time for the session) the button in “LookupType” page I am getting all the “Lookup Values” for all the lookup types instead of getting only for one Lookuptype and I will press “back” button in “Lookup Values” Second page to come back “LookupType” first page, Again immediately I will press the same button which I pressed first time, this time I will get correct number of records for one Lookup Type. I don’t know why its where clause is not working first time.
Please find the following code and help me.
First page is LookupTypes->second page is Lookup Values
Step 1 : I have button on “Lookup Types” page to call “Lookup values” page
Step 2 : “Lookup Values” page control to receive the parameters from lookup type page.
Step 3 : application module (AM) to execute the query..
Code :
Step 1 : I have button on “Lookup Types” page to call “Lookup values” page
Following is the code from “Lookup Types” control.
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
String paramLookupTypeAction = pageContext.getParameter(EVENT_PARAM) ;
String paramLookupType = pageContext.getParameter("paramLookupType");
OAApplicationModule PafLookupAM = pageContext.getApplicationModule(webBean);
//Adding calling LookUp Values screen
if (paramLookupTypeAction.equals("viewLookupValues") )
// PafLookupAM.invokeMethod("clearLookupValueMethod");
//Here we prepare the HashMap object, that cotains name of the parameter and the value of the parameters
HashMap phm = new HashMap() ;
phm.put("xxparamLookupType",paramLookupType);
phm.put("xxparamLookupTypeAction",paramLookupTypeAction);
pageContext.setForwardURL(
"OA.jsp?page=/oracle/apps/xxpaf/pafLookups/webui/pafLookupValuesPG"
, null //not needed as we are retaining menu context
,OAWebBeanConstants.KEEP_MENU_CONTEXT
,null //not needed as we are retaining menu context
,phm //pass the hashMap that contains values for all of the parameters
,true //retain AM
,OAWebBeanConstants.ADD_BREAD_CRUMB_NO
,OAWebBeanConstants.IGNORE_MESSAGES);
Step 2 : Following is the code from “Lookup Values” page control to receive the parameters from lookup type page.
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
String paramLookupTypeAction=pageContext.getParameter("xxparamLookupTypeAction");
String paramLookupType=pageContext.getParameter("xxparamLookupType");
OAApplicationModule PafLookupAM = pageContext.getApplicationModule(webBean);
Serializable LookupTypeParamList[]= {paramLookupTypeAction,paramLookupType};
System.out.println("viewLookupValues 3 " + paramLookupType);
System.out.println("viewLookupValues 4 " + paramLookupTypeAction);
if ( paramLookupTypeAction!=null && paramLookupTypeAction.equals("viewLookupValues"))
System.out.println("viewLookupValues 5 " + paramLookupType);
System.out.println("viewLookupValues 6 " + paramLookupTypeAction);
PafLookupAM.invokeMethod("viewLookupValuesMethod", LookupTypeParamList);
          // Assuming the controller is associated with the pageLayout region
// import oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean;
     //     OAPageLayoutBean page = (OAPageLayoutBean)webBean;
     //     page.setTitle("Lookup Type: " + paramLookupType);
Step 3 : Following is the code from application module (AM) to execute the query..
public void viewLookupValuesMethod( String pAction, String pLookupType)
try
OAViewObjectImpl pervo = getPafLookupValuesEOVO();
String existingWhereClause = pervo.getWhereClause();
pervo.setWhereClauseParams(null);
pervo.setWhereClause("Lookup_Type = :1");
pervo.setWhereClauseParam(0, new String (pLookupType));
pervo.executeQuery();
pervo.setWhereClauseParams(null);
pervo.setWhereClause(existingWhereClause);
catch(Exception exception1)
throw OAException.wrapperException(exception1);
Best Regards,
Pathi TVB

Pathi,
Please try to have the WhereClause in the VO query as part of static definition itself. So you would only need to bind the parameter and execute the Query.
Try and let me know if that helped.
Thanks
Sumit

Similar Messages

  • Starting IMac for first time without the paired bluetooth mouse

    I bought an iMac at the Apple Store today. I wanted a trackpad rather than a mouse. He pulled the mouse from the box and inserted the trackpad. I got home, booted up for the first time, and it wants me to turn on the factory-paired mouse that I don't have. I can't get past this screen to pair the bluetooth trackpad instead.
    The keyboard is paired and functional, but I can't find anything that bypasses the screen telling me graphically that I need to turn on the mouse. I do not have a wired mouse to plug in, even if that would work.
    Thoughts?

    No, it insisted on a mouse. I did, however, find an old wired mouse (didn't think I had any left), and once I plugged that in, it bypassed the screen telling me to turn on the wireless mouse. Then I set up the trackpad using the setttings.

  • 11G ADF BC: First time loading the page, how to disable some components?

    Hi,
    I have a fusion web application created using Jdev 11G ADF BC. I am working on a search/results page that has a panel split. In the left panel, there is a list of nevigation links. The data shows in the right panel.
    What I want to achieve here is to enable only one link on the left when the page is first loaded and it is a search/result page. Disable all the rest of it because other links are related to more info about the search results. When the page is first loaded, there is no data on the right, so that there is no more other data to look at. Ideally, all the rest of the links should be disabled and only the "Query" link should be active and selected.
    Is there a way to do this with 11G? Thank you very much for your help.
    Regards,
    Annie

    initially, what ever the components you want to disable set the disabled="true" in the jspx. Once you fetch the query results and in that action enable the componens like commandButton1.setDisabled(Boolean.FALSE);. that's how I am doing. You can dynamically enable/disable by having a boolean variable in the backing bean and set the disable property of component lke disabled="#{backingBeanScope.yourbean.blnAddBtn}".

  • Using iPod shuffle 4th generation for first time and receiving the error : one of the USB devices attached to this computer has malfunctioned, and windows does not recognize it. For assistance in solving this problem, click this message

    Using iPod shuffle 4th generation for first time and receiving the error : one of the USB devices attached to this computer has malfunctioned, and windows does not recognize it. For assistance in solving this problem, click this message.
    Using win 7 and latest iTunes [10.6.3]. Have already gone through below links and did not find any solution.
    http://support.apple.com/kb/HT2292
    http://support.apple.com/kb/TS1369
    http://support.apple.com/kb/HT1923
    http://en.kioskea.net/forum/affich-17997-ipod-not-detected

    I was hoping it would be something like a USB device conflict, but now the shuffle is the only thing connected...
    This article was one of the ones you linked to above in your initial post
    http://support.apple.com/kb/TS1369
    Under Part 9. Verify that USB drivers are installed, did you try the steps in If only "Unknown Device" appears?  That appears to be your situation.
    Also, you said that the shuffle initially worked well enough to do a sync, then it had the same problem again.  If you can get it to work again initially, before doing anything else, try the following.  Select the shuffle in the iTunes sidebar, under DEVICES.  Over to the right, go to the Summary tab.  By default, the checkbox for Enable disk use should be unchecked.  If so, check it and Apply the change.  See if that makes any difference. 
    (If Enable disk use was already checked, try unchecking it and Apply the change.  Basically, set it the "other way" and see if there is any improvement.)
    NOTE:  When disk use is enabled, you have to eject the iPod in iTunes before disconnecting it physically.
    If the disk use change makes a difference, that may provide a clue about the actual cause.

  • I just purchased an ibook for my mac for the first time and it started with two pages then switched to one with notes and i can't change it back. Anyone else having this problem?

    I just purchased an ibook for my mac for the first time and it started with two pages then switched to one with notes and i can't change it back. Anyone else having this problem?

    Up the top where the three buttons are (red yellow green) are three images. Click on the third image that looks like a notepad (not the first which is a library book), and that should get rid of 'Notes'. To read using two pages make the window bigger.

  • I live in Nepal. I can access for the first time at the time of using itunes. There isnt option of NONE in the payment mode.Please Help Me Out !

    I live in Nepal. I can access for the first time at the time of using itunes. There isnt option of NONE in the payment mode.Please Help Me Out !

    AshimPoudel wrote:
    I have problem still. Is this payment important to create a free apple ID???
    Not sure what you are asking...
    Apple ID FAQs
    http://support.apple.com/kb/HE37

  • SQL Server Management Studio - Configuring the environment for first time use

    Hi
    I have recently switched my local 'My Documents' folder location to a network drive that I 'make available off line' to allow on-line/off-line work and synchronisation when I am working in and out of the office.
    When I load my SQL Server Management Studio 2005 I frequently get 'Microsoft SQL Server Management Studio is configuring the environment for first time use'.
    Management Studio  them loads and I can continue without problem.
    I am guessing it is trying to make reference to some settings file. Any ideas? I wonder if I can change/move these settings elsewhere to a local drive?
    Thanks

    Hi,
    There is bug report of this issue:
    http://connect.microsoft.com/SQLServer/feedback/details/126364/configuring-enviroment-for-the-first-time-every-time-in-ms-sql-server-management-express
    "SQL Server Management Studio Express saves the settings for the user in ...\Documents and Settings\<User Profile>\Local Settings\Application Data\Microsoft\Microsoft SQL Server\90\Tools\ShellSEM
    and in ...\Documents and Settings\<user profile>\Application Data\Microsoft\Microsoft SQL Server\90\Tools\ShellSEM
    if any of these files are not available or unusable, SSMSE will generate new ones."
    Hope this helps.
    BR,
    JoukoK

  • I've tried to update my i-Tunes version after the site suggested I should following my i-Pad being plugged into it for the first time. The update seemed successful but the program would not open at all despite switching off the PC and re-starting several

    I’ve tried to update my i-Tunes version after the site suggested I should following my i-Pad Air being plugged into it for the first time. The update seemed successful but the program would not open at all despite switching off the PC and re-starting several times. I then tried wiping the original software from the computer and re-downloading from scratch. Each time I tried the download failed with a message saying “Service “Apple Mobile Device” failed to start. Verify that you have sufficient privileges to start system services” At this stage, the only way forward was to “abort” the download. This I have done now four times and the same thing happens. When I did finally manage to get an i-Tunes shortcut on my desktop, the program wouldn’t open saying: “i-Tunes was not installed correctly. Please re-install i-Tunes. Error 7 (Windows error 193)” Any ideas to resolve this?

    Try the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • HT201250 i am using for first time the time machine and an external hard drive because I want to erase my macbook and start from zero files. do i keep my files in the portable hard disk when I connect it again with the macbook or the time machine will era

    i am using for first time the time machine and an external hard drive because I want to erase my macbook and start from zero files. Am i keeping my files in the portable hard disk when I will connect it again with the macbook or the time machine will erase all?
    I would like to know if after I erase all my data, empy hard drive inside the macbook, the time machine will erase all my files that I have saved in my "WD "My passport" external hard drive

    Welcome to Apple Support Communities
    Time Machine has to erase the external disk in order to make backups. Before setting Time Machine up, copy the files of your external disk to the hard disk of the Mac in order not to lose them, and then, set up Time Machine. The first backup will start automatically.
    If you want more information about Time Machine, read the Pondini's site > http://pondini.org

  • HT1476 if i bought my ipod touch 32gb in germany where the voltage is 220v and i live in America where the voltage is 110, i will have to wait to get to my home to charge it for first time or I can charge it here and change the voltage of the battery in A

    if i bought my ipod touch 32gb in germany where the voltage is 220v and i live in America where the voltage is 110, i will have to wait to get to my home to charge it for first time or I can charge it here and change the voltage of the battery in America?
    please i need help, im worried that if I connect my ipod here, it will burn or sometihng bad.

    Just connect it to a computer's USB port.
    Most wall chargers are dual voltage (110- 220 volts) and only require a plug adopter. Check the wall charger to see if yours is.

  • Computer iMac7,1 has been giving sundry problems for some time. Within the last six weeks I have reinstalled the OS (Snow Leopard), without affecting the overall contents of the hard drive. ±3 weeks later the problems became more serious and I again reins

    Computer iMac7,1 has been giving sundry problems for sometime. Within the last six weeks I have reinstalled the OS (Snow Leopard),without affecting the overall contents of the hard drive.
    ±3 weeks later the problems became more serious and I againreinstalled the OS and installed OS 6.6.7 from the internet.
    I used the option to restore from the external backup driveand went back some time as it was my intention to reinstall individualcomponent in an attempt to find out where the problem might lie. This hasintroduced an entirely new problem! If I open Time Machine from the desktop itappears that all backups from late 2009 to June 2011 are intact. But, in thiscase there are none of the restore functions &c on screen. The latter areonly shown if Time Machine is opened from the menu bar or from the dock but, inthis case, available are only backups in late 2009!
    I also opened the Apple Hardware Test in an attempt toestablish the nature of the problem. The ‘quick’ version said there’s nothingwrong; the more detailed one reported “Error detected, 4HD/11/40000004.” I haveagain tried to employ this test but nothing I do can induce it to open!!!
    What to do? I need help urgently and would appreciate anyadvice that offers solutions to the problem.

    To check your S.M.A.R.T status open disk utility and click on your drive and then click on the info icon.

  • Hard drive on my mac died, installed new hard drive.  When I try to sync my phone for the first time, will the computer wipe all the songs, photos, ibooks from my phone?

    hard drive on my mac died, installed new hard drive.  When I try to sync my phone for the first time, will the computer wipe all the songs, photos, ibooks from my phone?

    Yes because that information is not located on the hard-drive of your new mac! If it is purchased content from the store, than this issue isn't as bad as it looks!
    Here is a link explaining how to get your previously purchased content back:
    http://support.apple.com/kb/HT2519
    You also want to authorize your Apple ID account on the computer by following these instructions as well:
    http://support.apple.com/kb/PH1730
    Basically this link explains to go to the top left corner of your screen where you will see file, edit, view etc! Click on Store in that section and click on authorize this computer, also you want to make sure that the computer will not automatically sync by going to iTunes in the top left corner, just to the right of the apple symbol if iTunes is selected, and go to prefrences, and here you will see back up! Right under the back-ups has an option explaining to prevent devices from automatically syncing which is good cause you may be able to transfer your purchases from there which will put your content into the computer, and if that happens than we don't lose anything
    Hopefully I was of some help:)

  • When itunes  load   for first time ,the  ios operating system  load    automatically?

    I connect my  ipod for first time ,and   download itunes, but   an  operating system doesnt show  in  settings /general/ doesnt appears software?? 
    can somebody   tell me   what  to do  ? or  if  my  ipod  may be  is not working properly? and any time  I try to download an apps , read   need  ios5.

    What then does show?
    Did you setup/activate the iPod? You have to do that via wifi (for newer ones) or conneft to iTunes and restore
    iTunes: Restoring iOS software

  • My iPhone 5 gives a busy tone whenever someone calls the first time. The person has to call a second time for the ringtone to be heard? How o I tux this issue? I have a missed call every time and then a ringtone.

    My iPhone 5 gives the caller a busy tone the first time when the phone is actually not in use. The caller has to make another call to get the ringtone. I will get the first call as missed with no ringtone and then the second time it will ring. What can be fond to solve this problem ?

    Turn off Do Not Disturb.
    http://support.apple.com/kb/HT5463?viewlocale=en_US&locale=en_US

  • I turned on my Macbook pro for the first time and the mouse is frozen

    I turned on my Macbook pro for the first time and the mouse is frozen since the first screen. I did the start up, but using the comands on the keyboard. I think the laptop is configured to blind people. I just got at the desktop, but the mouse is frozen.

    If this is a new machine, you have 14 days to return the machine for an exchange or a full refund. Your trackpad should work out of the box and what you're seeing onscreen may very well be settings for the partially sighted.
    Clinton

Maybe you are looking for

  • Samsung LTE Mobile Hotspot PRO USB cable connection to Mac

    I am trying to connect a Samsung LTE Mobile Hotspot PRO via USB cable to my Macbook and iMac.  I can see it in the System Information, but it does not show up in the Devices in Finder.  Is there a driver that I need?  Does it exist (yet)?

  • Wifi Working OK, MBP after 10.4.8 update SLOW!

    Hi all! Right after I upgraded to 10.4.8 the Airport connectiom on my MBP is really slow. I used to get 700kbps speeds, but know i´m at 45kbps!!! I tried the "delete preferences" tip found on these boards, but it did not work in my user account. I th

  • Amazon Kindle problem using Flash Builder 4.6

    Is there a way to specify a version of Air 2.7 using Flash Builder 4.6?  This would be handy for getting apps accepted by the Amazon App store for the Kindle.  Recently, I had an app accepted into the Amazon App store.  However, the App needs to use

  • Other growing at alarming rate

    when syncing my iphone 4s on the bottom of the page in itunes it shows (blue) for audio, (orange) for photos, (green) for apps, (yellow) for other. My question is what is OTHER? I have tried to find this out and can't seem to find anything on it. It

  • FCP UB iMAC Dropping Frames, playing stops!

    It's fine (new here with this program so be easy on me) also a recent swither, after beta testing Vista, I said, that's it. Even though I have thousands invested in software for PC... Anyway, FCP 5.1 If I use the arrow tool, and move across timeline,