Skip to Content
Former Member
Jul 02, 2018 at 04:34 PM

Filtering Itemtype's Enum Returns and Getting Itemtype's Certain Attribute


I have an itemtype called InoLocation,`" xsi:noNamespaceSchemaLocation="items.xsd">

     <enumtype code="InoLocationType" >
         <value code="COUNTRY"></value>
         <value code="CITY"></value>
         <value code="COUNTY"></value>

     <itemtype generate="true"
         <deployment table="ino_location" typecode="11115"/>


             <attribute qualifier="code" type="java.lang.String">
                 <description>City's Plate Code</description>
                 <modifiers initial="true"/>
                 <persistence type="property"/>

             <attribute qualifier="name" type="java.lang.String">
                 <description>Location Name</description>
                 <modifiers initial="true"/>
                 <persistence type="property"/>

             <attribute qualifier="parent" type="InoLocation">
                 <description>Selected location's parent location</description>
                 <modifiers read="true" write="true" search="true"/>
                 <persistence type="property"/>

             <attribute qualifier="type" type="InoLocationType">
                 <description>Location Type</description>
                 <modifiers initial="true"/>
                 <persistence type="property"/>




In items.xml file, i extended Address itemtype and added an attribute called 'city' , its itemtype is InoLocation.

 <attribute qualifier="cities" type="InoLocation">
                         <persistence type="property" />
                         <modifiers read="true" write="true"/>
                         <description>It holds city information</description>

I am showing this attribute on backoffice with its wizard. Here is a quick look : ,

city attribute returns all the enum types: country, city, county. I want to return only CITY enum type, also the return values are showing as models, i want to only show its name attribute values.

How should i achieve this?