on 12-11-2017 11:28 AM
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
Hi,
the list-columns are positioned. That mean that you can use the attribute position to decide on the order.
Cheers, Wojtek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Wojtek
It works fine for list in backoffice. But unfortunately in new product-cockpit, the position does not have any effect :-(
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.