cancel
Showing results for 
Search instead for 
Did you mean: 

While searching for customers, I find the first customer getting hidden in cscockpit??

Former Member
0 Kudos

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??

Accepted Solutions (1)

Accepted Solutions (1)

former_member387866
Active Contributor
0 Kudos

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

Answers (3)

Answers (3)

former_member387866
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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 :).

former_member387866
Active Contributor
0 Kudos

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.

former_member387866
Active Contributor
0 Kudos

I can search for, and see, these hidden customers. But in the results there is this empty, hidden tbody.

Former Member
0 Kudos

Hi Luke,

Thanks a lot for the reply .

I found this same problem in my code also. Can you please tell me where are we setting the css for the tbody as hidden in OOB, so that i can change that functionality in my code.

Thanks for the reply in advance. :)

former_member387866
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Thanks a lot for the reply Luke :).

I need one more help Luke.

ZK provides us with constraint NO_EMPTY for textbox and intbox.

How can I bring this constraint for textbox rendered through xml in hybris.

Thanks for your reply in advance :).

former_member387866
Active Contributor
0 Kudos

Hi Td, You should probably ask that again to the [y]Experts. As it's not an area that I am versed in.

Regards,
Luke

Former Member
0 Kudos

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.

Former Member
0 Kudos

Unless we see your code it's not possible to tell where the bug is exactly. Is it also happening in OOTB hybris ?

former_member387866
Active Contributor
0 Kudos

I'm updating my 5.1 OOTB to check this.

Former Member
0 Kudos

Very possible can be a bug.