Wednesday, August 21, 2019

How to hide “Advance” button and “Saved Search” dropdown in query panel in UI layer

This blog we will see how to hide the “Advance” button and “Saved Search” dropdown in query panel. The below screen is the query panel 

                             

 For hiding the “Advance” button we need to set modeChangeVisible="false" and for hiding the “Saved Search” dropdown, we need to set saveQueryMode="hidden" in af:query component. The below af:query code is

<af:query id="qryId1" headerText="Search" disclosed="true"           
value="#{bindings.EmployeesVOCriteriaQuery.queryDescriptor}" 
model="#{bindings.EmployeesVOCriteriaQuery.queryModel}" 
queryListener="#{bindings.EmployeesVOCriteriaQuery.processQuery}" queryOperationListener="#{bindings.EmployeesVOCriteriaQuery.processQueryOperation}"  resultComponentId="::resId1" binding="#{backingBeanScope.backing_QueryPanel.qryId1}" styleClass="AFQueryHideAddFields" modeChangeVisible="false" saveQueryMode="hidden"/>

<af:query id="qryId1" headerText=" " disclosed="true"
                  value="#{bindings.PoRequisitionHeadersAllEOVOCriteriaQuery.queryDescriptor}"
                  model="#{bindings.PoRequisitionHeadersAllEOVOCriteriaQuery.queryModel}"
                  queryListener="#{bindings.PoRequisitionHeadersAllEOVOCriteriaQuery.processQuery}"
                  queryOperationListener="#{bindings.PoRequisitionHeadersAllEOVOCriteriaQuery.processQueryOperation}"

                  saveQueryMode="hidden" rows="3" maxColumns="2" modeChangeVisible="false"/>

Now refresh your page
                        
 Thanks...

No comments:

Post a Comment