У меня есть элемент с именем InoLocation, у него есть тип enumLocationType.
Этот enumtype содержит 3 значения: COUNTRY, CITY, COUNTY.
Есть имплексы, которые импортируют города и округа к этому типу товара.
В items.xml я создал атрибут с именем 'city', его типом является InoLocation.
По умолчанию, «города» возвращает все типы перечислений.
Я хочу отфильтровать эти перечисления, просто укажите тип CITY на backoffice.
Возможно ли это?
<enumtypes>
<enumtype code="InoLocationType" >
<value code="COUNTRY"></value>
<value code="CITY"></value>
<value code="COUNTY"></value>
</enumtype>
</enumtypes>
<itemtypes>
<itemtype generate="true"
code="InoLocation"
jaloclass="com.inomera.hybris.custom.location.jalo.InoLocation"
extends="GenericItem"
autocreate="true">
<deployment table="ino_location" typecode="11115"/>
<attributes>
<attribute qualifier="code" type="java.lang.String">
<description>City's Plate Code</description>
<modifiers initial="true"/>
<persistence type="property"/>
</attribute>
<attribute qualifier="name" type="java.lang.String">
<description>Location Name</description>
<modifiers initial="true"/>
<persistence type="property"/>
</attribute>
<attribute qualifier="parent" type="InoLocation">
<description>Selected location's parent location</description>
<modifiers read="true" write="true" search="true"/>
<persistence type="property"/>
</attribute>
<attribute qualifier="type" type="InoLocationType">
<description>Location Type</description>
<modifiers initial="true"/>
<persistence type="property"/>
</attribute>
</attributes>
</itemtype>
</itemtypes>
Метка города ,
Открыт ярлык города
Еще одна вещь,
Эти экраны из бэк-офиса, они возвращаются как модели, я хочу, чтобы они возвращались с атрибутом name.