<?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>topic Re: alfresco custom type creation not working in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-custom-type-creation-not-working/m-p/106249#M30022</link>
    <description>&lt;P&gt;Thanks for replying.&lt;/P&gt;&lt;P&gt;I have used below url for creating Qname:&lt;/P&gt;&lt;P&gt;{&lt;A href="http://www.steepgraph.org/model/supplierportal/1.0}Part_Number" target="_blank" rel="noopener nofollow noreferrer"&gt;http://www.steepgraph.org/model/supplierportal/1.0}Part_Number &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;ans specified prefix as sp.&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Below is the sample code where I am trying to create folder of new type&lt;/P&gt;&lt;P&gt;QName custom_type = QName.createQName("{&lt;A href="http://www.steepgraph.org/model/supplierportal/1.0}Part_Number" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.steepgraph.org/model/supplierportal/1.0}Part_Number&lt;/A&gt;");&lt;BR /&gt;FileInfo folderInfo = serviceRegistry.getFileFolderService().create(parentFolderNodeRef, folderName, custom_type);&lt;/P&gt;</description>
    <pubDate>Tue, 31 Mar 2020 07:56:52 GMT</pubDate>
    <dc:creator>Isha</dc:creator>
    <dc:date>2020-03-31T07:56:52Z</dc:date>
    <item>
      <title>alfresco custom type creation not working</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-custom-type-creation-not-working/m-p/106247#M30020</link>
      <description>&lt;P&gt;We want to create custom type for FOLDER object don’t want to modify OOTB one) that we have done following steps through alfresco share UI:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Admin tools - &amp;gt; model-manager - &amp;gt; create model(supplier-portal) - &amp;gt;create custom-type (parent type for creating type is system-folder)&lt;/LI&gt;&lt;LI&gt;Create property&lt;/LI&gt;&lt;LI&gt;Clicking on type -&amp;gt; layout manager -&amp;gt; Apply Default layout -&amp;gt; save&lt;/LI&gt;&lt;LI&gt;Model &amp;nbsp;-Active&lt;/LI&gt;&lt;LI&gt;Exported xml for the same&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;U&gt;Approach 1:&lt;/U&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Copied supplier-portal.xml to my-alfresco-project -&amp;gt; module directory.&lt;/LI&gt;&lt;LI&gt;Added entry of same xml in bootstrap-context.xml.&lt;/LI&gt;&lt;/OL&gt;&lt;OL&gt;&lt;LI&gt;And trying to create new folder with new type by passing the namespace uri:&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Approach :2&lt;/U&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Clicked on the admintools -&amp;gt; data-dictionary - &amp;gt; models.&lt;/LI&gt;&lt;LI&gt;Imported models xml’s and activated the same.&lt;/LI&gt;&lt;LI&gt;Copied the xml files in workspace/alfresco directory and created new bootstarp-context.xml for the same.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Issue is : We are not able create the folder . Showing error below&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;02300016 Wrapped Exception (with status template): Type is not handled by this service: {}&lt;A href="http://www.steepgraph.org/model/supplierportal/1.0" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.steepgraph.org/model/supplierportal/1.0&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2020 12:09:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-custom-type-creation-not-working/m-p/106247#M30020</guid>
      <dc:creator>Isha</dc:creator>
      <dc:date>2020-03-30T12:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: alfresco custom type creation not working</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-custom-type-creation-not-working/m-p/106248#M30021</link>
      <description>&lt;P&gt;Maybe you are trying to create new type in approach 1 specifying the full uri? Sorry but you did not paste the url you called. I have always done that by specifying the prefix, try to add a prefix to your namespace in model.xml, and use it instead of full uri.&lt;/P&gt;&lt;P&gt;Also, in approach 1, i think you should deactivate the model you created from share UI.&lt;/P&gt;&lt;P&gt;Look at the logs at startup time too, to see whether there are errors on project startup.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 05:19:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-custom-type-creation-not-working/m-p/106248#M30021</guid>
      <dc:creator>narkuss</dc:creator>
      <dc:date>2020-03-31T05:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: alfresco custom type creation not working</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-custom-type-creation-not-working/m-p/106249#M30022</link>
      <description>&lt;P&gt;Thanks for replying.&lt;/P&gt;&lt;P&gt;I have used below url for creating Qname:&lt;/P&gt;&lt;P&gt;{&lt;A href="http://www.steepgraph.org/model/supplierportal/1.0}Part_Number" target="_blank" rel="noopener nofollow noreferrer"&gt;http://www.steepgraph.org/model/supplierportal/1.0}Part_Number &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;ans specified prefix as sp.&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Below is the sample code where I am trying to create folder of new type&lt;/P&gt;&lt;P&gt;QName custom_type = QName.createQName("{&lt;A href="http://www.steepgraph.org/model/supplierportal/1.0}Part_Number" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.steepgraph.org/model/supplierportal/1.0}Part_Number&lt;/A&gt;");&lt;BR /&gt;FileInfo folderInfo = serviceRegistry.getFileFolderService().create(parentFolderNodeRef, folderName, custom_type);&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 07:56:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-custom-type-creation-not-working/m-p/106249#M30022</guid>
      <dc:creator>Isha</dc:creator>
      <dc:date>2020-03-31T07:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: alfresco custom type creation not working</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-custom-type-creation-not-working/m-p/106250#M30023</link>
      <description>&lt;P&gt;Ok, you are trying to create nodes by java code. Try switching to nodeService instead of fileFolderService. We always create nodes this way.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 09:14:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-custom-type-creation-not-working/m-p/106250#M30023</guid>
      <dc:creator>narkuss</dc:creator>
      <dc:date>2020-03-31T09:14:04Z</dc:date>
    </item>
  </channel>
</rss>

