Saturday, 23 November 2013

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"/>

Now refresh your page
                        
 Thanks...

2 comments: