Skip to Content

backoffice listview: sequence of columns

I can add columns to an existing list by merging the context of a type. But unfortunately the new columns will be placed at the right side of the list.

How could I insert a column of re-define the sequence of the columns?

Thanks a lot, Heiko

Add a comment
10|10000 characters needed characters exceeded

Related questions

5 Answers

  • Best Answer
    Posted on Dec 12, 2017 at 08:16 AM

    Hi,

    the list-columns are positioned. That mean that you can use the attribute position to decide on the order.

    Cheers, Wojtek

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 12, 2017 at 10:31 AM

    Hi Wojtek

    It works fine for list in backoffice. But unfortunately in new product-cockpit, the position does not have any effect :-(

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 13, 2017 at 08:06 AM

    Hi Heiko,

    I think I know the problem. There is a bean:

         <alias alias="cockpitConfigurationService" name="dataIntegrationCockpitConfigurationService"/>
         <bean id="dataIntegrationCockpitConfigurationService" parent="defaultCockpitConfigurationService">
     
      <!-- code here -->
            <property name="adapters">
                 <map merge="true">
                     <!-- code here -->
                     <entry>
                         <key>
                             <map>
                                 <entry key="component" value="listview"/>
                             </map>
                         </key>
                         <ref bean="listViewConfigAdapter"/>
                     </entry>
                   </map>
            </property>
            <!-- code -->
     </bean>
    
    

    The bean: listViewConfigAdapter applies the sort order. The adapters are only invoked for the defined component(s) ( in this case the context component set to listview will be sorted but the same config with any other component name, for exampl pcmlistview will not be covered).

    In order to make it work you will have to register the missing component names with appropriate adapters. Examples can be found in cockpit-data-integration-spring.xml.

    On our end I will raise a bug (to be fixed with 6.7 the earliest). Please let me know if this works for you.

    Cheers, Wojtek

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 13, 2017 at 12:31 PM

    in which file I have to add it?

    When I put it into -backoffice-spring.xml, there comes an error:

    ERROR [hybrisHTTP3] [DefaultCockpitConfigurationService] Could not load cockpit configuration root element; creating new one INFO | jvm 1 | main | 2017/12/13 12:27:50.701 | com.hybris.cockpitng.core.config.CockpitConfigurationException: Unexpected EOF in prolog

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 27, 2018 at 02:08 PM

    Hi Wojciech

    Sorry for the delay. I overwrite the bean within xxx-backoffice-spring.xml of a custom backoffice-extension.

    • Server starts

    • Login into backoffice fails with Failed to assign [label.. "NoSuchBeanDefinitionException"

    Is it the wrong context?

    Thanks, Heiko

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.