cancel
Showing results for 
Search instead for 
Did you mean: 

backoffice listview: sequence of columns

former_member640268
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member632755
Active Contributor
0 Kudos

Hi,

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

Cheers, Wojtek

Answers (4)

Answers (4)

former_member640268
Participant
0 Kudos

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

former_member640268
Participant
0 Kudos

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

former_member632755
Active Contributor
0 Kudos

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

former_member640268
Participant
0 Kudos

Hi Wojtek

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