Skip to Content
1
Former Member
Jan 27, 2015 at 03:37 PM

How to set the value of a qualifier dynamically in config.xml

157 Views

Hi Team,

I have a requirement to set the value of "id" i.e catalogItemID dynamically at the time of opening popup for creating catalog. This id I am generating from a service and I want to set this value to "catalogItemID".

Below is the *config.xml entry for creating catalog. When the create item popup will open by that time the id should be set to : qualifier="catalogItemID".

     <wz:flow xmlns:wz="http://www.hybris.com/cockpitng/config/wizard-config" id="CatalogItem" title="Create new Catalog Item">
         <wz:prepare id="productPrepare">
             <wz:initialize property="newProduct" type="ctx.TYPE_CODE"/>
         </wz:prepare>

             <wz:content id="step1.content">
                         <wz:property-list root="newProduct">
                            <wz:property qualifier="catalogItemID" type="java.lang.String"/>
                     <wz:property qualifier="shortDesc" type="java.lang.String"  />
                     <wz:property qualifier="longDesc"  type="java.lang.String" />
                     <wz:property qualifier="catalogItemType" />
                 </wz:property-list>
             </wz:content>
             <wz:navigation id="step1.navigation">
                 <wz:cancel/>
                 <wz:done>
                     <wz:save property="newProduct"/>
                 </wz:done>
             </wz:navigation>
         </wz:step>


Please suggest me to address this requirement.

Thanks, Kesari