Reorder Saved Search items in af:query component

Hi,
Is there any way to change the order of Saved Searches listed in the af:query component. The order that the view criteria are displayed in this component does not seem to have any relationship to the order that they occur in the VO.xml file, nor are they listed alphabetically.
I'm only interested in ordering the view criteria in the choice list, that I have configured at design time.
Is this possible?

forgot to mention in my initial post that I'm using Jdeveloper 11g Rel 1.
Thanks,

Similar Messages

  • Defaulting search fields in af:query component

    I have a search popup with af:query and a result table. My requirement is to default some of the fields in af:query when the popup launches.
    Since i could not achieve this, i wrote a temporary work around which should be removed as soon as we find a permanent solution.
    Work around:
    1. Wrote a method showQBE() in the bean. Wrote the logic to default the QBE fields by manually iterating through the component binding.
    2. Call showQBE() in the visible property of the af:query so that this executed when the popup is invoked.
    public boolean showQBE(){
    RichQuery rq = this.getResourcePickerQBE(); // Bindning for QBE
    QueryDescriptor dq = rq.getValue();
    List children = rq.getChildren();
    Iterator childrenItr = children.iterator();
    while (childrenItr.hasNext()) {
    RichPanelGroupLayout rpcl = (RichPanelGroupLayout)childrenItr.next();
    Iterator rpclItr = rpcl.getChildren().iterator();
    while (rpclItr.hasNext()) {
    // RichPanelLabelAndMessage
    UIComponent rplm = (UIComponent)rpclItr.next();
    Iterator rplmItr = rplm.getChildren().iterator();
    while (rplmItr.hasNext()) {
    UIComponent comp = (UIComponent)rplmItr.next();
    Iterator compItr = comp.getChildren().iterator();
    while (compItr.hasNext()) {
    UIComponent comp1 = (UIComponent)compItr.next();
    String class2 = comp1.getClass().getSimpleName();
    if (class2.equals("RichInputText")) {
    RichInputText rit = (RichInputText)comp1;
    if ("value40".equals(rit.getId()) ||
    "value41".equals(rit.getId())) {
    rit.setValue("Bryan");
    } else if ("value50".equals(rit.getId()) ||
    "value51".equals(rit.getId())) {
    rit.setValue(ADFUtil.evaluateEL("Adams"));
    } else
    rit.setValue("");
    AdfFacesContext.getCurrentInstance().addPartialTarget(rit);
    Popup code:
    <af:popup id="resourceSearch1"
    popupFetchListener="#{backingBeanScope.TerritoryProfileBean.showParentTerrOwnerReportsForTerrTeamMember}"
    binding="#{backingBeanScope.TerritoryProfileBean.resourcePickerPopup}"
    popupCanceledListener="#{backingBeanScope.TerritoryProfileBean.cancelButtonListener}"
    contentDelivery="lazyUncached" childCreation="deferred">
    <af:dialog id="d20" type="none" title="#{salesterrmgmtterritoriesuiGenBundle}">
    <af:panelGroupLayout id="pgl191" layout="vertical">
    <af:panelHeader id="ph21" text=" ">
    <af:query id="qryId2" headerText="#{applcoreBundle.QUERY_SEARCH_HEADER_TEXT}" disclosed="true"
    value="#{bindings.ResourcePickerSearchQuery.queryDescriptor}"
    model="#{bindings.ResourcePickerSearchQuery.queryModel}"
    queryListener="#{backingBeanScope.TerritoryProfileBean.onSearchBtn}"
    saveQueryMode="hidden" resultComponentId="::t3"
    binding="#{backingBeanScope.TerritoryProfileBean.resourcePickerQBE}"
    visible ="#{backingBeanScope.TerritoryProfileBean.showQBE}"
    queryOperationListener="#{backingBeanScope.TerritoryProfileBean.queryOperationListener}"/>
    </af:panelHeader>
    <af:panelStretchLayout id="psl2" startWidth="50px"
    visible="#{backingBeanScope.TerritoryProfileBean.showSearchTable}">
    <f:facet name="bottom"/>
    <f:facet name="center">
    <af:table value="#{bindings.ResourcesPicker.collectionModel}"
    var="row"
    rows="#{bindings.ResourcesPicker.rangeSize}"
    emptyText="#{bindings.ResourcesPicker.viewable ? applcoreBundle.TABLE_EMPTY_TEXT_NO_ROWS_YET : applcoreBundle.TABLE_EMPTY_TEXT_ACCESS_DENIED}"
    fetchSize="#{bindings.ResourcesPicker.rangeSize}"
    rowBandingInterval="0"
    selectionListener="#{bindings.ResourcesPicker.collectionModel.makeCurrent}"
    rowSelection="multiple" id="t3"
    binding="#{backingBeanScope.TerritoryProfileBean.resourcePickerTable}"
    contentDelivery="immediate"
    columnSelection="multiple" autoHeightRows="10"
    summary="#{salesterrmgmtterritoriesuiBundle.THIS_TABLE_LISTS_THE_RESOURCES}">
    <af:column sortProperty="ResourceName" sortable="true"
    headerText="#{bindings.ResourcesPicker.hints.ResourceName.label}"
    id="c3" rowHeader="unstyled">
    <af:inputText value="#{row.bindings.ResourceName.inputValue}"
    label="#{bindings.ResourcesPicker.hints.ResourceName.label}"
    required="#{bindings.ResourcesPicker.hints.ResourceName.mandatory}"
    columns="#{bindings.ResourcesPicker.hints.ResourceName.displayWidth}"
    maximumLength="#{bindings.ResourcesPicker.hints.ResourceName.precision}"
    shortDesc="#{bindings.ResourcesPicker.hints.ResourceName.tooltip}"
    id="it6">
    <f:validator binding="#{row.bindings.ResourceName.validator}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="PrimaryPhoneNumber" sortable="true"
    headerText="#{bindings.ResourcesPicker.hints.PrimaryPhoneNumber.label}"
    id="c6">
    <af:inputText value="#{row.bindings.PrimaryPhoneNumber.inputValue}"
    label="#{bindings.ResourcesPicker.hints.PrimaryPhoneNumber.label}"
    required="#{bindings.ResourcesPicker.hints.PrimaryPhoneNumber.mandatory}"
    columns="#{bindings.ResourcesPicker.hints.PrimaryPhoneNumber.displayWidth}"
    maximumLength="#{bindings.ResourcesPicker.hints.PrimaryPhoneNumber.precision}"
    shortDesc="#{bindings.ResourcesPicker.hints.PrimaryPhoneNumber.tooltip}"
    id="it10">
    <f:validator binding="#{row.bindings.PrimaryPhoneNumber.validator}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="EmailAddress" sortable="true"
    headerText="#{bindings.ResourcesPicker.hints.EmailAddress.label}"
    id="c5">
    <af:inputText value="#{row.bindings.EmailAddress.inputValue}"
    label="#{bindings.ResourcesPicker.hints.EmailAddress.label}"
    required="#{bindings.ResourcesPicker.hints.EmailAddress.mandatory}"
    columns="#{bindings.ResourcesPicker.hints.EmailAddress.displayWidth}"
    maximumLength="#{bindings.ResourcesPicker.hints.EmailAddress.precision}"
    shortDesc="#{bindings.ResourcesPicker.hints.EmailAddress.tooltip}"
    id="it1">
    <f:validator binding="#{row.bindings.EmailAddress.validator}"/>
    </af:inputText>
    </af:column>
    </af:table>
    </f:facet>
    </af:panelStretchLayout>
    </af:panelGroupLayout>
    <f:facet name="buttonBar">
    <af:group id="g41">
    <af:commandButton actionListener="#{backingBeanScope.TerritoryProfileBean.onApplyOrDoneFromResourcePicker}"
    id="cmdDone1" immediate="true"
    partialSubmit="true"
    text="#{acrGenBundle}">
    <af:resetActionListener/>
    </af:commandButton>
    <af:commandButton id="cb5" actionListener="#{backingBeanScope.TerritoryProfileBean.cancelButtonListener}"
    text="#{acrGenBundle}"/>
    </af:group>
    </f:facet>
    </af:dialog>
    </af:popup>
    * I created the same thread ADFbc forum: http://myforums.oracle.com/jive3/thread.jspa?threadID=632625. Since there is no response posting here.
    Thanks

    The af:query is based on a View Criteria from a PVO, so i wrote the following code to set the value for the criteria items in the View criteria.
    I wrote it in view object's getter in the AMImpl.java
    public ResourcePickerVOImpl getResourcePicker(){
    ResourcePickerVOImpl vo = findViewObject("ResourcesPicker");
    ViewCriteria vc = (ViewCriteria)vo.getViewCriteria("ResourcePickerSearch");
    ViewCriteriaManager vm = vc.getViewCriteriaManager();
    Row rows[] = vc.getAllRowsInRange();
    for(Row row : rows){
    List<ViewCriteriaItem> cit = ((ViewCriteriaRow)row).getCriteriaItems();
    Iterator<ViewCriteriaItem> itr = cit.iterator();
    while(itr.hasNext()){
    ViewCriteriaItem vtr = itr.next();
    vtr.setValue("Mathew");
    System.out.println("Column name: " + vtr.getColumnName() + " Value: " + vtr.getValue());
    I changed the contextDelivery = immediate and childrenCreation = immediate since the popup was always showing empty search fields.
    After changing this property i am seeing a new issue -> First time when i open the popup nothing is shown in the search fields. Then from the subsequent times it is showing the values defaulted through the above code.
    Any idea!
    Edited by: [email protected] on Aug 26, 2010 4:30 AM

  • Af:query - which client event is raised when selecting a saved search

    Hi Everyone,
    Is there a client event raised when selecting a different saved search in the af:query panel?
    I thought it would be propertyChange but that doesn't seem to work.
    Using JDev / ADF 11.1.2.1.0

    I can think of one way... Like Frank said, you could try hooking up a query operation listener in a backing bean and use QueryOperationEvent to get what you want.
    Then you could use the ExtendedRenderKitService to execute/inject javascript on the page.
    Would that work for you?Hi, thanks for sharing that.
    And I do appreciate that QueryOperationEvent would do the job in most cases, but there might be some cases where I would like to avoid a trip to the server if possible.
    Before considering workarounds I was trying to clarify the expected behaviour (i.e. +which of the client events if any, is intended to be raised when you switch a saved search?+)
    e.g. af:query raises the client event called 'query' (while on a server side managed bean you can listen for QueryEvent as mentioned earlier in the thread).
    [To quickly see the list of client events, you can add an af:clientListener under af:query and look at the available options]
    This 11.1.2 doc doesn't mention client events at all: http://docs.oracle.com/cd/E24382_01/apirefs.1112/e17491/tagdoc/af_query.html
    And the ADF client side architecture also doesn't list the specific events:
    http://docs.oracle.com/cd/E29049_01/web.1112/e16181/af_arch.htm#CBHJEJJG

  • Incorrect operators in af:query component

    We have created a search popup using af:query component based on a view criteria.
    The view criteria uses two string[varchar2(60) in EO] attributes named "Name" and "Owner".
    TerritorySearchViewCriteria
    Group
    Name CONTAINS :BindTerritoryName -- String in VO, Varchar2(60) in EO
    AND Owner CONTAINS :BindOwnerName -- String in VO, varchar2(360) in EO
    Issue:
    The operators drop down shows some irrelevant search operators(not meaningful to strings) such as "BETWEEN",
    "NOT BETWEEN", "BEFORE", "AFTER", "ON OR AFTER" and "ON OR BEFORE". Because of this we are seeing some unexpected
    search results when this operators are used for searching.
    On looking at the Bali site and BLAF guidelines page it clearly states that the list of operators for string are
    "EQUALS", "NOT EQUALS", "STARTS WITH", "ENDS WITH", "CONTAINS", "DOES NOT CONTAIN", "LIKE", "IS BLANK" and "IS NOT
    BLANK".
    Bali link: http://dadvmc0454.us.oracle.com:9002/faces-11.1.1.2.0/faces/components/query.jspx?_afrLoop=19876843626481699&_afrWindowMode=0&_afrWindowId=null
    BLAF guidelines: http://blafstaging.us.oracle.com/blafSite/guidelines5/search.html#queryPanelCond
    Attribute Definition in TerritoryEO:
    <Attribute
    Name="Name"
    IsNotNull="true"
    Precision="60"
    ColumnName="NAME"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    SQLType="VARCHAR"
    TableName="MOT_TERRITORIES">
    Attribute definition in TerritoryVO:
    <ViewAttribute
    Name="Name"
    IsNotNull="true"
    PrecisionRule="true"
    EntityAttrName="Name"
    EntityUsage="Territory"
    AliasName="NAME">
    Query component in ManageTerritories.jsff:
    <af:query id="qryId1" headerText="#{acrGenBundle['Header.Search']}"
    disclosed="true"
    value="#{bindings.TerritorySearchQuery.queryDescriptor}"
    model="#{bindings.TerritorySearchQuery.queryModel}"
    queryListener="#{backingBeanScope.ManageTerritoriesBean.onTerritorySearchQuery}"
    queryOperationListener="#{bindings.TerritorySearchQuery.processQueryOperation}"
    resultComponentId="::pc2:resId1"
    saveQueryMode="hidden"
    modeChangeVisible="false"
    conjunctionReadOnly="true"
    styleClass="AFStretchWidth"/>
    Is there a way to eliminate the operators which does not make sense for String type.
    Thanks,
    Sekar

    As per the guidelines mentioned for String, You could remove the unwanted operators from the view criteria item.
    The example below shows - how the unwanted operators namely BETWEEN & NOTBETWEEN could be removed.
    For more details, look into the following section 27.3.3 in the developer's guide:
    http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/web_search_bc.htm#CIHIDGGC
    Sample:
    <ViewCriteria
    Name="EmployeesVOByFirstNameOrLastName"
    ViewObjectName="model.views.EmployeesVO"
    Conjunction="AND">
    <Properties>
    <CustomProperties>
    <Property
    Name="displayOperators"
    Value="InAdvancedMode"/>
    <Property
    Name="autoExecute"
    Value="false"/>
    <Property
    Name="allowConjunctionOverride"
    Value="true"/>
    <Property
    Name="showInList"
    Value="true"/>
    <Property
    Name="mode"
    Value="Basic"/>
    </CustomProperties>
    </Properties>
    <ViewCriteriaRow
    Name="vcrow0"
    UpperColumns="1">
    <ViewCriteriaItem
    Name="FirstName"
    ViewAttribute="FirstName"
    Operator="CONTAINS"
    Conjunction="AND"
    Value=""
    Required="Optional">
    *<CompOper*
    Name="Category"
    ToDo="-1"
    Oper="BETWEEN"/>
    *<CompOper*
    Name="Category"
    ToDo="-1"
    Oper="NOTBETWEEN"/>
    </ViewCriteriaItem>
    <ViewCriteriaItem
    Name="LastName"
    ViewAttribute="LastName"
    Operator="CONTAINS"
    Conjunction="OR"
    Value=""
    Required="Optional"/>
    </ViewCriteriaRow>
    </ViewCriteria>
    Thanks,
    Navaneeth

  • Glass Pane( preventUserInput when user clicks on Search button in af:query)

    Hi,
    We are using glass pane implementation on a search screen.
    When I click on Search button in af:query component (having selectInputDate (Date Picker) components)., glass pane is firing correctly,
    but second time when I am trying to select date using Date Picker (and Change the Month), glass pane is fired (entering into handleBusyState function) and calendar popup is not opening.
    I folled the below article for implementation.
    url: http://www.oracle.com/technetwork/developer-tools/adf/learnmore/27-long-running-queries-169166.pdf used for glassPane implementation.
    Can any one help me for this issue.

    Hi am using the following code (javascript) -- Jdev(11.1.1.3)
    function preventUserInput(evt){   
    var eventSource = evt.getSource();
    var popup1 = eventSource.findComponent("showGlassPanePopup");
    if (popup1 != null){
    AdfPage.PAGE.addBusyStateListener(popup1,handleBusyState);
    evt.preventUserInput();
    //JavaScript call back handler
    function handleBusyState(evt){ 
    var popup = AdfPage.PAGE.findComponentByAbsoluteId('r3:0:r1:0:showGlassPanePopup');
    if(popup!=null){
    if (evt.isBusy()){
    popup.show();
    } else if (popup.isPopupVisible()) {
    popup.hide();
    AdfPage.PAGE.removeBusyStateListener(popup, handleBusyState);
    ... End of Code..
    This line .. (popup.isPopupVisible()) removes the Popup , if popup is visible...
    If u want the view am using..
    SELECT EMPNO , DEPTNO , HIREDATE FROM EMPLOYEE (sample Application i have created), created a view criteria for this..
    ( (EMPNO = :empNum ) AND (DEPTNO = :deptNum ) AND (TO_CHAR( TO_TIMESTAMP(HIREDATE), 'yyyy-mm-dd hh24:mi:ss.ff') = :hireDts ) ) (View Criteria)
    .. <af:clientListener method="enforcePreventUserInput" type="query"/> (added for af:query)
    Popup Used: <af:popup id="showGlassPanePopup" contentDelivery="immediate">
    <af:dialog id="d2" type="none" closeIconVisible="false">
    <af:panelGroupLayout id="panelGroupLayout1" layout="vertical">
    <af:outputText value="Processing......Please Wait.." id="ot97"/>
    </af:panelGroupLayout>
    </af:dialog>
    </af:popup>
    1. When i click search for first time.. it is showing like -- Processing .. Please Wait'
    2. When i click select Date picker it is show -- Processing .. Please Wait'
    and show a calender popup window.. If we change the month ... it will again show like -- Processing .. Please Wait'
    and it will not open calender window.
    Please Help me on this..Am facing trouble due to this.
    Thanks in Advance.
    Edited by: user10115793 on Nov 15, 2011 12:58 AM

  • af:query component - need help

    hi
    I am implemeting a search page wiht <af:query> component with view criteria. (to be specific drag and drop viewCriteria as query panel with table)
    what i observe is that when I do "Add fields" at runtime the compnent moves up and up till it hides the panelHeader and the other fields with no access to it.
    After i refresh the screen the component comes back to its normal positon but pushes the table component below it down till its barely visible.
    This component seems to be very unstable.
    Let me know if there is any workaround without making the screen unstable.

    Hi,
    You can find some related info here..
    Can I achive valueChangeListener in af:query?
    and
    http://jobinesh.blogspot.com/2011/03/retrieving-viewcriteria-from-custom.html
    Thanks,
    TK

  • How to implement Quick Query and Saved Searches in ADF?

    We are using 11gR2 ADF.
    The requirement is to enable Quick Search and save the Searches.
    In the Oracle ADF documentation, it is mentioned that
    - Create a view with view criteria named.
    - In the .jspx drag and drop the view criteria and Select Quick Query
    Upon doing the above, we see that a Search panel is getting created, but with a message 'No Search Fields Added'.
    In the named view criteria, Under 'UI Hints' we have set
    -- execution mode as Both
    -- Search region mode is Basic
    -- Show Operators in Basic
    Under 'Criteria Definition'
    the attributes are added in a group with OR condition.
    Thanks for your reply. Oracle ADF developer guide does not help!!
    If you have any other documentation that helps in implementing this Quick Query and Saved Search, your help is greatly appreciated.

    Set the following on your af:query component
    SaveQueryMode = hidden
    ModeChangeVisible = false
    This should work for you ..
    Regards,

  • Af:query saved search not getting deleted.

    hi,
    I have a af:query component in which I am setting saveQueryMode="default".
    As per the docs, setting this value to default implies: "default: all saved searches are displayed. In addition any saved search can be created but only user saved searches can be deleted/updated."
    I fire a search on the query component and then save it as "mysearch".
    I then try to personalize it.
    However, here I don't find the Delete button enabled for it.
    I want the user saved searches to be deletable.
    Am I missing anything here?
    Thanks.

    Simo,
    I guess you have to look for MDS or Meta data service. MDS stores changes to the ui like table layout and query state for each user in a central store (db or file).
    To use MDS you must use ADF security as this gives MDS the user ID.
    I can't search for more info right now as I'm not in front of my pc. Check the doc for MDS and you find more info.
    Timo

  • How to implement saved search delete feature in af:query

    Hi,
    I have implement MDS for af:query. However, delete button in "Personalized" window of af:query is still being disable.
    My test flow is the following:
    1) fire a search on the query component and then save it as "savedSearch1".
    2) then try to personalize it. Observed that "Delete" button in Personalize window is being disable. Not able to delete "savedSearch1"
    My question is: Is there a way for me to enable the "Delete" Button at the personalized window so that user can delete the saved search?
    I have af:query component with the following code:
    <af:query id="qryId1" headerText="#{uiBundle.SEARCH}" disclosed="true"
    value="#{bindings.KanbanCardSummaryVOCriteriaQuery.queryDescriptor}"
    model="#{bindings.KanbanCardSummaryVOCriteriaQuery.queryModel}"
    queryListener="#{KanbanSummaryBean.queryListener}"
    queryOperationListener="#{bindings.KanbanCardSummaryVOCriteriaQuery.processQueryOperation}"
    resultComponentId="::pc1:t1" maxColumns="2" rows="1"/>

    Hi,
    Does anyone knows the answer for this question?
    Thanks,
    Hong

  • Af:query with bind variables and Saved Search

    I have a VO and view criteria(VC).
    VC has a criteria item ObsoleteDate with range specified as bindVariables "dateFrm" and "dateTo" I dragged & dropped the named criteria as af:Query with table. Table toolbar has 2 buttons in which I set & clear the bind variables. Data is fetched as per as expected based on the VC & bind variables.
    The problem is,
    If I save my search with bind variables set and swap between the saved searches , all works fine. But the moment I clear bind variables & swap between searches.. "dateFrm" is populated and "dateTo" is null and I get an Exception oracle.jbo.AttrValException: JBO-27035: Attribute Obsolete Date: is required.
    Why is this happening?? Saved search is supposed to save the VC with all the bind values set while saving and clearing bind variables shouldn't affect the saved search, right?? Or I have understood it wrong?
    I am using JDeveloper 11.1.2.3.0
    Thanks

    Try
    like ? || '%'

  • Query Search Panel not displaying search items in 11g on Windows 7 x64

    I have defined a view object with two bind variables in a query criteria.
    when I drag the query criteria onto a page - I get the panel with the search box - but the message says "no search items have been added".
    I went back and ran through the steps with the SR Demo - same results.
    I have tried redoing the search, using the default "all query items", query with table, and always the same results.
    If I do a query form - I get everything - but i really need the "nice" query table to work.
    Anyone else having this problem - or know of a solution.
    I have redone the cue card step many times - I can put the base object (view) on the page and it works fine.
    Edited by: rogerappl on Jun 30, 2010 12:49 PM

    OK, this may seem foolish, how do I drag and drop the ExecuteWithParams - this will need to be in the Datacontrol - I presume - I am using 11gR3 (11.1.1.3).
    I cannot even find documentation on this.
    You are correct - I created the bind variables when I defined the where clause - so I suspect this may be the reason.
    I would have thought that this would be automated - since it is pretty useless without it. There were no hints of this in the demo either.

  • Class Cast exception when clicking Search Button in Query component

    Hi
    We have to implement the Query component in ADF programmatically.. We are using Toplink as the Model layer for ADF.
    We followed the Web User Interface Guide for ADF development, Chapter 12 (Using Query Components) for the same.
    We already have implemented the following classes:
    1) QueryModel
    2) QueryDescriptor
    3) AttributeDescriptor
    4) ConjuctionCriterion
    5) AttributeCriterion etc.
    We are able to see the Search panel in UI with selected fields in Basic as well as Advanced mode.
    When we click on Search button, we are getting Class Cast exception.
    The stacktrace of the exception is below:
    <LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase INVOKE_APPLICATION 5
    javax.el.ELException: java.lang.ClassCastException: view.QueryDescriptorImpl cannot be cast to oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding$QueryDescriptorImpl
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:1300)
         at oracle.adf.view.rich.component.UIXQuery.broadcast(UIXQuery.java:116)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:902)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:313)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:186)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: java.lang.ClassCastException: view.QueryDescriptorImpl cannot be cast to oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding$QueryDescriptorImpl
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding.processQuery(FacesCtrlSearchBinding.java:374)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         ... 44 more
    <RegistrationConfigurator> <handleError> ADF_FACES-60096:Server Exception during PPR, #1
    javax.el.ELException: java.lang.ClassCastException: view.QueryDescriptorImpl cannot be cast to oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding$QueryDescriptorImpl
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:1300)
         at oracle.adf.view.rich.component.UIXQuery.broadcast(UIXQuery.java:116)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:902)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:313)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:186)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: java.lang.ClassCastException: view.QueryDescriptorImpl cannot be cast to oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding$QueryDescriptorImpl
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding.processQuery(FacesCtrlSearchBinding.java:374)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         ... 44 more
    Any help will be highly appreciated.
    Thanks in advance.
    Anup

    Gary Tam wrote:
    I am working on a project that utilize Oracle Ultra Search that will crawl and tag documents in the database.
    The initial code that uses pure JDBC was working fine, but when we switch to get database connection from dataSource, we are getting classCast exception inside Oracle's ultra search. The problems is that the class we get from dataSource.getConnection() returns
    "weblogic.jdbc.wrapper.JTSConnection_oracle_jdbc_driver_T4CConnection". But Oracle UltraSearch is not expecting that.
    Is there anyway to unwrap the connection that we get from dataSource ? I tried casting to OracleConnection,
    assign the connection to "oracle.jdbc.driver.T4CConnection" without any success.
    Any help would be appricated.
    ThanksHi Gary. If the code you want to run is running inside WebLogic, such as in a JSP,
    then look for our documentation on our JDBC extension 'getVendorConnection()". It
    will get you a direct Oracle connection for their mis-declared UltraSearch
    classes (they declare they take java.sql.Connection, but they really demand a
    concrete thin driver connection. No other Oracle driver will be given a chance).
    Joe

  • ADF : af:query saved search issue

    hi
    Please consider this example application from Andrejus Baranovskis
    http://jdevsamples.googlecode.com/files/UserCustomizationsSession.zip
    (which he refers to from his blog post "User Customizations for Duration of Session in Oracle ADF 11g")
    I see some strange behaviour with a saved search in this scenario:
    (a1) open the UserCustomizationsSession.jws file in JDeveloper 11.1.1.1.0 and configure the "Hr" database connection in the Application Resources panel
    (a2) right-click the main.jspx page in the ViewController project and click Run
    (a3) on the "Index" page click the "Employees" button
    (a4) on the "Employees Form" page, without entering any search values, click the "Search" button, which causes (all) the rows to show in the table
    (a5) in the "Firstname" search field, enter "a" and click the "Search" button, which causes rows with "a" in their first name to show in the table
    (a6) click the "Save..." button
    (a7) in the "Create Saved Search" dialog, enter "my-a-search" in the "Name" field and keep the default values for the checkboxes ("Set as Default" checked, "Run Automatically" checked and "Save Results Layout" unchecked) and click "OK", which causes "my-a-search" to show up in the "Saved Search" dropbox
    (a8) click the "Close" button
    (a9) on the "Index" page click the "Employees" button, which causes the "Employees Form" page to show up with the results of "my-a-search"
    (a10) in the "Saved Search" dropbox, select "EmployeesViewCriteria" and click the "Search" button, which seems to cause the table to refresh but still showing what seems to be the result of "my-a-search"
    (a11) try to change the value of the "FirstName" search field or use the "Reset" button, each time the result of "my-a-search" shows up
    question
    (q1) Why don't I get all the rows in step (a10) instead of just "my-a-search"?
    many thanks
    Jan Vervecken

    Hi Jan,
    seems related to bug 8817108 - AF:QUERY DOES NOT WORK CORRECTLY WITH MUTIPLE VIEW CRITERIA
    I'm copying below an except of the SR with possible workarounds:
    The key point in the modified testcase is that we created a method in the
    Application Module that resets the View Criteria of the View Object:
        public void unapplyViewCriteria() {
            String[] allVC = getViewObj1().getAllViewCriteriaNames();
            for (String vc: allVC )  {
                System.out.println("Unapply View Criteria: " + vc);
                getViewObj1().removeApplyViewCriteriaName(vc);
        }This method was published as a client interface and added to the bindings of
    the Page definition (by a drag&drop from the DataControl palette):
        <methodAction id="unapplyViewCriteria" RequiresUpdateModel="true"
                      Action="invokeMethod" MethodName="unapplyViewCriteria"
                      IsViewObjectMethod="false" DataControl="AppModuleDataControl"
                      InstanceName="AppModuleDataControl.dataProvider"/>This created a button that we updated as the following:
            <af:commandButton
                              text="Go To Other Page AND Unapply View Criteria"
                              disabled="#{!bindings.unapplyViewCriteria.enabled}"
                              id="cb1"
                              actionListener="#{bindings.unapplyViewCriteria.execute}"
                              action="otherpage"/>This button will execute unapplyViewCriteria() and then navigate to the other page.
    That's a first solution, where we unset the View Criteria just when navigating.
    Another option is to unapply the ViewCriteria when the af:query has completed its query.
    This can be done by the method we exposed in the aforementioned Note.
    The method processQuery() in the backing bean is:
        public void processQuery(QueryEvent queryEvent) {
             * add your PreQuery code here
             * invoke the real processQuery
            invokeMethodExpression("#{bindings.NameStartsWithMQuery.processQuery}",
                                   Object.class, QueryEvent.class, queryEvent);
             * add your PostQuery code here
            // Workaround for Bug 8817108
            BindingContainer bindings = getBindings();
            OperationBinding operationBinding = bindings.getOperationBinding("unapplyViewCriteria");
            Object result = operationBinding.execute();
        }where we first execute the standard processQuery, and then unapply the View Criteria.
    If memory serves me well, customer opted for WA 2.
    Regards,
    Didier.

  • Query on the af:Query - Saved Search Functionality

    Hi all,
    Using Jdev 11. R2, and what I think is the latest UI shell.
    Looking to tap some knowledge and to validate whether I'm heading in the right direction....... I also suppose this post relates to a broader topic on user sessions and what I think is referred to as 'state saving'.
    Firstly, I have an AF:Query which I can, for the life of my tasakflow save a particular search.... I'm keen to use this functionality (especially the automatically execute option), so that each user can save their preferred search and upon form load, see their particular list, rather than a blank search form.
    The issue is that once I restart the task flow the saved search does not persist!!
    Now I'm guessing this relates to state saving, and that there may be a global or template setting? I can see a property on the template 'State Saving' and I have tried setting this to client - and nothing happens....
    To further expand my question..... is it also possible that as a user changes their pages (through collapsing splittter and re-arranging table columns) that we can also have these selections persist?
    I just can't seem to find enough resources on this, and I suspect I'm searching with the wrong keywords, as I'm not 100% certain of the correct terminology.
    Cheers,
    Simo

    Simo,
    I guess you have to look for MDS or Meta data service. MDS stores changes to the ui like table layout and query state for each user in a central store (db or file).
    To use MDS you must use ADF security as this gives MDS the user ID.
    I can't search for more info right now as I'm not in front of my pc. Check the doc for MDS and you find more info.
    Timo

  • What is a saved search query? And can I delete it?

    I was making some back up disk and created a Saved Search Query. Can the file that's on my desktop be trash? What exactly is this, and what is it's purpose.
    Greg

    Hi Gregory, and a warm welcome to the forums!
    It's an xml file with Aliases to a previous search criteria.
    Selecting "Find..." from the Finder's "File" menu (or typing another user-configurable keyboard shortcut, command-option-space by default) brings up an "advanced" Spotlight search window that includes a field for a search string (treated like the same string typed into the Spotlight menu bar drop-down search field) and any number of additional search conditions.
    Any search performed in this window can be saved as a "smart folder." This "folder" is actually nothing more than a plain file with a ".savedSearch" file name extension. The file contains an XML serialization of the Spotlight query.
    http://arstechnica.com/apple/reviews/2005/04/macosx-10-4.ars/9
    One way you can delete it by going to the Finder>File>Find, click on a Saved Search, click the little Minus icon...

Maybe you are looking for

  • Problem with installing Paint shop Pro photo X2 on with Vista

    Trying to install Paint shop photo x2 on my note book but at the end of the installation it freezes and there seems to be some problem with "registering"... Corel (supplier of paint shop) now advised me to change some drivers but the links I received

  • Can't set the time format of lockscreen BACK to 24H format

    Having switched from 24 to AM/PM 12 hour format to see what it looked like, upon switching it back to 24 hour it's fine on the Home screen but remains stubbornly 12 hours on the lockscreen. It's an iPhone 4 running IOS 5.0 Thanks

  • Profit center and GL number length

    Hi Dave, Ferry and all, Just like cost center I would like to know the digit lenght of profit center and GL account. Can you tell what Table to go or any other tcode to see the specific requirement my company has created for GL's or Profit center

  • Using Adobe 8.1.2 some PDF files won't print

    Since we've upgraded to the latest version of Reader, 8.1.2, some of the files won't print. For example, this morning I got two PDF files in the same email, they both opened in Reader, but only one of them prints--sending to a Canon ImageRunner 5570

  • Airport Use = Kernel Panic

    Hi there, Just last night I had my first kernel panic on my MacBook in a long time. After suffering several more, I discovered that my airport connection stops functioning shortly before the kernel panic. The only thing that I can think of that has c