on 2017 Jun 21 5:43 PM
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.
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.