Af:query & af:quickQuery

Any pointers for examples using af:query & af:quickQuery components, without using ADF BC ?
Thanks
Suneesh

Hi,
you can download the ADF Component Demo: http://www.oracle.com/technetwork/testcontent/adf-faces-rc-demo-083799.html
It has all the sources in it. Note that it implements the component functionality not using ADF. Currently only ADF BC supports view criteria, which is used to declaratively build the binding. Other DC are supposed to follow shortly
Frank
Edited by: Frank Nimphius on Aug 26, 2010 1:04 PM

Similar Messages

  • Af:Quick Query to af:query

    Hi!!
    I am using jdeveloper 11.1.1.5
    I had created a my viewCriteria GlHdViewCriteria in my VO
    I had dragged and dropped it as a af:queryPanel. I had also dragged and dropped a af:quickQuery Panel to my jspx page and enabled the advance button such that if the user clicks the button it navigates from af:quickQuery Panel to af:query panel
    Hers is my Jspx code
    <af:query id="qryId1" headerText="Search" disclosed="true"
                          value="#{bindings.GlJrnlHdViewCriteriaQuery.queryDescriptor}"
                          model="#{bindings.GlJrnlHdViewCriteriaQuery.queryModel}"
                          queryListener="#{bindings.GlJrnlHdViewCriteriaQuery.processQuery}"
                          queryOperationListener="#{bindings.GlJrnlHdViewCriteriaQuery.processQueryOperation}"
                          binding="#{backingBeanScope.backing_QuickQuery.qryId1}"
                          rendered="#{backingBeanScope.backing_QuickQuery.queryVisible}">
                          <f:facet name="toolbar">
                    <af:commandButton text="Quick"
                                      binding="#{backingBeanScope.backing_QuickQuery.cb5}"
                                      id="cb5"
                                      actionListener="#{backingBeanScope.backing_QuickQuery.advanced2Quick}"/>
                                      </f:facet>
                                      </af:query>
      <af:quickQuery label="Search"
            value="#{bindings.GlJrnlHdViewCriteriaQuery.queryDescriptor}"
                          model="#{bindings.GlJrnlHdViewCriteriaQuery.queryModel}"
                          queryListener="#{bindings.GlJrnlHdViewCriteriaQuery.processQuery}"
                          queryOperationListener="#{bindings.GlJrnlHdViewCriteriaQuery.processQueryOperation}"
                           binding="#{backingBeanScope.backing_QuickQuery.qq1}"
                           id="qq1"
                           rendered="#{backingBeanScope.backing_QuickQuery.quickQueryVisible}">
              <f:facet name="end">
                <af:commandLink text="Advanced" visible="true"
                                binding="#{backingBeanScope.backing_QuickQuery.cl1}"
                                id="cl1"
                                actionListener="#{backingBeanScope.backing_QuickQuery.quick2Advanced}"/>
              </f:facet>
            </af:quickQuery>This was the code i had used in my ManagedBean
         public boolean isQuickQueryVisible()
             return _quickQueryVisible;
           public boolean isQueryVisible()
             return !_quickQueryVisible;
           public String getVisibleComponent()
             if(_quickQueryVisible)
               return "quick";
             else
               return "advanced";
         private boolean _quickQueryVisible = true;
        public void quick2Advanced(javax.faces.event.ActionEvent actionEvent) {
              _quickQueryVisible = !_quickQueryVisible;
        public void advanced2Quick(javax.faces.event.ActionEvent actionEvent) {
              _quickQueryVisible = !_quickQueryVisible;
        }My Scenario is if i perform search operation in af:quickQuery it was successfull in tis operation
    But once i navigate from af:quickQuery to af:query it doent performs the search operation., It was simply idle!!
    I had posted tis in my previous Thread I had lost that thread so i am reposting!!!! !!!
    I apologise for reposting the thread

    Could any body pls hlp me as i am struggling over with this problem

  • A few ADF BC state passivation/activation problems

    Our development team has encountered and researched a few ADF BC passivation/activation related bugs that are very annoying. Some of them have been fixed in the new JDeveloper 11gR1 (11.1.1.1.0) but other ones are still active in the last production release. As we consider some of these bugs as very important we decided to report them in this forum:
    *1) New (modified) values of read-only SQL-derived or transient attributes are not activated if they have been modified in ViewObject's cache and the corresponding changes have not been posted to DB yet*
    The attribute values are included into the passivated state but the activation process does not try to activate a modified value if the method <tt>ViewRowImpl.isAttributeUpdateable(int)</tt> returns <tt>false</tt> for the corresponding row attribute. There are many business cases when some ViewObject attributes have to be modified despite the fact they are read-only (or conditionally read-only depending on the values of another attributes).
    *2) Transient values (values of SQL-derived or transient attributes) that have been modified in ViewObject's cache to <tt>null</tt> are not cleared on state activation*
    This is true even for updateable attributes. The problem exists because the passivation process does not write into the passivated state anything about attributes having <tt>null</tt> values. As a consequence the activation process does not try to modify values of the corresponding attributes during the activation and they keep the value fetched from the ViewObject's query.
    *3) State activation process does not restore ViewCriteria row names*
    As a result the query components (<af:query>, <af:quickQuery> and table filters) do not work correctly after state passivation/activation because they do not clear eventual previously applied filter condition as they do that by searching ViewCriteria rows having particular names. In this way the new condition is appended instead of overriding eventual previous one.

    Hi Maxa,
    I am the thread owner. Sorry for the delay, but my forum account was destroyed during the transition to the new Oracle's SSO, so I had to create a new account and I have missed your posting.
    The table filter problem was resolved in the new JDev 11.1.1.2. The bug number is "Bug 8650239 - FILTERING CRITERIA ARE APPENDED WHEN AM POOLING IS DISABLED".
    If you have to use previous JDev 11g version then the you have to patch the class oracle.jbo.ViewCriteria in the archives adfm.jar and oracle.adf.model_11.1.1.ear as follows (look at the bold lines):
    {font:Courier}
    public void passivate(XMLDocument doc, XMLElement node) {
    ViewCriteriaRow r = (ViewCriteriaRow)row;
    for(int j = 0; j < r.getAttributeCount(); j++) {
    if(rowNode == null) {
    rowNode = doc.createElement("Row");
    ((XMLElement)rowNode).setAttribute("uc", r.isUpperColumns() ? "1" : "0");
    ((XMLElement)rowNode).setAttribute("cj", (new StringBuilder()).append("").append(r.getConjunction()).toString());
    *((XMLElement)rowNode).setAttribute("n", r.getName() == null ? "" : r.getName());*
    public void activate(XMLElement node) {
    for(Node rowNode = node.getFirstChild(); rowNode != null;) {
    ViewCriteriaRow vcr = createViewCriteriaRow();
    s = ((XMLElement)rowNode).getAttribute("uc");
    if(s != null && s.length() > 0)
    vcr.setUpperColumns(Integer.valueOf(s).intValue() == 1);
    s = ((XMLElement)rowNode).getAttribute("cj");
    if(s != null && s.length() > 0)
    vcr.setConjunction(Integer.valueOf(s).intValue());
    String name = ((XMLElement)rowNode).getAttribute("n");
    if(name != null && name.length() > 0)
    vcr.setName(name);
    {font}
    You have to decompile the class, add the bold lines, compile the class and repack it into the specified archives. I am affraid it is not quite legal to patch Oracle's classes but I do not have other solution.

  • Npe when using popup inside adf table column

    hi i have a popup witch is inside adf column table but when i click the button i get this npe error
    <af:column id="c7" headerText="Action">
                  <af:commandButton text="Add" id="cb2">
                    <af:showPopupBehavior popupId="p1" triggerType="click"/>
                  </af:commandButton>
                  <af:panelGroupLayout id="pgl2" inlineStyle="width:1042px;"
                                       layout="horizontal" valign="middle"
                                       halign="right">
                    <af:popup id="p1" contentDelivery="lazyUncached">
                      <af:dialog id="d1" type="cancel">
                        <af:region value="#{bindings.usrtaskflowdefinition1.regionModel}"
                                   id="r1"/>
                      </af:dialog>
                    </af:popup>
                    <af:commandButton text="Cancel" id="cb1" rendered="false"/>
                    <af:commandButton text="Remove" id="cb3" visible="false"/>
                  </af:panelGroupLayout>
                </af:column>
    am geting this NPE ERROR
    <FacesCtrlSearchBinding> <release> ADFv: release():: Release all resources.
    <ADFLogger> <end> ADF web request
    <XmlErrorHandler> <handleError> ADF_FACES-60096:Server Exception during PPR, #1
    javax.el.ELException: java.lang.NullPointerException
        at javax.el.BeanELResolver.getValue(BeanELResolver.java:266)
        at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:173)
        at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:200)
        at com.sun.el.parser.AstValue.getValue(Unknown Source)
        at com.sun.el.parser.AstEqual.getValue(Unknown Source)
        at com.sun.el.parser.AstOr.getValue(Unknown Source)
        at com.sun.el.ValueExpressionImpl.getValue(Unknown Source)
        at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:68)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.getBooleanProperty(UIXComponentBase.java:1204)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.isRendered(UIXComponentBase.java:423)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:810)
        at org.apache.myfaces.trinidad.component.UIXEditableValue.processValidators(UIXEditableValue.java:263)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1022)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1007)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:814)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1022)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1007)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:814)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1022)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1007)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:814)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1022)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1007)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:814)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1022)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1007)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:814)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1022)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1007)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:814)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1022)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1007)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:814)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:1022)
        at oracle.adf.view.rich.component.fragment.UIXRegion.validateChildrenImpl(UIXRegion.java:634)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:1007)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:814)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl$ProcessValidationsCallback.invokeContextCallback(LifecycleImpl.java:1422)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnNamingContainerComponent(UIXComponentBase.java:1358)
        at oracle.adf.view.rich.component.fragment.UIXRegion.invokeOnComponent(UIXRegion.java:555)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1424)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1424)
        at oracle.adf.view.rich.component.rich.RichDocument.invokeOnComponent(RichDocument.java:168)
        at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
        at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:678)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:407)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)
        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.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:179)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
        at java.security.AccessController.doPrivileged(Native Method)
        at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
        at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
        at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
        at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
        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:139)
        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.NullPointerException
        at oracle.adf.model.binding.DCControlBinding.reportException(DCControlBinding.java:201)
        at oracle.jbo.uicli.binding.JUCtrlValueBinding.findAttributeDef(JUCtrlValueBinding.java:632)
        at oracle.jbo.uicli.binding.JUCtrlValueBinding.findAttributeDef(JUCtrlValueBinding.java:597)
        at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttribute(JUCtrlValueBinding.java:1341)
        at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding$AdfAttributeCriterion.getOperator(FacesCtrlSearchBinding.java:2240)
        at sun.reflect.GeneratedMethodAccessor357.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at javax.el.BeanELResolver.getValue(BeanELResolver.java:261)
        ... 87 more
    <QueryCollection> <finalize> [4342] ##### QueryCollection.finl no RowFilter
    <QueryCollection> <finalize> [4343] ##### QueryCollection.finl oracle.jbo.Key[Surname 0 0 ]
    <QueryCollection> <finalize> [4344] ##### QueryCollection.finl oracle.jbo.Key[Firstname 0 0 ]
    <ControllerState> <finalizeRequest> ADFc: Request number [9] for session [14gycvxp1h_] has been finalized.
    <QueryCollection> <finalize> [4345] ##### QueryCollection.finl oracle.jbo.Key[Username 0 0 ]
    <RootViewPortContextImpl> <unlockViewPortRequestLock> ADFc: Attempting to release RootViewPort request lock on 14gycvxp1h_0
    <QueryCollection> <finalize> [4346] ##### QueryCollection.finl oracle.jbo.Key[Organisationname 0 0 ]
    <QueryCollection> <finalize> [4347] ##### QueryCollection.finl oracle.jbo.Key[Surname 0 0 ]
    <RootViewPortContextImpl> <unlockViewPortRequestLock> ADFc: Successfully released RootViewPort request lock on 14gycvxp1h_0
    <QueryCollection> <finalize> [4348] ##### QueryCollection.finl oracle.jbo.Key[Firstname 0 0 ]
    <QueryCollection> <finalize> [4349] ##### QueryCollection.finl oracle.jbo.Key[Username 0 0 ]
    <Auditor> <isEnabled> IAU:Event Enabled : false, Event Type : CheckPermission, Event Status : true, Properties : null
    <QueryCollection> <finalize> [4350] ##### QueryCollection.finl oracle.jbo.Key[Organisationname 0 0 ]
    <QueryCollection> <finalize> [4351] ##### QueryCollection.finl no RowFilter
    <QueryCollection> <finalize> [4352] ##### QueryCollection.finl no RowFilter
    <Auditor> <isEnabled> IAU:Event Enabled : false, Event Type : CheckPermission, Event Status : true, Properties : null
    <QueryCollection> <finalize> [4353] ##### QueryCollection.finl no RowFilter
    <QueryCollection> <finalize> [4354] ##### QueryCollection.finl no RowFilter
    <QueryCollection> <finalize> [4355] ##### QueryCollection.finl no RowFilter
    <QueryCollection> <finalize> [4356] ##### QueryCollection.finl no RowFilter
    <QueryCollection> <finalize> [4357] ##### QueryCollection.finl no RowFilter
    <QueryCollection> <finalize> [4358] ##### QueryCollection.finl no RowFilter
    <QueryCollection> <finalize> [4359] ##### QueryCollection.finl no RowFilter
    <QueryCollection> <finalize> [4360] ##### QueryCollection.finl no RowFilter
    <QueryCollection> <finalize> [4361] ##### QueryCollection.finl no RowFilter
    <QueryCollection> <finalize> [4362] ##### QueryCollection.finl no RowFilter
    <QueryCollection> <finalize> [4363] ##### QueryCollection.finl no RowFilter
    <QueryCollection> <finalize> [4364] ##### QueryCollection.finl no RowFilter
    <AbstractExecutionContext> <getECForJDBC> adding new ECForJDBC null to set of listeners for this context
    <WatchingDocumentChangeNotifier> <run> decide if checkUsingListeners should run. loopCnt: 0 changeInterval: 60000 originalChangeInterval: 60000 forceCheckForUpdate: false notifier instance: oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifier@ca7192
    <WatchingDocumentChangeNotifier> <checkUsingListeners> BEGIN checkUsingListeners for notifier instance: oracle.as.config.notification.filesystem.WatchingDocumentChangeNotifier@ca7192
    <WatchingDocumentChangeNotifier> <checkUsingListeners> notifier processing file: C:\Users\10017134\App

    Caused by: java.lang.NullPointerException
        at oracle.adf.model.binding.DCControlBinding.reportException(DCControlBinding.java:201)
        at oracle.jbo.uicli.binding.JUCtrlValueBinding.findAttributeDef(JUCtrlValueBinding.java:632)
        at oracle.jbo.uicli.binding.JUCtrlValueBinding.findAttributeDef(JUCtrlValueBinding.java:597)
        at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttribute(JUCtrlValueBinding.java:1341)
        at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding$AdfAttributeCriterion.getOperator(FacesCtrlSearchBinding.java:2240)
    It seems that problem is caused by af:query or quickquery component(or underlying view object or view criteria).
    Maybe you can drop BTF as static region directly to your page and see if this will run correctly?
    YES i have try stll does not work
    So then this is not related with "npe when using popup inside adf table column"  
    Dario

  • Does "quickQuery" have "resultComponentID" like "query"

    Hi,
    According to document, af:quickQuery component is a simplified version of af:query component. the result of query component can by set with resultComponent attribute. but seems quickQuery component does not have such attribute. what should I do to specify an output component for quickQuery component .
    Thanks

    Aacc,
    Documentation says
    (without ADF Business Components)
    To add a quickQuery component:
    1.
    In the Component Palette, from the Common Components panel, drag a Quick Query and drop it onto the page.
    2.
    Expand the Common section of the Property Inspector and set the following attributes:
    id: Enter a unique ID for the component.
    layout: Specify if you want the component to be displayed horizontally with the criterion and value next to each other, as shown in Figure 12-2, or vertically as shown in Figure 12-5.
    Figure 12-5 A quickQuery Component Set to Display Vertically
    quick query vertical mode
    model: Enter an EL expression that evaluates to the class that implements the QueryModel class, as created in Section 12.2, "Implementing the Model for Your Query."
    value: Enter an EL expression that evaluates to the class that implements the QueryDescriptor class, as created in Section 12.2, "Implementing the Model for Your Query."
    3.
    Expand the Behavior section and set the following attributes:
    conjunctionReadOnly: Specify whether or not the user should be able to set the Match Any or Match All radio buttons. When set to false, the user can set the conjunction. When set to true, the radio buttons will not be rendered.
    queryListener: Enter an EL expression that evaluates to the QueryListener handler you created in Section 12.2, "Implementing the Model for Your Query."
    4.
    Drag and drop a table (or other component that will display the search results) onto the page. Set the results component's PartialTriggers with the ID of the quickQuery component. The value of this component should resolve to a CollectionModel object that contains the filtered results.
    5.
    If you want users to be able to click the Advanced link to turn the quickQuery component into a full query component, add a command component to the End facet of the quickQuery component, and implement logic that will hide the quickQuery component and display the query component.
    (with ADF Business Components)
    To create a quick query search form with a results table:
    1.
    From the Data Controls panel, select the data collection and expand the Named Criteria node to display a list of named view criteria.
    2.
    Drag the All Queriable Attributes item and drop it onto the page or onto the Structure window.
    3.
    From the context menu, choose Create > Quick Query > ADF Quick Query Panel with Table or Create > Quick Query > ADF Quick Query Panel with Tree Table, as shown in Figure 27-19.
    4.
    In the Edit Table Columns dialog, you can rearrange any column and select table options. If you choose the filtering option, the table will be a filtered table.
    (or, alternatively)
    To create a quick query search form and add a results component in a separate step:
    1.
    From the Data Controls panel, select the data collection and expand the Named Criteria node to display a list of named view criteria.
    2.
    Drag the All Queriable Attributes item and drop it onto the page or onto the Structure window.
    3.
    From the context menu, choose Create > Quick Query > ADF Quick Query Panel.
    4.
    If you do not already have a results component, then drop the data collection associated with the view criteria as a component.
    5.
    In the Property Inspector for the quick query panel, copy the value of the Id field.
    6.
    In the Property Inspector for the results component (for example, a table), paste or enter the value into the PartialTriggers field.

  • How to query automatically in quickQuery component

    Hi,
    I have a quickQuery component and a table in the page. On entering the page initially, I would like to query automatically to show all data in the table. Currently, no data is shown in the table until doing a search in the quickQuery component. I know that for query component (not quickQuery) we can check the "Query Automatically" box in the UI Hints of the Named View Criteria. However, for quickQuery, it is based on All Query Attributes. So where can we set to query automatically?
    Please advise.
    Thanks.
    -Mina

    Here is the code snipplet:
    <af:panelHeader text="Workforce Relations" id="ph2">
    <af:quickQuery label="Search" searchDesc="Search" id="qryId2"
    value="#{bindings.ImplicitViewCriteriaQuery.quickQueryDescriptor}"
    model="#{bindings.ImplicitViewCriteriaQuery.queryModel}"
    queryListener="#{bindings.ImplicitViewCriteriaQuery.processQuery}">
    <f:facet name="end">
    <af:commandLink text="Advanced" rendered="false" id="cl1"/>
    </f:facet>
    </af:quickQuery>
    <af:table value="#{bindings.ItasResourceRelationsVO1.collectionModel}"
    var="row"
    rows="#{bindings.ItasResourceRelationsVO1.rangeSize}"
    emptyText="#{bindings.ItasResourceRelationsVO1.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.ItasResourceRelationsVO1.rangeSize}"
    rowBandingInterval="0"
    filterModel="#{bindings.ItasResourceRelationsVOCriteriaQuery.queryDescriptor}"
    queryListener="#{bindings.ItasResourceRelationsVOCriteriaQuery.processQuery}"
    filterVisible="true" varStatus="vs"
    selectedRowKeys="#{bindings.ItasResourceRelationsVO1.collectionModel.selectedRow}"
    selectionListener="#{bindings.ItasResourceRelationsVO1.collectionModel.makeCurrent}"
    rowSelection="single" id="resId1" width="100%"
    columnStretching="column:resId1c1"
    editingMode="clickToEdit"
    partialTriggers="::cb1 ::cb2 ::cb3 ::cb4 ::cb5 :::qryId2">
    </af:table>
    </af:panelHeader>
    If I removed the <af:quickQuery> component in the page, then the table renders with data on the first load of the page. But if <af:quickQuery> is added, then no data is rendered in the table until a search is performed. So how can the page still renders with data on the first load of the page when <af:quickQuery> exists?
    Any advice is appreciated.
    Thanks.
    -Mina

  • Oracle ADF - Refresh quick query for a table in the pop up.

    Hi,
    I am using Oracle jDev 11.1.1.4.0
    In my application I have a Find button in jspx.
    Onclick of Find button, a popup opens.
    When I search for a record by name in QuickQuery, suppose - I entered name as jon.
    It gives me the correct result.
    Now when I close the pop up and again click on Find button, that previous search remains as it is in the pop up
    and also the previous criteria in quick query search region as "jon".
    I have changed the refresh property of iterator(of table in popup) in pageDef
    But still not working...
    How to refresh that search region for every subsequent Find click.
    Appreciate your help.
    Thanks,
    Madhav

    do u changed refresh > ifneeded or always.
    user.
    r u luking for partially page rendering.
    by using ppr. we can refresh.
    if so.
    http://www.adftips.com/2010/10/adf-ui-refreshing-page-or-region.html
    http://biemond.blogspot.com/2007/11/how-to-refresh-region-in-jdeveloper-11g.html
    Re: ADF Region Interaction
    Edited by: Erp on Sep 27, 2011 4:37 AM
    Edited by: Erp on Sep 27, 2011 4:42 AM

  • af:query marks the DataControl as modified

    Hi guys,
    I am developing an ADF Rich Faces application with JDeveloper 11g. I am using <af:query> search forms. When I enter a value in some criteria field in a search form, then the corresponding DataControl gets marked as modified (DataControl.isTransactionModified() starts returning <true>). I suspect that this is because each setAttribute() method invocation through a value data binding marks the DataControl as modified. Quick query forms (<af:quickQuery>) do not mark the DataControl as modified.
    I do not want the DataControl to be marked as modified because my application checks for pending changes this way (using DataControl.isTransactionModified() method). Note that the current status (enabled/disabled) of standard Commit and Rollback action bindings is wired to this method too.
    Note, also, that the method ApplicationModule.getTransaction().isDirty() is not appropriate for checking for pending changes because when I create and insert a new empty row in some ViewObject then the Transaction object becomes "dirty" automatically without any real data modifications.
    Does anybody know if I could either avoid or workaround this effect of <af:query> forms?
    Thanks in advance.

    We have this problem to. it must be a bug.
    Also we had other problems when we have <af:query> in transaction forms like validations fire when 'Advanced search' button is pressed
    So we splited query forms from transaction forms or put <af:query> in popup
    we still use ApplicationModule.getTransaction().isDirty() since we want to know changes also for new rows (since you cant distinguish if data are added to new row or not)

  • New issue in af:query

    Hi!!
    I am using jdeveloper 11.1.1.5
    I had dragged and dropped EmployeesVO as a af:table
    I had have an af:quickQuery and af:query so that if the user clicks the af:quickQuery Advance button it navigates to the af:query button
    The Problem persist is
    If i performing serach operation by entering the value and pressing search in af:quickquery it doent perform its operation if i refersh the page manually by pressing F5 it works!!
    This problem only occurs in af:quickquery in af:query it works fine!!
    Could anyone pls help me!!

    Now i had dragged and dropped my AllQuerryable Attributes in my jspx page as adf:QuickQuery Panel
    The search operation had not performed in this also!!!

  • af:Query label alignment

    hi all,
    please suggest me how to align labels of <af:query> component to left edge of the column without using css ,
    <af:query id="qryId1" headerText="Search" disclosed="true" partialTriggers="::cb10"
    value="#{bindings.myvo.queryDescriptor}" fieldWidth="50%" labelWidth="50%"
    model="#{bindings.myVOCriteriaQuery2.queryModel}"
    queryListener="#{pageFlowScope.mybb.queryOperation}" displayMode="simple"
    resultComponentId="::tblSrch" binding="#{pageFlowScope.intUser.qrySrch}"
    saveQueryMode="hidden" modeChangeVisible="false"
    type="flow" rows="2" maxColumns="3" />

    Hi Frank,
    thanks for ur reply
    my jdeveloper version is 11.1.1.4.0 ,
    af:query uses a panelFormLayout component internally, which by default aligns the labels to the right at the start of the component. the same i had seen in below url demo
    http://jdevadf.oracle.com/adf-richclient-demo/faces/components/skinningKeys/quickQuery.jspx?_afrRedirect=679290447253982
    if i check checkboxes i am able to see all the appplied style selectors right side
    i tried to achieve my requirement by creating separate css style sheet by following below steps
    first i created MyCustomSkin.css under WebContent/Skins/MyCustomSkin.css
    af|query.CustomQueryPanel::criterion-label {
    color: #000000;
    font-size: 11px;
    font-weight: bold;
    text-align : left;
    then
    i configured the same css in trinidad-skins.xml
    <?xml version="1.0" encoding="windows-1252" ?>
    <skins xmlns="http://myfaces.apache.org/trinidad/skin">
    <skin>
    <id>MyCustomSkin.desktop</id>
    <family>MyCustomSkin</family>
    <extends>fusion.desktop</extends>
    <render-kit-id>org.apache.myfaces.trinidad.desktop</render-kit-id>
    <style-sheet-name>skins/MyCustomSkin.css</style-sheet-name>
    </skin>
    </skins>
    i confiured the same in trinidad-config.xml
    <?xml version="1.0" encoding="windows-1252"?>
    <trinidad-config xmlns="http://myfaces.apache.org/trinidad/config">
    <debug-output>false</debug-output>
    <skin-family>MyCustomSkin</skin-family>
    </trinidad-config>
    in UIfragment.jsff
    inside <af:query comonent specified StyleClass="CustomQueryPanel" />
    still i didn't get the desired ouput i.e., left alignment of the labels
    please suggest me some solution

  • Using quick query component

    hi,
    I am using quick query component. There is any way to show in the combo box of the quick query component only some and not all fields, because I do not need to display all.
    Please..

    Vane,
    If you're using ADF Business Components - I believe you can do this by creating a named view criteria on your View Object and then dragging-and-dropping the named view criteria on to the page as an af:quickQuery - haven't tested this personally, though.
    A really quick test - no more time today - seems to show that named view criteria can create an af:query, but I didn't see af:quickQuery as an option...
    Time to read the Fusion Developer's Guide, I guess.
    John

  • Quick query component without dropdown

    Hi,
    I am using quickquery component on ADF Tree table .. I want to display quick query without the dropdown in its layout..I want to display only Label, InputText and search button.
    how can I achieve this?
    Thanks,
    Swathi

    Hi,
    Check
    http://blog.applegrew.com/2012/02/adf-super-code-snippets/

  • Af:quickQuery search criteria options

    I am using an ADF quick query component for searching. It gives me an inputText to enter search criteria, and it appears it searches with a "starts with" on the search criteria. Is there a way I can change this to a "contains" instead?
    I know the ADF query component gives this option for the user to change it, but I want to use the quick query if I can somehow tell the component to use "contains" for the inputText search criteria.
    Is this possible, and if so how?
    I am developing in JDev 11.1.2.3.
    Thanks!

    Have a custom queryListener method for the <af:quickQuery> to intercept the search action and perform your logic based on the use-case.
    Sample:
    http://jobinesh.blogspot.com/2011/03/retrieving-viewcriteria-from-custom.html
    Thanks,
    Navaneetha

  • Error while running a query-Input for variable 'Posting Period is invalid

    Hi All,
    NOTE: This error is only cropping up when I input 12 in the posting period variable selection. If I put in any other value from 1-11 I am not getting any errors. Any ideas why this might be happening?
    I am getting the following error when I try and run a query - "Input for variable 'Posting Period (Single entry, mandatory)' is invalid" - On further clicking on this error the message displayed is as follows -
    Diagnosis
    Variable Posting Period (Single Value Entry, Mandatory) is used as a lower limit (X) and an upper limit () in an interval selection. This limit has the value #.
    System Response
    Procedure
    Enter a different value for variable Posting Period (Single Value Entry, Mandatory). If the value of the other limit is determined by another variable, you can change its value also.
    Procedure for System Administration

    OK.
    Well, if the variable is not used in any interval selection, then I would say "something happened to it".
    I would make a copy of the query and run it to check if I get the same problem with period 12.
       -> If not, something is wrong in the original query (you can proceed as below, if changes to original are permitted).
    If so, then try removing the variable completely from the query and hardcode restriction to 12.
       -> If problem still persists, I would have to do some thinking.
    If problem is gone, then add the variable again. Check.
       -> If problem is back, then the variable "is sick". Only quick thing to do, is to build an identical variable and use that one.
    If problem also happens with the new variable, then it's time to share this experience with someone else and consider raising an OSS.
    Good luck!
    Jacob
    P.S: what fisc year variant are you using?
    Edited by: Jacob Jansen on Jan 25, 2010 8:36 PM

  • Logical database in adhoc query

    Hello All,
    Can anyone tell me what is the logical database in adhoc query?

    Hi
    When you create a query , you have to select an infoset. Infoset can be considered as a source from which data is populated in the Query Fields.
    Infosets are created from Transaction SQ02.
    There can be four methods through which an Infoset can become a source of data:
    1.  Table join ( By joining two or more tables from Data dictionary)
         example: Joining tables PA0001 and PA0006 on Pernr to get a one resultant dataset
    2. Direct read of Basis Table ( Like PA0001 as a source for data in Infoset )
    3. Logical Database ( A Pre-written Program by SAP that extract data from clusters, tables taking care of authorizations and validity periods)
    Example : Logical database PNP, PNPCE (Concurrent Employement),PCH ( LDB for Personnel Development Data)
    Custom Logical DBs can be created in T_Code SE-36.
    4. Data Retrieval by a Program ( Custom code written by ABAP developers which will collect and process data) . This program has a corresponding Structure in data dictionary and the fields of this structure will be used in query)
    Reward Points, if helpful.
    Regards
    Waseem Imran

Maybe you are looking for