on 11-04-2014 10:57 AM
Hi,
I am currently working in hybris 5.1 commerce suite and i am stuck up with a small problem . When i trying searching for customers in CustomerSearchWidget , a customer entry gets hidden in the blank space above(please refer to the screenshot attached).
I tried looking into the code and css, and i found out that the field is hidden due to visibility hidden in css as an element style. I tried reaching out for the code which sets the visibility but unfortunately i was not able to find out.
As per my observation, Whenever the customer search results entry exceeds 9 counts, i find a customer entry getting hidden.
Any suggestions on how this problem can be solved??
Hello (again) T,
This is a problem with this is that Lazy Loading is enabled for this widget.
The solution it to Override the defaultCsCustomerSearchWidgetRenderer
in the \ext-channel\cscockpit\resources\cscockpit\cscockpit-spring-widgets.xml
file.
<!-- Turn off lazy-loading -->
<alias alias="csCustomerSearchWidgetRenderer" name="noLazyLoadingCsCustomerSearchWidgetRenderer"/>
<bean id="noLazyLoadingCsCustomerSearchWidgetRenderer" parent="defaultCsCustomerSearchWidgetRenderer" >
<property name="lazyLoadingEnabled" value="false"/>
</bean>
<!--alias alias="csCustomerSearchWidgetRenderer" name="defaultCsCustomerSearchWidgetRenderer"/> -->
<bean id="defaultCsCustomerSearchWidgetRenderer" parent="abstractWidgetRenderer" class="de.hybris.platform.cscockpit.widgets.renderers.impl.CustomerSearchWidgetRenderer">
<property name="listConfigurationCode" value="customerBrowseList"/>
<property name="listConfigurationType" value="Customer"/>
<property name="itemAppender">
<bean class="de.hybris.platform.cscockpit.widgets.controllers.dispatcher.impl.PopupCloseAppender">
<property name="popupWidgetHelper" ref="popupWidgetHelper"/>
<property name="itemAppender">
<bean class="de.hybris.platform.cscockpit.widgets.controllers.dispatcher.impl.CustomerAppender" parent="csBaseAppender"/>
</property>
</bean>
</property>
</bean>
Regards,
Luke
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello T,
I hope I understand you correctly, I've previously posted a workaround for an incident similar to this.
Check out: How to adjust number of tickets showin in ticket pool widget? Although you may need to override a different SearchController than csTicketPoolSearchController
.
If your issue is solved by the above workaround, this is a known bug in the CS Cockpit.
I hope this is helpful,
Luke
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Luke,
Thanks a lot for the reply :).
I have already changed the pageable.pagesize to 10. but its not working properly.
As per my observations , its the 10th customer entry in a page that gets hidden in the white space(As shown in the screenshot above).
I tried with more than 30 customers in the cscockpit and i found out that in each page, the 10th customer gets hidden in the white space.
I hope this will help you in giving me a good solution.
Thanks in advance :).
So I tried this on 5.1 OOTB system. I set the three pageSize
variables from the cscockpit-spring-widgets.xml
to 30.
I was getting 7 pages of 8 results. I'm getting 2 pages of 8 results with white space at the top of the list. Checked the Page Source to discover that there was results in a tbody
that were hidden in the CSS.
So I unchecked the hidden and seen the results.
This is an issue on later versions too, so I'll raise an Incident on the CSCockpit project. But the fix will not get lifted back to the already released versions of hybris.
So for the time being, you'll need to leave this at pageSize=8. But there may be a possibility to raise an incident on BCP, there are some very good support engineers, who are very knowledgeable about cockpits, who may assist you.
Hi Saurabh,
Is it a bug in hybris or in my code? I found the same issue in while searching for tickets in cscokpit in OOB hybris Any work around or fix that can be done for this problem? The client needs this to be fixed at the earliest. Your inputs are greatly appreciated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Very possible can be a bug.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.