cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Product Workbench - Adding scroll bar to the list view

0 Likes
783

Hello,

List view is cut off. Is it possible to add a horizontal scroll bar to show the whole content?

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Likes

Hi, thanks for your answer! It didn't solve my issue.

former_member632827
Participant
0 Likes

Hey,

I did not find the edit area configurations of the product#productReferences attribute in the attached code. We can get scroll bars when using editorArea:panel and colspan&rowspan.

May be useful, you can check the europe1Prices attribute configuration of the product. Also we have another attribute width in <list-view:column/> tag.

<editorArea:panel colspan="2" name="panel.europe1Prices" rowspan="2">
                        <editorArea:attribute qualifier="europe1Prices" description="hmc.text.product.pg"
                            editor="com.hybris.cockpitng.editor.extendedmultireferenceeditor">
                            <editorArea:editor-parameter>
                                <editorArea:name>listConfigContext</editorArea:name>
                                <editorArea:value>europe1PricesListView</editorArea:value>
                            </editorArea:editor-parameter>
                            <editorArea:editor-parameter>
                                <editorArea:name>configurableFlowConfigCtx</editorArea:name>
                                <editorArea:value>create-wizard-no-save</editorArea:value>
                            </editorArea:editor-parameter>
                        </editorArea:attribute>
</editorArea:panel><br>
0 Likes

My bad. This is my editor area configuration :

<editorArea:tab name="gpim.pcmbackoffice.product.editorarea.tab.productreferences" position="9" displayEssentialSectionIfPresent="false">
   <editorArea:section name="gpim.pcmbackoffice.product.editorarea.tab.productreferences" columns="1">
      <editorArea:attribute qualifier="productReferences" editor="gpim.bo.editors.gpiminheritanceextendedmultireferenceeditor">
         <editorArea:editor-parameter>
            <editorArea:name>listConfigContext</editorArea:name>
            <editorArea:value>listview</editorArea:value>
         </editorArea:editor-parameter>
      </editorArea:attribute>
      <editorArea:attribute qualifier="reverseProductReferences" editor="com.hybris.cockpitng.editor.extendedmultireferenceeditor">
         <editorArea:editor-parameter>
            <editorArea:name>listConfigContext</editorArea:name>
            <editorArea:value>listview</editorArea:value>
         </editorArea:editor-parameter>
      </editorArea:attribute>
   </editorArea:section>           
</editorArea:tab>

0 Likes

I've edited my configuration as you suggested and the horizontal scroll bar is now visible. Is there a way to increase the height and remove the vertical scroll bar or at least show the whole content without scrolling up and down?

<editorArea:tab name="gpim.pcmbackoffice.product.editorarea.tab.productreferences" position="9" displayEssentialSectionIfPresent="false">
   <editorArea:section name="gpim.pcmbackoffice.product.editorarea.tab.productreferences">
      <editorArea:panel name="" colspan="2">
         <editorArea:attribute qualifier="productReferences" editor="gpim.bo.editors.gpiminheritanceextendedmultireferenceeditor">
            <editorArea:editor-parameter>
               <editorArea:name>listConfigContext</editorArea:name>
               <editorArea:value>listview</editorArea:value>
            </editorArea:editor-parameter>
         </editorArea:attribute>
         <editorArea:attribute qualifier="reverseProductReferences" editor="com.hybris.cockpitng.editor.extendedmultireferenceeditor">
            <editorArea:editor-parameter>
               <editorArea:name>listConfigContext</editorArea:name>
               <editorArea:value>listview</editorArea:value>
            </editorArea:editor-parameter>
         </editorArea:attribute>
      </editorArea:panel>
   </editorArea:section>
</editorArea:tab>

former_member632827
Participant
0 Likes

Hey, You can try like below. Accept the answer, if it solves the problem.Then it will be helpful to others.

<editorArea:section name="gpim.pcmbackoffice.product.editorarea.tab.productreferences">
      <editorArea:panel name="" rowspan="2" colspan="2">
         <editorArea:attribute qualifier="productReferences" editor="gpim.bo.editors.gpiminheritanceextendedmultireferenceeditor">
            <editorArea:editor-parameter>
               <editorArea:name>listConfigContext</editorArea:name>
               <editorArea:value>listview</editorArea:value>
            </editorArea:editor-parameter>
         </editorArea:attribute>
      </editorArea:panel>
     <editorArea:panel name="" rowspan="2" colspan="2">
               <editorArea:attribute qualifier="reverseProductReferences" editor="com.hybris.cockpitng.editor.extendedmultireferenceeditor">
               <editorArea:editor-parameter>
               <editorArea:name>listConfigContext</editorArea:name>
               <editorArea:value>listview</editorArea:value>
            </editorArea:editor-parameter>
         </editorArea:attribute>
       </editorArea:panel> 
   </editorArea:section>