<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: How to create Nested Component in smartedit . hybris 6.6 in CRM and CX Q&amp;A</title>
    <link>https://community.sap.com/t5/crm-and-cx-q-a/how-to-create-nested-component-in-smartedit-hybris-6-6/qaa-p/12008177#M372299</link>
    <description>&lt;P&gt;Hello Omkar, &lt;/P&gt;
&lt;P&gt;I added an "edit" to the response above. Hope that helps. Also, left some links that might be useful. &lt;/P&gt;
&lt;P&gt;Best regards. 
&lt;/P&gt;</description>
    <pubDate>Thu, 08 Mar 2018 16:40:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2018-03-08T16:40:18Z</dc:date>
    <item>
      <title>How to create Nested Component in smartedit . hybris 6.6</title>
      <link>https://community.sap.com/t5/crm-and-cx-q-a/how-to-create-nested-component-in-smartedit-hybris-6-6/qaq-p/12008174</link>
      <description>&lt;P&gt;Hi All,
           I want to create Nested Component in smartedit but i created something regarding nested component.I am able to add ,delete many component,but i am not able to edit componenet. I have searched in wiki help document but they are not provide procedure to how to create nested component in smart edit. here is my datamodel for nested component :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;     &amp;lt;collectiontype code="ComponentLists" elementtype="SimpleCMSComponent" generate="true" autocreate="true" type="list"&amp;gt;&amp;lt;/collectiontype&amp;gt;
 &amp;lt;/collectiontypes&amp;gt;
 
     &amp;lt;itemtype code="MasterComponent"
               autocreate="true"
               generate="true"
               extends="SimpleCMSComponent"
               jaloclass="de.medienwerft.mwminerals.jalo.MasterComponent"&amp;gt;
         &amp;lt;attributes&amp;gt;

             &amp;lt;attribute qualifier="headline" type="localized:java.lang.String"&amp;gt;
                 &amp;lt;persistence type="property"/&amp;gt;
             &amp;lt;/attribute&amp;gt;

             &amp;lt;attribute qualifier="currentComponent" type="ComponentLists"&amp;gt;
                 &amp;lt;persistence type="property"&amp;gt;&amp;lt;/persistence&amp;gt;
             &amp;lt;/attribute&amp;gt;
         &amp;lt;/attributes&amp;gt;
     &amp;lt;/itemtype&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Please anyone can suggest to me how to do it. below is screen shot which i created nested componenet.![alt text][1]&lt;/P&gt;
&lt;P&gt;Thanks in advance. Your help would be much appreciation.
  [1]: /storage/temp/10482-screen-shot-2018-03-05-at-155232.png
&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 15:55:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/crm-and-cx-q-a/how-to-create-nested-component-in-smartedit-hybris-6-6/qaq-p/12008174</guid>
      <dc:creator>former_member617229</dc:creator>
      <dc:date>2018-03-05T15:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Nested Component in smartedit . hybris 6.6</title>
      <link>https://community.sap.com/t5/crm-and-cx-q-a/how-to-create-nested-component-in-smartedit-hybris-6-6/qaa-p/12008175#M372297</link>
      <description>&lt;P&gt;Hello Omkar, &lt;/P&gt;
&lt;P&gt;Nested components in SmartEdit are supported through the CmsItemDropdown widget. Here's how that widget works: &lt;/P&gt;
 &lt;UL&gt;
  &lt;LI&gt;&lt;P&gt; To edit a component you can just click on one of the selected ones, and that should open a "nested" generic editor. There you can edit that component. 
&lt;/P&gt;

  &lt;/LI&gt;
 &lt;LI&gt;&lt;P&gt; To create a new component you can search for it via its name. If the component is not found, the widget will show a "Create" button. When you click it a generic editor is displayed to create the new "nested" component. I attached some images to show you how this works. &lt;/P&gt;

 &lt;/LI&gt;

&lt;/UL&gt;
&lt;P&gt;Having said that, from the screenshot that you uploaded, I'm starting to think that maybe your attribute was not matched to the CmsItemDropdown. If your widget is not working as I described before, can you confirm that the cmsStructureType returned by the structure API for your 'components' attribute is CmsItemDropdown (you can check the REST call to the types API in your browser when you open the generic editor, e.g., &lt;A href="https://127"&gt;https://127&lt;/A&gt;.0.0.1:9002/cmswebservices/v1/types?code=MiniCartComponent&amp;amp;mode=DEFAULT)? It should be similar to this: &lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt; ..., {
          "cmsStructureType" : "CMSItemDropdown",
          "collection" : false,
          "editable" : true,
          "i18nKey" : "type.minicartcomponent.lightboxbannercomponent.name",
          "idAttribute" : "uuid",
          "labelAttributes" : [ "name", "uid" ],
          "localized" : false,
          "paged" : true,
          "params" : {
             "typeCode" : "SimpleBannerComponent"
          },
          "qualifier" : "lightboxBannerComponent",
          "required" : false,
          "subTypes" : {
             "SimpleBannerComponent" : "type.simplebannercomponent.name"
          }
 }...,

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Another suggestion is for you to compare your component with the MiniCartComponent; there the Lightbox Banner component is nested, so it can give you an idea of how things work. Finally, this functionality was introduced in version 6.6. From the title, I think that's the version you have, but it's always better to double check. &lt;/P&gt;
&lt;P&gt;Hope this helps. Otherwise, let us know. &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Edit:&lt;/STRONG&gt; 
You don't need to create the CmsItemDropdown widget. The generic editor should create it automatically for you. To do so, it queries the CMS Structure API; for any attribute with "cmsStructureType" of type "CMSItemDropdown" then the generic editor shows the widget that provides nested components functionality. By default, the structure API does so for any attribute that derives from CmsItem. What I'd like to confirm is whether the structure API is matching your attribute to type "CMSItemDropdown". &lt;/P&gt;
&lt;P&gt;Here's a couple of links that might help understand how structure API fits with the generic editor: 
- &lt;A href="https://help.hybris.com/6.6.0/hcd/6df3821e400945c58e95233ae1a062b3.html"&gt;https://help.hybris.com/6.6.0/hcd/6df3821e400945c58e95233ae1a062b3.html&lt;/A&gt;
- &lt;A href="https://help.hybris.com/6.6.0/hcd/11d8bed2d2ff4ba6a20c710e0206c412.html"&gt;https://help.hybris.com/6.6.0/hcd/11d8bed2d2ff4ba6a20c710e0206c412.html&lt;/A&gt;
&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 19:39:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/crm-and-cx-q-a/how-to-create-nested-component-in-smartedit-hybris-6-6/qaa-p/12008175#M372297</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-03-06T19:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Nested Component in smartedit . hybris 6.6</title>
      <link>https://community.sap.com/t5/crm-and-cx-q-a/how-to-create-nested-component-in-smartedit-hybris-6-6/qaa-p/12008176#M372298</link>
      <description>&lt;P&gt;Thanks Alejandro for your quick response.i will check and i will let you know that  if works or not.
One things how to create CmsItemDropdown widget in smartedit? can you suggest to me. 
Thanks in advance&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 08:39:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/crm-and-cx-q-a/how-to-create-nested-component-in-smartedit-hybris-6-6/qaa-p/12008176#M372298</guid>
      <dc:creator>former_member617229</dc:creator>
      <dc:date>2018-03-07T08:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Nested Component in smartedit . hybris 6.6</title>
      <link>https://community.sap.com/t5/crm-and-cx-q-a/how-to-create-nested-component-in-smartedit-hybris-6-6/qaa-p/12008177#M372299</link>
      <description>&lt;P&gt;Hello Omkar, &lt;/P&gt;
&lt;P&gt;I added an "edit" to the response above. Hope that helps. Also, left some links that might be useful. &lt;/P&gt;
&lt;P&gt;Best regards. 
&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 16:40:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/crm-and-cx-q-a/how-to-create-nested-component-in-smartedit-hybris-6-6/qaa-p/12008177#M372299</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-03-08T16:40:18Z</dc:date>
    </item>
  </channel>
</rss>

