Query Region (autoCustomizationCriteria) search criteria issue

Hi All,
In my search page I have used a Query Region with Construction Mode as autoCustomizationCriteria. Fot this regionin in Simple search panel I have 3 dropdowns and 2 Date Fields(OAMessageDateFieldBean) which in turn are mapped with related simpleSearchMappings fields.
On this page , for search result table as table actions i have a create button which transfers me to create page. On create page I have the same dropdowns and date fields which are there on search page as search criteria.
Now when i create a record , on click of create button records gets created and controls returns back to the search page with this newly created record in the search result table.(by default whenever search page is rendered it shows all records)
The problem here is the search criteria dropdown and date fields gets populated with the values with which a new record was created .
Why these values are getting populated as the page is difference and whenever the VO is querried I am already clearing its cache?
Any suggestions regarding this ?
Thanks and Regards,
Anant Nimbalkar.

Hi RamKumar,
I have tried not to retain the AM and it worked but now there is a different problem.
On create page on click of save button the record gets saved and related message is displayed on search page. (Used to work before i made retail AM flag false)
But now as i have set it to false I am unable to show these messages on the Search page .
Any idea how both these things ie dropdown with no values(on search page) and message can be achieved ?
Thanks and Regards,
Anant Nimbalkar.

Similar Messages

  • ADF Search criteria issue

    Hi All,
    I am using JDevelopwe version 11.1.1.6.0
    I am using a View Criteria of VO to create a af:query in one of my jspx, but the problem is that if i enter spaces after string in any search field, it is not showing any results.
    Do we have a way to trim the string before searching the VO.
    From my previous question which i marked answered by mistake i got following solutions:
    Assuming that you are using a bind variable, in the source editor, change the value to trim(bind_variable_name) and see if it works fine.
    Something like
    <ViewCriteriaItem
            Name="Ename"
            ViewAttribute="Ename"
            Operator="="
            Conjunction="AND"
            Value="trim(:Bind_Ename)"
            UpperColumns="1"
            Required="Optional"
            IsBindVarValue="true"/>Untested
    Alternatively, you can interpret the query event and "trim" the content to pass it back.
    https://blogs.oracle.com/aramamoo/entry/interpret_af_query_s_queryevent
    But the view criteria i am using is not using bind variable it has filds such as:
    <ViewCriteriaItem
            Name="Keywords"
            ViewAttribute="Keywords"
            Operator="CONTAINS"
            Conjunction="AND"
            Required="Optional"/>so for these type of fields what shall be done, the second approach might work in this case but as i have lots of queries in my case so is there a way without adding lots of code ?
    Thanks,
    Tripuresh

    Hi,
    Sorry, jumped a bit early :). You can generate the impl class for the vo, and override executeQueryForCollection method. In there, get the query parameter and trim it before passing to the super class.
    http://codingwithpassion.blogspot.in/2010/11/oracle-adf-write-view-object-query-with.html
    -Arun

  • Raw query or other search criteria that will limit search results to items in local folders only in Outlook 2011 Mac

    I know I could create an "is not" for each synced Exchange account folder, but is there an easier way to perform a search for email messages that won't include results from currently synced network folders for a given account, but will include
    results from local folders for the same account?
    Lee

    Hi,
    Please check if the links below help:
    http://office.microsoft.com/en-in/mac-outlook-help/find-an-e-mail-message-HA102928306.aspx
    http://office.microsoft.com/en-in/mac-outlook-help/find-items-in-outlook-by-doing-a-basic-search-HA102928307.aspx
    Since this forum is for general questions and feedback related to Outlook for Windows, it's better to post your question to the forum for Mac:
    http://answers.microsoft.com/en-us/mac/forum/macoutlook?tab=Threads
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.
    Thank you for your understanding.
    Steve Fan
    TechNet Community Support

  • How to hide "Note that the search is case insensitive" text from Query Region

    Hi,
    When create a search page with Query region : Autocustomizationcriteria mode, page is showing automatically "Note that the search is case insensitive" text is showing automatically.
    this is not needed. can you please let me know how to hide this one from page.
    Regards,
    Ram

    Check this link:
    https://forums.oracle.com/message/9227812#9227812
    --Sushant

  • Query region (search) displaying error

    Hi
    i have a strange problem, i have made a query region for searching and it is doing fine the first time, but when i search again it is displaying the following error:
    Error Page
    Exception Details.
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (SELECT csi.instance_id AS productid, csi.instance_description,
    mtl.description, stat.NAME, csi.active_start_date, csi.active_end_date,
    attribute_value current_active_lines, csi.attribute1 monthly_revenue,
    csi.attribute2 quarterly_revenue, csi.attribute3 yearly_revenue,
    csi.attribute7 accumulative_revenue
    FROM csi_item_instances csi,
    mtl_system_items_b mtl,
    csi_instance_statuses stat,
    csi_iea_values attr_val
    WHERE mtl.inventory_item_id = csi.inventory_item_id
    AND mtl.organization_id = csi.inv_master_organization_id
    AND stat.instance_status_id = csi.instance_status_id
    AND mtl.attribute7 = 'P'
    AND owner_party_account_id = 15059
    AND location_id = :2
    and mtl.DESCRIPTION <> csi.INSTANCE_DESCRIPTION
    AND csi.instance_id = attr_val.instance_id
    AND attr_val.attribute_id IN (SELECT attribute_id
    FROM csi_i_extended_attribs
    WHERE attribute_code = 'ACTV_LINES')
    UNION
    SELECT csi.instance_id AS productid, csi.instance_description,
    mtl.description, stat.NAME, csi.active_start_date, csi.active_end_date,
    attribute_value current_active_lines, csi.attribute1 monthly_revenue,
    csi.attribute2 quarterly_revenue, csi.attribute3 yearly_revenue,
    csi.attribute7 accumulative_revenue
    FROM csi_item_instances csi,
    mtl_system_items_b mtl,
    csi_instance_statuses stat,
    csi_iea_values attr_val
    WHERE mtl.inventory_item_id = csi.inventory_item_id
    AND mtl.organization_id = csi.inv_master_organization_id
    AND stat.instance_status_id = csi.instance_status_id
    AND mtl.attribute7 = 'P'
    AND owner_party_account_id = :1
    AND location_id = :2
    and mtl.DESCRIPTION <> csi.INSTANCE_DESCRIPTION
    AND attr_val.instance_id(+) = csi.instance_id
    AND attr_val.attribute_id IS NULL) QRSLT WHERE (( UPPER(INSTANCE_DESCRIPTION) like :3 AND (INSTANCE_DESCRIPTION like :4 OR INSTANCE_DESCRIPTION like :5 OR INSTANCE_DESCRIPTION like :6 OR INSTANCE_DESCRIPTION like :7)))
    java.sql.SQLException: Invalid column type
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:124)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:161)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:226)
         at oracle.jdbc.driver.OraclePreparedStatement.setObjectCritical(OraclePreparedStatement.java:7868)
         at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:7545)
         at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:8156)
         at oracle.jdbc.driver.OraclePreparedStatement.setObjectAtName(OraclePreparedStatement.java:8179)
         at oracle.jbo.server.OracleSQLBuilderImpl.bindParamValue(OracleSQLBuilderImpl.java:3916)
         at oracle.jbo.server.BaseSQLBuilderImpl.bindParametersForStmt(BaseSQLBuilderImpl.java:3335)
         at oracle.jbo.server.ViewObjectImpl.bindParametersForCollection(ViewObjectImpl.java:13746)
         at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:801)
         at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:666)
    please help

    You need to look into your code to figure out what is getting executed the next time you are running the query? I would recommend picking the query and the bind parameter from the Jdev log and testing it out in TOAD/SQL Developer.
    Regards
    Sumit

  • ADF 11g - Query Component - How to set default values for search criteria

    I have defined a VO with named query (with 2 search criteria). I created a page and drop a query with table. It works just fine until this point. My requirement is to set a default values for the two search criteria. For example, I have release and category criteria where they are set to use a drop down. I would like to default the values for the drop down when the page is shown up the first time and query the result right away. Is there a way declaratively or I have to create a custom query?
    Thanks.

    I figured this out. Thanks.

  • Query Region - Changing "Go" Button

    Using JDeveloper 10.1.3.3 with R12.
    I was going through the tutorial and I completed the "Search" tutorial. After I was done, I wanted to customize it and play around with it and I'm trying to change the "Go" button to something different, but I can't seem to find where to change the text of the button.
    I guess because when you tell it to make a query region and search panel etc it automatically puts in those buttons? But how do I change the text of the buttons.
    Thank you in advance.
    Edited by: Pierre on Jun 14, 2012 12:09 PM

    Pierre,
    Yes this is possible. The trick here is to not start with the webBean, but the OAPageLayoutBean. Also you need to attach this controller as the controller of the table beneath your query region so that when it is called, the GO button exists.
    Here is the code (presume simpleSearchRN is the name of your query region, change to match your query region name):
    OAPageLayoutBean pl = (OAPageLayoutBean) pageContext.getPageLayoutBean();
    OAQueryBean qb1 = (OAQueryBean)pl.findChildRecursive("simpleSearchRN");
    OASubmitButtonBean sb = (OASubmitButtonBean) qb1.findChildRecursive(qb1.getGoButtonName());
    sb.setText("SmartyPants");
    Hope this helps.
    Kristofer Cruz

  • Query region Search mappings issue

    Hi,
    I have components laid out like the following in my app
    Query Region
    |
    |-subTabLayout
    | |
    | |- AdvanceTable 1
    | |- AdvanceTable 2
    |
    |-Query Components
    |-Simple search panel
    |-Simple search mappings
    Issue: I mapped each of the search inputs to the valid column ids from Advancetable1 and advancetable2 in the simple search mappings. When I run the application with some search parameters in the search fields belonging to both the tables, I only see AdvanceTable1 criterias being passed and advancetable2 criterias not appearing. (I am getting the criterias in the controller using queryBean.getCriteria() which returns a Dictionary[]).
    Is there a limitation for Query region to have one region alone or am I missing something? Your help is appreciated.
    Thank you for your time.
    Regards,
    Arun

    If you have a complex serarch region structure, its always better to go for a custom region where you can manipulate the things as you want.
    --Shiv                                                                                                                                                                                                                                                                                                           

  • Issue with Query Region

    Hi All,
    I have a query region with result table, it results the data upon search creteria. each row have a update icon where user can navigates to update page to edit the information. So when user gets back to search page and clicks on clear button of query region and clicks 'GO' the page gets error out. There is nothing written for 'GO' or 'Clear' they are query region components.
    And I have question, when user click on clear and than enters some criteria it works fine , if user navigates to update page and comes back clicks 'clear' without entering search criteria and hits 'GO' its erroring out and error message displays the query appended with cleared search criteria's in where clause, saying missing parametrs in or out at index 1
    Error Message:
    Exception Details.
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation
    SELECT * FROM (SELECT EO.col1, EO.col2....) .. QRSLT WHERE ((( UPPER(STATUS) = :1 AND (STATUS like :2 OR STATUS like :3 OR STATUS like :4 OR STATUS like :5))))
    Actually when I clear and click 'GO' it is trying to construct with cleared search criteria. Any explanation for this?
    and why its trying to append 'or' clause 4 times. I have 4 other LOVs in search criteria in the region with Status message choice.
    Thanks in Advance.

    Hi,
    can you try this? don't navigate to update page enter some crieteria and then click on GO and then again press clear button and then again click on GO and check, is it working fine?
    This works fine, the issue when I navigate back from update page. please find the below code in processFormRequest
    SearchCO
    if("update".equals(event))
    pageContext.setForwardURL("OA.jsp?page=/xxx/oracle/apps/..../webui/UpdatePG
    , null, (byte)0, null, null, true, "Y", (byte)99);
    UpdateCO
    if(pageContext.getParameter("Cancel") != null)
    am.invokeMethod("rollback");
    pageContext.forwardImmediately("OA.jsp?page=/xxx/oracle/apps/...../webui/SearchPG"
    , null, (byte)0, null, null, true, "N");
    public void rollback()
    Transaction txn = getTransaction();
    if(txn.isDirty())
    txn.rollback();
    Anyway Thanks for reply.
    Thanks,
    Nooker Satya

  • OA Query Region shows previous search results when moving between pages

    Hello All,
    I have a custom OA Page which has a query region based on a LOV for searching device names. The problem I am facing is once device name is searched and I go to another page through the quick links and come back to same Search Device page, it shows the previous searched results. I am not retaining AM for any page navigation.
    Things I have already tried :
    1 . I have tried refreshing VO by using clearcache and reset methods on VO.
    2. Get the Go button from the query region in ProcessFormRequest and on Go button click I use forwardImmediatelyToCurrentPage. And in Process Request method I am querying the results manually when Go button is clicked. Otherwise I am manually making the where clause condition 1=2 and ensuring that the VO does not return any rows.
    But still I am not able to get rid of the issue.
    The code used is pasted below for your reference. It is urgent. Can you please provide any pointers.
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    try
    VpaAdminAMImpl am = (VpaAdminAMImpl)pageContext.getApplicationModule(webBean);
    TkvpaDeviceSearchVOImpl deviceAll = am.getTkvpaDeviceSearchVO1();
    deviceAll.clearCache();
    deviceAll.reset();
    deviceAll.setWhereClause("1=2");
    deviceAll.setWhereClauseParams(null);
    String query = deviceAll.getQuery();
    System.out.println("getSearchResult query :="+query);
    deviceAll.executeQuery();
    OAQueryBean queryBean = (OAQueryBean)webBean.findChildRecursive("region1");
    String goAction = queryBean.getGoButtonName();
    if(pageContext.getParameter(goAction) != null)
    getSearchResult(am, pageContext, webBean);
    catch(Exception ex)
    throwException("SearchDeviceCO.processRequest",ex);
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    String action = pageContext.getParameter(EVENT_PARAM);
    OAQueryBean queryBean = (OAQueryBean)webBean.findChildRecursive("region1");
    String Go = queryBean.getGoButtonName();
    System.out.println(pageContext.getParameter(Go));
    if(pageContext.getParameter(Go) != null)
    pageContext.forwardImmediatelyToCurrentPage(null,false,"N");
    public void getSearchResult(VpaAdminAMImpl am, OAPageContext pageContext, OAWebBean webBean)
    try
    String device = pageContext.getParameter("deviceSearch");
    StringBuffer sb = new StringBuffer();
    if(device != null && device != "")
    sb.append(" DEVICE_NAME = '");
    sb.append(device);
    sb.append("'");
    String sql = sb.toString();
    TkvpaDeviceSearchVOImpl deviceAll = am.getTkvpaDeviceSearchVO1();
    deviceAll.setWhereClause(sql);
    deviceAll.setWhereClauseParams(null);
    String query = deviceAll.getQuery();
    System.out.println("getSearchResult query :="+query);
    deviceAll.executeQuery();
    }catch(Exception e)
    e.printStackTrace();
    Thanks in Advance,
    Abhishek Mishra

    Hi Anand,
    The getSearchResult method also does the same thing. I have also tried to remove the dependency on getSearchResult and wrote the same code in ProcessRequest() but still it does not solve the problem.
    In fact, I have ensured that the VO does not contain any records and have checked these by using SOPs and debug in JDEV. The interesting point is the VO does not have any records but still the previous search data and search criteria is shown when we navigate to the page. Printed the query just before performing execute query and that query does not return any records. Also tried printing something if there are any records in the VO by using vo.hasNext().
    Data gets stored somewhere and it is shown when the page is navigated from other page. FYI, this page is accessed from quick links and there are other pages also in the quick links and when we navigate between these pages we get to see the previous search results. Tried methods clearCache(), reset() on VOs but still unsuccessful.
    Not even that I thought that the VO may be corrupted in some sense so I created a new VO instance in the AM and then used newly created VO instance in the query region. But still no luck.
    Any pointers will be appreciated.
    Thanks in Advance,
    Abhishek

  • Input Search criteria gets cleared on searching in Search Region

    In a pageA I have a search region, this search region has
    2 date fields.
    I have a return link on pageA that directs to pageB. Another button on pageB directs to pageA. For every page redirection, we have retainAM='Y', due to this the search criterial in pageA still remains if we do a navigation like pageA->pageB->pageA
    to clear the search criteria for every page reload of pageA, I am setting the value of
    datefield to null in the processrequest() of pageA.
    Now the wierd thing that is happening is though the search results are appearing fine,
    the data entered in date fields is getting disappeared on doing a search.
    in processformrequest, when I do a pagecontext.getparameter(datefieldID) this returns a value but
    doing a webBean.findindexchildrecursive(dateBean).getValue returns null.
    any idea what the issue could be.
    Thanks,
    Kalyan.
    Message was edited by:
    Naga Kalyan

    Is it a query region or a custom search region? What is the code written to null the date fields?
    Is there any flow where the values are retained?
    --Shiv                                                                                                                                                                                                                                                                                                                           

  • Query Region: vo.executeQuery is not using criteria first time.

    Hi,
    Scenario*
    I have a simple QueryRegion with an AdvancedTable. Its construction mode is autoCustomizatioCriteria.
    Also, there is a 'Refresh' button on the page to redirect to same page with a parameter 'refreshStatus' set.
    This button is handled in the processFormRequest as follows
    if (pageContext.getParameter("Refresh") != null) {
    HashMap parameters = new HashMap();
    parameters.put("refreshStatus", "REFRESH");
    pageContext.forwardImmediately("OA.jsp?page=/oracle/apps/ap/payments/psr/webui/PsrSearchPG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null, parameters, true,
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
    In the processRequest, the 'refreshStatus' parameter is checked and if it is true, an AM method is invoked which calls a VO method, which ultimately invokes super.executeQuery() which is expected to use previous search criteria.
    Issue*
    I navigate to this page, enter criteria and click 'Go'.
    Expected results are displayed.
    Then I click the Refresh button. The table refreshes without considering the criteria. All results from database table are displayed.
    The criteria entered is still seen in the search fields as the AM is retained during redirect.
    Now I click on 'Go' again keeping the same criteria.
    Expected Results are displayed.
    Then I click the Refresh button. Now the table refreshes with the criteria in action.
    I am not getting the expected Refresh behavior for the first time only. The flow is same both times for Refresh button. Any idea why executeQuery() is not seeing WHERE conditions on the VO for the first time?
    Thanks
    Chinni

    Chinni
    Please post the complete codes .
    boolean isRefreshStatus =pageContext.getParameter("refreshStatus") != null;Here you are taking refereshStatus value in boolean but your value is REFRESH boolean cannot accept string type data.
    I will suggest try using sop() and check whether VO method for executing query is getting called or not and based on what values...
    Moreover while posting your code kindly enclose it in between {noformat}{noformat}
    for e.g
    {noformat} select * from dual
    {noformat}
    This looks like select * from dualThanks
    AJ                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Issue in LOV Region in query region

    Hi ,
    I hava a query region with autocustomization true, include simple panel=true initial pane: simple
    In search field i add a field of User Id LOV and attached the vo. UseridLOV :
    set search allowed true
    map with table values.
    Issue is : IN LOV region of User Id when i click go it shows all records . But if i search a value with A% it shows no records eventhough it is having records starts with A.
    Why is it happening...Anybody help me.
    Thanks,
    Pradeep
    Edited by: user11165897 on Oct 4, 2012 6:13 AM

    Hi Pradeep,
    I have tested my lov it is working fine .Sometimes LOV doesn't work ,can you please remove and recreate lOV and add to your userid field
    Thanks
    Shiva
    Edited by: 940580 on Oct 5, 2012 12:18 AM

  • Search by Date in Query Region Not working

    Hi,
    I have created a custom page with query region -autocustomization construction mode.
    This query region has a vo which contains one of the fields is requestedDate of date datatype.
    Requirement is :
    I need to fetch all records..based on requestDate (also)in search panel. But i am getting all the records in the table..
    Please advise me to solve this issue..
    Thanks in advance,
    Pradeep

    Pradeep
    You should check and compare the date field mapping with other fields that you have done the correct mapping like other fields , because there should be no issue if mapping is correct, is this entire custom page created by you ? or are you doing changes in existing custom page ?
    thanks
    Pratap

  • Reg Message Lov Input Field In Query Region Search.

    Hi ,
    I have a issue to implement a Message Lov Input Field in Query Region Search(AutoCustomizationSearch).
    Please Help on this Issue
    Thanks & Regards
    Santhu

    Santhu ,
    Please Let us know the step you have followed to achieve this , and what is the error you are getting .
    Regards ,
    Keerthi

Maybe you are looking for

  • Cannot print to hp c7180 all-in-one using eprint from my ipad2

    Just installed hp eprint on my iPad 2 and when I try to print eprint finds a number of printers but not the one on my home network which is a hp photos art c7180 all-in-one. This question was solved. View Solution.

  • Update of vendor - BBP_TRANSDATA_PREP

    Hi guys, Got a question about the update of a vendor. We're using BBP_VENDOR_SYNC in order to sync the vendor data. However, in one case we want to overrule the default communication method. How to do this? We've implemented BBP_TRANSDATA_PREP. We've

  • Photoshop won't open Save As... dialog (not a low-res problem)

    Pretty much what the title says. Photoshop will ocassionally (not always) refuse to bring up the Save As... dialog.  However, once it does, it continues to refuse until the machine is rebooted or all instances of explorer.exe are killed. (I should ad

  • Cannot edit photo in CS6 from LR4

    Operating in Windows 7, 64.  Any ideas on what we did wrong?

  • ORA-3115 occuring after migration to Oracle 11.1.0.6 on Red Hat

    Our application has been running on Tru64 5.1b, Oracle v9 for years quite happily. Since migrating to Red Hat Linux, Oracle 11 we've encountering ORA-3115 errors sporadically from a Pro*C call. Our C executable maintains a connection to the database.