cancel
Showing results for 
Search instead for 
Did you mean: 

How to set the value of a property marked as custom-properties using ImpEx?

former_member620692
Active Contributor
0 Kudos

How to set the value of a property marked as custom-properties using ImpEx e.g. let's say I want to set the value of hiddenForUI to false for the itemtype, Media.

 <attribute qualifier="internalURL" type="java.lang.String">
     <custom-properties>
         <property name="hiddenForUI">
             <value>Boolean.TRUE</value>
         </property>
     </custom-properties>
     <modifiers read="true" write="true" search="false" optional="true"/>
     <persistence type="property">
         <columntype>
             <value>HYBRIS.LONG_STRING</value>
         </columntype>
     </persistence>
 </attribute>

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member625836
Active Contributor
0 Kudos

Hi ,

I would try something like this:

 INSERT_UPDATE AttributeDescriptor; qualifier[unique = true] ; enclosingType(code); hiddenForUI ;
 ; internalURL ; Media ; true ;

Did try this one, but you should get the idea.

Cheers, Jacek

former_member620692
Active Contributor
0 Kudos

Thanks, . I tried it but it is throwing following error:

 INSERT_UPDATE AttributeDescriptor;qualifier[unique = true];enclosingType(code);hiddenForUI
 ,,,,More than one item of type AttributeDescriptor found for unique qualifiers {qualifier1=internalURL};internalURL;Media;true;

...and now, I am not able to think the solution to handle this...it's Friday 🙂