Hi,
How can we restrict the number of orders loading in 'Search for Orders' browser area in CsCockpit ? Can we use the 'PagedFlexibleSearchService' for this ? If yes, How to get the page numbers from front end ?
Hi Murali,
You can change the number of results being returned to the CsCockpit UI, by changing the pageSize
variable in the \ext-channel\cscockpit\resources\cscockpit\cscockpit-spring-widgets.xml
. You will need to find the correct SearchController
bean to update this variable on. From my checks, it appears to be csBaseDefaultSearchController
.
<!-- Search controllers -->
<alias alias="csBaseDefaultSearchController" name="defaultCsBaseDefaultSearchController" />
<bean id="defaultCsBaseDefaultSearchController" abstract="true" scope="session" parent="csBaseWidgetController" class="de.hybris.platform.cscockpit.widgets.controllers.search.impl.DefaultSearchCommandController">
<property name="pageable.pageSize" value="8"/> <!-- This is the change -->
<property name="baseSiteService" ref="baseSiteService"/>
</bean>
If it's changed to a large number (>10), the lazy loading has a habbit of ruining the displaying of the results, the solution to this is in this question; "While searching for customers, I find the first customer getting hidden in cscockpit??".
I hope this is what you are looking for,
Luke
Add a comment