cancel
Showing results for 
Search instead for 
Did you mean: 

Itemtype without possibility to create instances.

Former Member
0 Kudos

Hello,

I want to create ItemType which has only only 2 attributes: name and status (on/off) and user can change status of this variable in HMC. It is possible to do it in Hybris and in HMC and how ? When I look on types in HMC there is a possibility to create another instance but in my case I don't want to do this.

Thanks in advance for help.

Adam.

Accepted Solutions (0)

Answers (3)

Answers (3)

andyfletcher
Active Contributor
0 Kudos

You're probably looking for the singleton="true" attribute on the itemtype.

See OrderCancelConfig in basecommerce-items.xml or ConfigProxyItem in core-items.xml

Here's the docs from the xsd

Attribute : singleton

If 'true', type gets marked as singleton which will be evaluated by some modules like hmc or impex, with that allowing only one instance per system. Default is 'false'.

Former Member
0 Kudos

Thanks for the answer. Maybe I wasn't clear enough. I would like to create in hybris something like global variable which will be set by user in hmc. Ia there another way to do this then create a new type in items*.xml ?

Former Member
0 Kudos

I don't get the use case of this. But essentially you could try to retract all permissions on this type, including the administrator. I am not sure, though, if this is possible.