<?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: new dialog for new space type in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/new-dialog-for-new-space-type/m-p/51645#M30202</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks for the hint!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i think there is something missing in your post, when u say :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;In the finishImpl method, call the super class version and then using the this.createdNode member variable set the other properties i.e. "custom:fieldOne" and "custom:fieldTwo". This would look something like:&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Feb 2007 15:58:31 GMT</pubDate>
    <dc:creator>alpha</dc:creator>
    <dc:date>2007-02-06T15:58:31Z</dc:date>
    <item>
      <title>new dialog for new space type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/new-dialog-for-new-space-type/m-p/51641#M30198</link>
      <description>i want to add new fields to the space creation dialoglet's say 2 fields : fieldOne, fieldTwo (string fields).I have created a new action "Create my space" that launches a dialog&amp;lt;action id="create_myspace"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;permissions&amp;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;lt;permission allow="true"&amp;gt;CreateChildren&amp;amp;l</description>
      <pubDate>Wed, 20 Dec 2006 18:58:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/new-dialog-for-new-space-type/m-p/51641#M30198</guid>
      <dc:creator>alpha</dc:creator>
      <dc:date>2006-12-20T18:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: new dialog for new space type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/new-dialog-for-new-space-type/m-p/51642#M30199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are saying that the custom dialog is working ok - but you can't see the resulting custom properties in the Details screen? This is probably because you need a little additional config to add your custom properties to that screen, see:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Displaying_Custom_Metadata" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Displaying_Custom_Metadata&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 21:30:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/new-dialog-for-new-space-type/m-p/51642#M30199</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2006-12-21T21:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: new dialog for new space type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/new-dialog-for-new-space-type/m-p/51643#M30200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks for your help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Are saying that the custom dialog is working ok - but you can't see the resulting custom properties in the Details screen?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;in fact i don't know if it's really working, but i don't have any errors, neither can i display the custom fields…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;actually, i have read that wiki page, but it didn't help me much this time…because even if i create a new content type (for my new space type) i don't know how to use it within my dialog (i want to try dialog framework, rather than wizard framework).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I just want to have an action "Create MySpace" like "Create Space" in the browse create menu, that launches a dialog like CreateSpaceDialog with more fields to fill.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have setup the action menu,&amp;nbsp; the jsp form file, and the CreateMySpaceDialog bean, i wonder if i have to create a custom model that mapps with my new fields? and if yes, how do i do to make sure that the created space is in the same type of my new content type (MySpace and not a standard space)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do i have to used the wizard framework, and not the dialog framework to do that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Dec 2006 17:39:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/new-dialog-for-new-space-type/m-p/51643#M30200</guid>
      <dc:creator>alpha</dc:creator>
      <dc:date>2006-12-22T17:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: new dialog for new space type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/new-dialog-for-new-space-type/m-p/51644#M30201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, you'll need to create a new type in a model and define the extra properties you want, say for this example it's called "custom:myspace" and the properties are "custom:fieldOne" and "custom:fieldTwo".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You'll need to extend the CreateSpaceDialog class and override the init and finishImpl methods.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the init method set the "this.spaceType" member variable to be the QName of the custom i.e. "custom:myspace".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the finishImpl method, call the super class version and then using the this.createdNode member variable set the other properties i.e. "custom:fieldOne" and "custom:fieldTwo". This would look something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You'll then need to add some config to show these new properties in the property sheet by adding the following to web-client-config-custom.xml:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;config evaluator="node-type" condition="custom:myspace"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;property-sheet&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;show-property name="name"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;show-property name="title"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;show-property name="custom:fieldOne" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;show-property name="custom:fieldOne" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/property-sheet&amp;gt;&lt;BR /&gt;&amp;lt;/config&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2007 21:31:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/new-dialog-for-new-space-type/m-p/51644#M30201</guid>
      <dc:creator>gavinc</dc:creator>
      <dc:date>2007-01-09T21:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: new dialog for new space type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/new-dialog-for-new-space-type/m-p/51645#M30202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks for the hint!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i think there is something missing in your post, when u say :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;In the finishImpl method, call the super class version and then using the this.createdNode member variable set the other properties i.e. "custom:fieldOne" and "custom:fieldTwo". This would look something like:&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2007 15:58:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/new-dialog-for-new-space-type/m-p/51645#M30202</guid>
      <dc:creator>alpha</dc:creator>
      <dc:date>2007-02-06T15:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: new dialog for new space type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/new-dialog-for-new-space-type/m-p/51646#M30203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, you're quite right, the missing code would look something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;protected String finishImpl(FacesContext context, String outcome) throws Exception&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; super.finishImpl(context, outcome);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; this.nodeService.setProperty(this.createdNode, &amp;lt;QName for custom:fieldOne&amp;gt;, value);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; this.nodeService.setProperty(this.createdNode, &amp;lt;QName for custom:fieldTwo&amp;gt;, value);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; return outcome;&lt;BR /&gt;}&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 11:16:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/new-dialog-for-new-space-type/m-p/51646#M30203</guid>
      <dc:creator>gavinc</dc:creator>
      <dc:date>2007-02-07T11:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: new dialog for new space type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/new-dialog-for-new-space-type/m-p/51647#M30204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks, it works fine!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I had first tried this code :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;super.finishImpl(context,outcome);&lt;BR /&gt;&lt;BR /&gt;Map&amp;lt;QName, Serializable&amp;gt; props = new HashMap&amp;lt;QName, Serializable&amp;gt;(3);&lt;BR /&gt;props.put(&amp;lt;QName for custom:fieldOne&amp;gt;, value);&lt;BR /&gt;props.put(&amp;lt;QName for custom:fieldTwo&amp;gt;, value);&lt;BR /&gt;this.nodeService.setProperties(this.createdNode, props);&lt;BR /&gt;&lt;BR /&gt;return outcome;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;but it didn't work, the integritychecker was yelling that mandatory fields creator and created were not set…weird isn't it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i don't really know why i had this error&amp;nbsp; :cry:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but it's working with your hint!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2007 11:48:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/new-dialog-for-new-space-type/m-p/51647#M30204</guid>
      <dc:creator>alpha</dc:creator>
      <dc:date>2007-02-08T11:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: new dialog for new space type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/new-dialog-for-new-space-type/m-p/51648#M30205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's because when you call setProperties (as opposed to setProperty) you are replacing ALL properties on the node, you therefore have to supply any mandatory properties in your hash map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you really want to use setProperties you'd first have to retrieve all the properties using nodeService.getProperties() and then add your properties to that hashmap and pass it back to setProperties().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What you have now is probably better as you are only setting the properties you need to. The technique above is better when you are setting several properties (it can save you making several separate setProperty calls).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that makes sense!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2007 11:14:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/new-dialog-for-new-space-type/m-p/51648#M30205</guid>
      <dc:creator>gavinc</dc:creator>
      <dc:date>2007-02-09T11:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: new dialog for new space type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/new-dialog-for-new-space-type/m-p/51649#M30206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;this definetly makes sense! Alfresco is cool… &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2007 11:33:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/new-dialog-for-new-space-type/m-p/51649#M30206</guid>
      <dc:creator>alpha</dc:creator>
      <dc:date>2007-02-09T11:33:53Z</dc:date>
    </item>
  </channel>
</rss>

