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

Two or More Base Configurations for the Same Type in Backoffice

former_member348752
Participant
0 Kudos
547

Is it possible to have two or more base configurations for the same type that are applied in the same Backoffice perspective without different principal settings?

Example:

For a certain part of the Backoffice, we want a base configuration for this:

 <context merge-by="type" parent="GenericItem" type="AbstractRule" component="base" module="ruleenginebackoffice">
     <y:base xmlns:y="http://www.hybris.com/cockpit/config/hybris">
         <y:labels>
             <y:label> ( name ?: '' ) + ' ['+ code +']'</y:label>
             </y:labels>
         </y:base>
 </context>

For a different part of Backoffice (the same perspective and same principal), we are looking for a base configuration as follows:

 <context merge-by="type" parent="GenericItem" type="AbstractRule" component="base" module="ruleenginebackoffice">
     <y:base xmlns:y="http://www.hybris.com/cockpit/config/hybris">
         <y:labels>
             <y:label>'['+ code +']'</y:label>
             </y:labels>
         </y:base>
 </context>

Note: This question is similar to https://answers.sap.com/questions/12759380/can-we-have-multiple-base-configuration-for-single.html , but I'm not there was an answer there.

View Entire Topic
former_member625836
Active Contributor
0 Kudos

Hi ,

It all depends on what is supposed to use which one. To achieve what you want, you would have to define those two configurations for two different components (i.e. one for base and other for base-simplified). Then first widget would have to load a configuration for base component and second one for base-simplified.

As you can see it all depends on what is supposed to digest those configurations.

All best, Jacek