cancel
Showing results for 
Search instead for 
Did you mean: 

How to load hmc.xml changes through impex file

Former Member
0 Kudos

Hi Experts, Do we have any hints, solutions to load hmc.xml changes through impex file.

I tried by following https://wiki.hybris.com/display/release5/Customizing+the+hMC+Configuration+According+to+User+Groups#...

But when i run the below impex , i cant get any changes in System > hMC Configuration

Please help me if anybody have solution

Impex :

INSERT_UPDATE SolrIndexedType;identifier[unique=true];hmcXML; ;maplinProductType;"

 <editor>
     <exclude>
             <exclusion attribute=""solrIndexedProperties"" />
     </exclude>
     <tab name=""tab.configuration.indexedtype"">
         <section name=""sec.configuration.indexedtype"">
                     <listlayout mode=""replace"">
                         <attribute name=""identifier""/>
                         <attribute name=""type""/>
                         <attribute name=""indexName""/>
                         
                         <table>
                             <tr>
                                 <td width=""16"" />
                                 <td width=""200"">
                                     <shortcut name=""findindexedproperties"" type=""SolrIndexedProperty"" usage=""finder""
                                         autoperform=""true"">
                                         <preset targetattribute=""solrIndexedType"" />
                                     </shortcut>
                                 </td>
                             </tr>
                         </table>
                         
                         
                         <attribute name=""solrIndexerQueries"">
                             <referencecollectioneditor resortable=""false"" create=""true"" remove=""true"" autosave=""false"" editable=""true"">
                                 <itemlayout>
                                     <attribute name=""type""/>
                                     <attribute name=""query"" width=""300""/>
                                 </itemlayout>
                             </referencecollectioneditor>
                         </attribute>
                         <attribute name=""identityProvider""/>
                         <attribute name=""modelLoader""/>
                         <attribute name=""valuesProvider""/>
                         <attribute name=""solrResultConverter""/>
                     </listlayout>
                 </section>
             </tab>
 </editor
   
   

";"

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

You have misunderstood the implementation here. System->hMC Configuration loads and displays the global hmc.xml file which is compiled when running ant all. It contains the overall configuration of the hMC extension.

This cannot be loaded via ImpEx.

More info can be found here:

https://wiki.hybris.com/display/release5/Configuring+the+hMC+Interface https://wiki.hybris.com/display/release5/Storing+the+hMC+Configuration+in+File+System+or+Database

The loading of hmc config in the link you posted is specific to user groups. This is applied on top of the global hmc.xml for when the user of that group is logged in. Typically it is used to configure the left hand side tree.

Former Member
0 Kudos

Use the below impex header to load the xml.

INSERT_UPDATE UserGroup ;uid[unique=true] ;groups(uid) ;locname[lang=en]; hmcXML;