How to Override executeQuery() in VOImpl.java for simple search

Hi,
When I am going thorugh the dev guide I read that we can override the execute query to add more where conditions for a simple search with queryBean.
As per dev guide ,
If your view object's definition requires bind values, or you must manually append an unrelated WHERE clause every time the query is executed, you can proceed in one of two ways. In either scenario, OAFramework appends the user's search criteria to the WHERE clause immediately before executing the query,so any WHERE clause characteristics that you define are preserved.
1. Override the executeQuery() method in your *VOImpl to modify your WHERE clause and then call super.executeQuery(). This is recommended if you exercise the same logic every time the view object is queried.
2. Handle the generated Go button's press and call an initQuery() method on your view object where you can modify the WHERE clause and/or set bind values.
I didnt see the executeQuery() in my *VOImpl , am I missing anything here ? can you please help me to code the above ways of handling the execution.
I saw another exactly post in this forums and it didnt help much . (https://forums.oracle.com/thread/541807) .

Shobhit,
Thank you so much for your help .
I tried like you said and its working . Below is the code I used please correct me if I am wrong or  if there is a better way to do it.
In controller added the following code
OAApplicationModule am = pageContext.getApplicationModule(webBean);
        OADBTransaction oadbtransaction = am.getOADBTransaction();
        oadbtransaction.putTransientValue("vnumber", "000016161");
In VOImpl added the following code
import oracle.apps.fnd.framework.server.OAApplicationModuleImpl;
public void executeQuery()
        OAApplicationModuleImpl oaapplicationmoduleimpl = (OAApplicationModuleImpl)getApplicationModule();
        OADBTransaction oadbtransaction =   oaapplicationmoduleimpl.getOADBTransaction();
       String vnumber1 = (String)oadbtransaction.getTransientValue("vnumber");
        setWhereClause("segment1 = nvl(:1,segment1)");
        setWhereClauseParam(0, vnumber1);
        super.executeQuery();
And ran the page everything working fine .
I have couple of questions
1. Is "oadbtransaction.putTransientValue " places the value is transaction cache ? If so is that value available across multiple pages ?
2. I see there is another option for the above  using pageContext.putSessionValue and pageContext.getSessionValue, I am able to use the pageContext.putSessionValue in controller,
but I dont know how to use the pageContext.getSessionValue as I didnt see the pageContext in VOImpl and I tried to "import oracle.apps.fnd.framework.webui.OAPageContext" but still no use.

Similar Messages

  • How to find and install right java for ECC6 intstallation on AIX5.3

    Hello
    I wander how to find and install right java for ECC6 intstallation on AIX5.3. I went thruroughly thru note 723909 and underlying 716927, 1008311 and 1039948 notes but I still do not understand.
    I guess I should logon to IBM site http://www.ibm.com/developerworks/java/jdk/aix/service.html
    where I can choose :
    " Java 1.4.2 64-bit "
    and then :
    "64-bit SDK 1.4.2 base images (at 1.4.2.0 level; in installp format) "->"Base SDK (required)
    Java14_64.sdk.tar  ((50001920)
    then I assume (on AIX ) I should "tar xvf Java14_64.sdk.tar".
    then I get extracted "Java14_64.sdk"
    Is this ok?
    I know on Linux(
    from IBM site I downloaded "IBMJava2-amd64-142.rpm"
    then I issued
    "rpm -i IBMJava2-amd64-142.rpm "
    and finally issued
    "export JAVA_HOME=/opt/IBMJava2-amd64-142")
    What in case of AIX5.3? Could you help me?

    I was told to use smitty (just I am not familiar with it). furdermore i do not hace read.me file. the ziped files are:
    Java14_64.ext
    -rw-rr 1  202 bin    371712 Mar  2  2010 Java14_64.license
    -rw-rr 1  202 bin      3072 Mar  2  2010 Java14_64.msg.ja_JP
    -rw-rr 1  202 bin      3072 Mar  2  2010 Java14_64.msg.Ja_JP
    -rw-rr 1  202 bin      3072 Mar  2  2010 Java14_64.msg.ko_KR
    -rw-rr 1  202 bin      3072 Mar  2  2010 Java14_64.msg.zh_CN
    -rw-rr 1  202 bin      3072 Mar  2  2010 Java14_64.msg.Zh_CN
    -rw-rr 1  202 bin      3072 Mar  2  2010 Java14_64.msg.zh_TW
    -rw-rr 1  202 bin      3072 Mar  2  2010 Java14_64.msg.Zh_TW
    -rw-rr 1  202 bin   4888576 Mar  2  2010 Java14_64.samples
    -rw-r----- 1 root root 67190784 Oct  4 09:53 Java14_64.sdk
    -rw-rr 1 root root 77370639 Nov 20 19:36 Java14_64.sdk.tar.gz
    -rw-r----- 1 root root 12612608 Oct  4 09:53 Java14_64.source

  • Setting a default content area for simple search

    How to set up a default content area/all content areas for simple search when searching from a page?
    The only way i can set a content area, is to go to advanced search and specify the content area or say all content areas
    When i am searching from a content area, simple search searches the same content area.

    Harish,
    One simple way is create a navigation bar in the content area you are interested in searching, containing just the search element, and expose that navigation bar as a portlet.
    Now you can add this portlet to any page and the search will search only on the content area it belongs to.
    null

  • How to Override Company and Cost Center for FI Posting from HR Payroll

    Current problem:  A company code has been 'merged' into another one and the old company code can no longer be used.  In the last payroll run, there was a rate change that caused a retro back to the time of the old company code and since the old company code and cost center were closed, the FI posting error'ed out.  To correct, we had to delete the offending pernr from the cluster and back out the rate change until we came up with a solution. 
    Investigation has revealed a process called 'Substitute Cost Centers', but we tested it and a 'flusher' cost center is required to be set up in the old company code and FI refuses to open it up. 
    Also, I've located 3 user exits for RPCIPE00, but I do not see where  company and cost center can be changed.  So I've tried to code my own BAdi, but there seems to be a header company code that I'm not getting.  The item company code and cost center seem to be doable, but I don't know how to change the header company code.
    I am new to HR and Payroll having spent the last couple of years in BI and before that I worked with the material master and Purchasing.  It is my humble opinion that the company should not have been 'turned off' until Payroll was finished with it and that means 2 years until we archive.  In reading about symbolic accounts, several times it is written not ever to delete them.  Seems to me company code is the same.  But surely I must be wrong and there is a solution that will make everybody happy. 
    I would appreciate any and all ideas.  Thank you so much.

    Amosha, thank you for your response.  Here is PCP0 that shows what I mean by 'header company code' that I don't see how to change (I re-ran pd 26 2008--bi-weekly payroll, btw):
    06/30/2009 Posting Document
    Run                      0000002791
    Company Code    0057
    Document            0000008174
    PostingCurrency  USD
    Reference           HRPAY00009
    Doc. Type            ZB
    Run Type             PP
    Posting Date        12/01/2008
    Documant Type   G/L Account Document   
    Document Date    06/30/2009
    Bus. Transaction HRP1
        There are error messages for this document
    Account Number with Text
    21301000   Accrued Salaries & Wages   CCTR 14515      ...
    20303998   HR P/R Doc Split                                               ...
    Messages for Document 000008174
    Error in document: HRPAY 0000008174
    The CO account assignment object belongs to company code 0001, not 0057
    Company code 0057 is now closed and has been merged into 0001.  Cost center 14515 in the above doc was populated by my clone of RPCIPE00 and call to my BAdI which retrieved current company and cost center from PA0001.  You can see from above that the 'header' data still shows 0057 and indeed, my version of RPCIPE00 only changes P_ITEM-BUKRS, P_ITEM-KOSTL and P_ITEM-SGTXT.  It looks to me that fm HRPP_TRANSLATE_FICO gets the 'header' company code afresh.  I was planning to leave WPBP-BUKRS (and all other Payroll data) alone (ie, not override company code).
    As for your other question, we post retros to /551 and /552. 
    Thanks again.

  • Any advice / guide on how to create separate Stack ABAP + JAVA for CTS+

    Hello Experts,
    Can you please point me to the how to guide for creation of separate Stacks ABAP + JAVA for CTS+ Transport Management.
    Also can you please clarify how I can convert STMS Virtual systems in to Real systems? Any guidance for this?
    Thank you

    Hello,
    You should have a look at the installation guide.
    http://service.sap.com/instguides -> SAP Components -> SAP Solution Manager -> Release XXX
    For instance :
    http://service.sap.com/instguides -> SAP Components -> SAP Solution Manager -> Release 7.0 EHP 1
    Then have a look at section 4.2 Installation Checklist u2014 Java Add-In
    It covers:
    Java Add-In for an existing central ABAP system
    Java Add-In for an existing distributed ABAP system
    Java Add-In for an existing High-Availability ABAP system
    ABAP+Java Dialog instance
    Regards,
    Paul

  • How the heck do I install java for yosemite?

    I've tried following the links, but everytime I hit the download button nothing happens.  Not. A. Darned. Thing.  And I keep getting the message that I need to install Java for things to run properly. 

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen. Click the Clear Display icon in the toolbar. Then take one of the actions that you're having trouble with. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.

  • How to set only one Index-group for a Search-iView as default?

    Hi Everybody,
    i have a lot of index ID's for searching in different folders. Is it possible to set only one index-group as default for a search iView? Until now i get all groups as default in every search. It's inconvenient for the users to use the link of 'show options' in order to uncheck the other index ID's.
    regards,
    Seed
    Edited by: seed_mopo on Jun 6, 2008 5:02 PM

    hi Seed,
    To achieve this you have to follow the below steps
    1. Create a new set of search options, choose System Administration -> System Configuration -> Knowledge Management -> Content Management -> User Interface -> Search -> Search Options Set in the portal.
    In that you have a field 'Index Groups', wherein you can specify which index group, the user has to search in. If there are multiple index groups, mention your index groups separated by comma.
    See here for more information
    http://help.sap.com/saphelp_nw04/helpdata/en/cc/f4e77ddef1244380b06fee5f8b892a/content.htm
    2. You have to specify the option set that you created in step 1 in the default KM search iview. In the iview properties, under the field search option set, mention the option set that was created for this index group or multiple index groups.
    This way, you can configure KM search iview to search in a single index group or multiple index groups.
    Revert back in case of any queries
    Regards,
    Ganesh N

  • Naming "Go" button for simple search

    I have a page which has two independent Query regions. Each Query region is set to autoCustomizationCriteria and each has a simple search panel. Is there a way for me to uniquely name the "Go" buttons for each one?
    The reason I want to do this is so I can tell in processFormRequest which one was clicked. It seems like right now they have the same name. Any ideas?
    Thanks!

    I recommend getting a handle to your query bean in the processRequest. After that you can call the setClearButtonName() and/or setGoButtonName() methods.
    processRequest(OAPageContext pageContext, OAWebBean webBean) {
         super.processRequest(pageContext, webBean)
         OAQueryBean region1 = (OAQueryBean)webBean.findIndexedChildRecursive("region1");
         region1.setClearButtonName("Clear1");
         region1.setGoButtonName("Go1");
         OAQueryBean region2 = (OAQueryBean)webBean.findIndexedChildRecursive("region2");
         region2.setClearButtonName("Clear2");
         region2.setGoButtonName("Go2");
    }Edited by: Centinul on Aug 22, 2012 3:03 PM

  • How to install a new XDK-Java for using XSQL in my Oracle8i?

    Hello,
    I'am trying to install a new version of XDK Java on my computer to run new features of the XSQL-servlet
    (for example the FOP-serializer). Can you please tell me how to insall this XDK, and what files I have to change to run the XDK and XSQL-servlet with my Apache-Server?
    Thanks in advance.
    Martijn

    Did you check this out:
    http://odiexperts.com/manual-entry-in-odi-driver-list

  • How to override runtime parameters of Java programs in web browser windows?

    Hi Oracle forumers,
    There's a Java based program that is accessed through a web browser. The program somehow sets its own runtime parameters. However, those parameters don't always work well for running the program on every computer. Is there a way to override the runtime parameters that the program would normally set with my own parameters? I was expecting the Java Control Panel applet to be the place to set my own runtime parameters but the last time I checked that didn't work with this program.

    Sangeetha Kalyani,
    Use SWF de-compiler.. and get the source of your SWF.. i think this will simplyfy your JOB...!
    Thanks,
    Pradeep

  • How to override the default "required" attribute for the UIComponent?

    Hi, consider the following markup: <h:inputText id="txt_firstName" value="#{myBean.firstName}" required="true"/>
    if I leave this field empty and hit the submit button, the required validator will fire an error msg. If however, I leave an empty space in the text box and hit submit button, it will go through no problem.
    I'd like to override the required attribute, so it will trim the spaces first before decide if it really is empty:
    //whatever the name of the method i'm overriding....
    String value = (String)value;
    if(value==null)throw new ValidatorException(whateverDefinedInTheBundle);
    value = value.trim();
    if(value.length==0)throw new ValidatorException(whateverDefinedInTheBundle);
    How can I go about doing that?
    Thank you.

    Did you already try
               <af:treeTable value="#{bindings.DashProjectPhasesDev.treeModel}"
                                  var="node"
                                  selectionListener="#{bindings.DashProjectPhasesDev.treeModel.makeCurrent}"
                                  rowSelection="none" rowBandingInterval="0"
                             inlineStyle="width:810px; height:1100px;"> Check the last line with inlineStyle...
    Julian

  • How can I update the current java for Mac Pro 10.6.8

    I tried to update the current java on my computer, but after i down load, the application failed to installed.

    Spinning Beach Ball
    Spinning Beach ball (2)
    Spinning Beach ball (3)
    Spinning Beach ball (4)

  • How to implement paging in webdynpro jave based on search criteria.

    Hi All,
    In a requirement I need to implement paging in webdynpro java development.
    I successfully did it when there is no search criteria is available i.e webdynpro fetched all data from the BO object and I did it using a "indexNO" (unique serial no from 1,2,3,4.....) field available in BO object.
    But when there is search criteria available , i.e the data to be fetched from the BO based on some specific field , at that time the "indexNo"  field of all data fetched based on search criteria are discrete i.e not continious. In that case how to implement the paging concept.
    I am using CE version 7.1 EHP 1.
    Thanks in advance
    Srikanta Satapathy

    Hi,
    If you go to your VO and generate the ViewObjectImpl, in there you can create a method which will contain two parameters, 1 the attribute name and 2 the value.
    Then you can follow something like explained in this post:
    ADF Tutorial: How to apply bulk actions to a view object rows
    The only difference is that you will need to create a method like this:
    public void updateAttribute(String attribute, Integer value){
            RowSetIterator iter = createRowSetIterator(null);
            while (iter.hasNext()){
                Row row = iter.next();
                row.setAttribute(attribute, value);
    Then you expose that as a client interface and then after you filter your table by your criteria you just need to execute this method passing the right parameters.
    Regards

  • How to get more than 300 results for a search

    Hi all,
    When we search for something in a peoplesoft, we get 300 default results right.
    Is there a way we can change that to 500 or 600 or any.
    Please help me.
    Thank you,
    Bye.

    I heard that we have to do some settings in psappserv.cfg file to get more than 300 rows in a search. Is that true?
    Please help me.
    Thank you,
    Bye.

  • How do I set up Mail service for simple IMAP with SSL?

    This should be easy but something isn't working. I have an Xserve with 10.6. I've enabled the Mail service, and want to add this server as an Account under Entourage. I've put in the IP address, my username/password, etc. but something isn't working. It appears under the Accounts folder tree, but when I try to send an email, I have a window that says "4.7.0 TLS not available due to local problem", Error -17099". I've also seen errors telling me the password is being sent in cleartext and I can't see where I enable the same (SSL, password needed) settings on the client and the server menus. Can someone clue me in - what are the right settings on both ends to have a simple IMAP w/o cleartext passwords? I had this working fine in 10.4 Server... Thanks!
    Mike

    I see dropdown menus for SMTP SSL and IMAP/POP SSL. I have them both set as "Require"
    Do not to this if your server is handling incoming mail from outside your network.
    Few remote mail servers will use SSL, so if your server requires SSL then you will not be able to receive mail from outside your domain.
    'Use', on the other hand, advertises the fact your server supports SSL, so clients and remote servers can use if if they like, but this still allows other mail in.
    What should "Authentication" be - "Login" or "Plain"
    Do not use Plain unless you absolutely trust all your clients (i.e. they're all on a LAN or all using SSL). Plain sends an unencrypted password over the wire, which is susceptible to sniffing.
    what will the client be using?
    Whatever you set it to.
    The client complains about a correct root certificate not being installed).
    Are you using a self-signed certificate? if so, you're going to get that unless you do a lot of extra work. Getting a real certificate from a trusted authority should resolve this.
    As for the slow connections, the use of SSL shouldn't significantly impact connection or delivery/transfer times, so something else is amiss.

Maybe you are looking for

  • IPod Recognized in Windows, not in iTunes

    Like many others on this forum, I've been having issues with iTunes and my iPod since installing iTunes 7.0. My iPod appears in My Computer, but iTunes will not recognize it. My first instinct was to try the iPod updater, however when I attempt to ru

  • HP LaserJet 2035 and 10.6.1 Now Supported -- Sorta?

    Just upgraded to 10.6.1 and I the driver was automatically downloaded from Apple for the HP LaserJet 2035n. Printing works great, except for the double-sided printing is now disabled. The print driver had double-sided printing in 10.5? Anyone else se

  • Half of my screen is dark and i have an iphone5c

    Does anyone know how to take this off?

  • Only select audio cds work with my mac pro.

    When I put most of my audio cds in the slot the icon will pop up but then it flickers around the page. I can click on it and it will ask me if I want to download it to itunes. I click yes but then it disappears and nothing happens.

  • WD java application in UWL link has authentication problems !

    Hi ,     I am facing a starnge problem in UWL. I am trying to open an WD Java application upon clicking of UWL workitem. In the WdDoInit() method I have RFC present in R3-HR system. but Rfc execution could not be done when I click UWL work item and i