<?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: Create a discussion topic through Javascript API in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/create-a-discussion-topic-through-javascript-api/m-p/55577#M33417</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Kevin.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Nov 2006 15:52:42 GMT</pubDate>
    <dc:creator>ajshaw</dc:creator>
    <dc:date>2006-11-02T15:52:42Z</dc:date>
    <item>
      <title>Create a discussion topic through Javascript API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-a-discussion-topic-through-javascript-api/m-p/55570#M33410</link>
      <description>Is this possible?&amp;nbsp; with 1.3?&amp;nbsp; if so a snipit of code would be great.</description>
      <pubDate>Mon, 25 Sep 2006 14:54:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-a-discussion-topic-through-javascript-api/m-p/55570#M33410</guid>
      <dc:creator>kkaragitz</dc:creator>
      <dc:date>2006-09-25T14:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Create a discussion topic through Javascript API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-a-discussion-topic-through-javascript-api/m-p/55571#M33411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A discussion, like most other objects in Alfresco is just a node of a certain type, and you can use the JavaScript API to create nodes of any type. If you want to do this kind of thing, i suggest you download the SDK and then take a look at the data model XML files, in this case "forumModel.xml" - it contains the definitions of the various objects created by the forums module. You can then use the JavaScript API method:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Node createNode(string name, string type)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;where the 'type' is the type from the data model, in your example it would be the 'fm:topic' type. Of course you would need to create it inside a parent forum node for it to be useful.&lt;/SPAN&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>Mon, 25 Sep 2006 21:55:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-a-discussion-topic-through-javascript-api/m-p/55571#M33411</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2006-09-25T21:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Create a discussion topic through Javascript API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-a-discussion-topic-through-javascript-api/m-p/55572#M33412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Kevin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the response.&amp;nbsp; I've downloaded the sdk.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 14:15:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-a-discussion-topic-through-javascript-api/m-p/55572#M33412</guid>
      <dc:creator>kkaragitz</dc:creator>
      <dc:date>2006-09-26T14:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Create a discussion topic through Javascript API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-a-discussion-topic-through-javascript-api/m-p/55573#M33413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it possible to manipulate the content on nodes created using createNode("MyNode", "My:NodeType"); ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The following doesnt work:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;theNode = createNode("MyNode", "My:NodeType");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;theNode.content = "Lalalalal";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This doesn't work for types extending cm:content, and also for the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;createNode("MyNode", "cm:content");&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>Wed, 01 Nov 2006 18:03:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-a-discussion-topic-through-javascript-api/m-p/55573#M33413</guid>
      <dc:creator>ajshaw</dc:creator>
      <dc:date>2006-11-01T18:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Create a discussion topic through Javascript API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-a-discussion-topic-through-javascript-api/m-p/55574#M33414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That should all work fine, as long as the My:NodeType extends cm:content.&lt;/SPAN&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, 02 Nov 2006 09:44:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-a-discussion-topic-through-javascript-api/m-p/55574#M33414</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2006-11-02T09:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Create a discussion topic through Javascript API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-a-discussion-topic-through-javascript-api/m-p/55575#M33415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's the problem. It does extend cm:content, and and it doesn't work. I tried it after some guys from Holland couldn't get it to work either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If anyone can make it work, let me know!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(Alfresco comunity 1.4 btw.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, i didn't highight very well:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;createNode("MyNode","cm:content");&amp;nbsp;&amp;nbsp; &amp;lt;——CM:CONTENT!!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;which implies that the nodetype isn't nessecarily the issue, but that the content cannot be altered on nodes using createNode, rather than createFile. If that makes sense. Please let me know if i'm just missing something &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 14:28:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-a-discussion-topic-through-javascript-api/m-p/55575#M33415</guid>
      <dc:creator>ajshaw</dc:creator>
      <dc:date>2006-11-02T14:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Create a discussion topic through Javascript API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-a-discussion-topic-through-javascript-api/m-p/55576#M33416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have investigated the problem, you are correct there is a subtle bug that the content property cannot be set if the node is created using the createNode() method. The createFile() method calls the FileFolderService which internally has an extra step to create an empty content property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have raised a JIRA issue for it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://issues.alfresco.com/browse/AR-1066" rel="nofollow noopener noreferrer"&gt;http://issues.alfresco.com/browse/AR-1066&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for reporting this,&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, 02 Nov 2006 15:33:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-a-discussion-topic-through-javascript-api/m-p/55576#M33416</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2006-11-02T15:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Create a discussion topic through Javascript API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-a-discussion-topic-through-javascript-api/m-p/55577#M33417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Kevin.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 15:52:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-a-discussion-topic-through-javascript-api/m-p/55577#M33417</guid>
      <dc:creator>ajshaw</dc:creator>
      <dc:date>2006-11-02T15:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Create a discussion topic through Javascript API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-a-discussion-topic-through-javascript-api/m-p/55578#M33418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Fixed for 1.4.0E&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://issues.alfresco.com/browse/AR-1066" rel="nofollow noopener noreferrer"&gt;http://issues.alfresco.com/browse/AR-1066&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 15:54:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-a-discussion-topic-through-javascript-api/m-p/55578#M33418</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2006-11-02T15:54:31Z</dc:date>
    </item>
  </channel>
</rss>

