cancel
Showing results for 
Search instead for 
Did you mean: 

CockpitUiConfiguration in cscockpit

Former Member
0 Kudos

Hi wise guys

Is it at all possible to overwrite the cockpit-configurations in cscockpit by convention?

For instance, the address_orderdetailsdeliveryaddress_cockpitgroup_ui_config - i can see that in OOB the configuration is impexed:

INSERT_UPDATE CockpitUIConfigurationMedia;code[unique=true];mime;realfilename;@media[translator=de.hybris.platform.impex.jalo.media.MediaDataTranslator][forceWrite=true] ;address_orderdetailsdeliveryaddress_cockpitgroup_ui_config;text/xml; Address_OrderDetailsAddress_CockpitGroup.xml; jar:de.hybris.platform.cscockpit.jalo.CscockpitManager&/cscockpit/import/config/Address_OrderDetailsAddress_CockpitGroup.xml

INSERT_UPDATE CockpitUIComponentConfiguration;code[unique=true];factoryBean;objectTemplateCode[unique=true];principal(uid)[unique=true];media(code); ;orderDetailsDeliveryAddress;listViewConfigurationFactory;Address;cockpitgroup;address_orderdetailsdeliveryaddress_cockpitgroup_ui_config;

However, the contextId doesn't play well with the naming convention, as i get the following error if i name the file "orderDetailsDeliveryAddress_Address.xml":

ERROR [main] [Initialization] de.hybris.platform.cockpit.systemsetup.CockpitImportConfigException: Invalid contextID (orderDetailsDeliveryAddress) within configuration file name: ../resources/dsgcscockpit-config/orderDetailsDeliveryAddress_Address.xml

Which i wouldn't expect to work either, but that is how the naming convention works, as far as i understand 😉

Is there some kind of special naming convention rules for cscockpit, or do i need to use impex as it's done in OOB?

Btw - i'm running 4.7 😕

Kind Regards

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Rasmus,

There is a naming convention. Take a look at this tutorial.