<?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 content from web form without web client in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/create-content-from-web-form-without-web-client/m-p/210580#M163710</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not 100% sure if this is what your looking for, but I've recently done something rather similar to what I think you're looking for (&lt;/SPAN&gt;&lt;A href="http://forums.alfresco.com/en/viewtopic.php?f=30&amp;amp;t=17027" rel="nofollow noopener noreferrer"&gt;http://forums.alfresco.com/en/viewtopic.php?f=30&amp;amp;t=17027&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What we actually did was create a custom wizard (triggered by a custom command from outside the web client) where we could provide an XSD for each step. So for each step the form would be automatically rendered by Alfresco and all we had to do in the end was combine all data from the different steps/forms and create/update some files and trigger the renderings. Now I know this isn't exactly what you're looking for, but perhaps you can get a few ideas from that thread. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please note that it was implemented on Enterprise 2.2.2 and adapted later on to work on 3.0.1. I don't know what version you're currently working with, but I seem to remember reading somewhere that something like "ECM Forms" would be implemented in Enterprise 3.1 (and is already in the Labs 3 version), so perhaps you could check out the code over there? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, you'll probably have more luck digging through the Alfresco code and trying things for yourself than hoping for someone else to hand it to you (though you probably already knew that since I'm the first to respond in 2 weeks time). Nevertheless, in case you do figure something out, it would still be nice if you could share it here&amp;nbsp; &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>Sat, 28 Mar 2009 14:02:18 GMT</pubDate>
    <dc:creator>benvercammen</dc:creator>
    <dc:date>2009-03-28T14:02:18Z</dc:date>
    <item>
      <title>Create content from web form without web client</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-content-from-web-form-without-web-client/m-p/210578#M163708</link>
      <description>Hi,I want to create content using e pre-defined web form programmatically (via web script for example), i.e. without the web client wizard.In other words:1) create a web form as usual (xsd, deploy in alfresco…)2) using the API: find the form, fill in the required information and generate the content</description>
      <pubDate>Sun, 15 Mar 2009 16:31:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-content-from-web-form-without-web-client/m-p/210578#M163708</guid>
      <dc:creator>lirux</dc:creator>
      <dc:date>2009-03-15T16:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Create content from web form without web client</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-content-from-web-form-without-web-client/m-p/210579#M163709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Excuse me, I've posted this question on the wrong forum.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Lirux&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Mar 2009 17:15:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-content-from-web-form-without-web-client/m-p/210579#M163709</guid>
      <dc:creator>lirux</dc:creator>
      <dc:date>2009-03-15T17:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Create content from web form without web client</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-content-from-web-form-without-web-client/m-p/210580#M163710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not 100% sure if this is what your looking for, but I've recently done something rather similar to what I think you're looking for (&lt;/SPAN&gt;&lt;A href="http://forums.alfresco.com/en/viewtopic.php?f=30&amp;amp;t=17027" rel="nofollow noopener noreferrer"&gt;http://forums.alfresco.com/en/viewtopic.php?f=30&amp;amp;t=17027&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What we actually did was create a custom wizard (triggered by a custom command from outside the web client) where we could provide an XSD for each step. So for each step the form would be automatically rendered by Alfresco and all we had to do in the end was combine all data from the different steps/forms and create/update some files and trigger the renderings. Now I know this isn't exactly what you're looking for, but perhaps you can get a few ideas from that thread. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please note that it was implemented on Enterprise 2.2.2 and adapted later on to work on 3.0.1. I don't know what version you're currently working with, but I seem to remember reading somewhere that something like "ECM Forms" would be implemented in Enterprise 3.1 (and is already in the Labs 3 version), so perhaps you could check out the code over there? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, you'll probably have more luck digging through the Alfresco code and trying things for yourself than hoping for someone else to hand it to you (though you probably already knew that since I'm the first to respond in 2 weeks time). Nevertheless, in case you do figure something out, it would still be nice if you could share it here&amp;nbsp; &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>Sat, 28 Mar 2009 14:02:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-content-from-web-form-without-web-client/m-p/210580#M163710</guid>
      <dc:creator>benvercammen</dc:creator>
      <dc:date>2009-03-28T14:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Create content from web form without web client</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-content-from-web-form-without-web-client/m-p/210581#M163711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your post.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've read the post you mention but is rather advanced for my current knowledge of Alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nevertheless it sounds quite interesting, and I'll try to understand it in the future.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Returning on my question, after further digging in the forum, I found some example that creates an xml content in WCM that is visibile in the user's sandbox "Modified items",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; and link it with the corresponding web form. What is missing is the trigger of renditions. Have you any idea of how I can accomplish this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My code is contextualised in the press release example of the "WCM 2_1 Product Evaluation Guide.pdf". Is quite experimental but I think it's understandable:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;model.toWho = (args.param != null) ? args.param : person.properties.userName;&lt;BR /&gt;model.store = avm.lookupStore("alfrescosample–admin");&lt;BR /&gt;model.webappFolder = avm.webappsFolderPath;&lt;BR /&gt;var storeRootNode = avm.lookupStoreRoot(args.store);&lt;BR /&gt;model.rootNode = storeRootNode;&lt;BR /&gt;if (storeRootNode != null) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;var path = storeRootNode.path + "/ROOT/media/releases/content";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;model.path = path;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;var node = avm.lookupNode(path);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;model.node = node;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;var timestamp = new Date().getTime();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Creates the new node&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;var fileName = "mioContenuto_" + timestamp + ".xml";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;var contentNode = node.createNode(fileName, "wcm:avmplaincontent");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Sets the file name&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;contentNode.properties["cm:name"] = fileName;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Adding the aspect for the web forms&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;var props= new Array(2);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;props["wca:parentformname"] = "company-footer";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;props["wca:originalparentpath"] = "alfrescosample–admin–preview:/www/avm_webapps/ROOT";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;contentNode.addAspect("wca:forminstancedata", props);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;contentNode.save();&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Creates the xml content&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;var pressReleaseXml2=&amp;nbsp; &amp;lt;pr:company_footer xmlns:pr="&lt;A href="http://www.alfresco.org/alfresco/pr" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/alfresco/pr&lt;/A&gt;" &lt;BR /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:alf="&lt;A href="http://www.alfresco.org" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org&lt;/A&gt;" &lt;BR /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:chiba="&lt;A href="http://chiba.sourceforge.net/xforms" rel="nofollow noopener noreferrer"&gt;http://chiba.sourceforge.net/xforms&lt;/A&gt;" &lt;BR /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:ev="&lt;A href="http://www.w3.org/2001/xml-events" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/xml-events&lt;/A&gt;" &lt;BR /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:xf="&lt;A href="http://www.w3.org/2002/xforms" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2002/xforms&lt;/A&gt;" &lt;BR /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:xhtml="&lt;A href="http://www.w3.org/1999/xhtml" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/1999/xhtml&lt;/A&gt;" &lt;BR /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:xs="&lt;A href="http://www.w3.org/2001/XMLSchema" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;" &lt;BR /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:xsi="&lt;A href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;pr:name&amp;gt;Alfresco&amp;lt;/pr:name&amp;gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;pr:body&amp;gt;Body xml&amp;lt;/pr:body&amp;gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/pr:company_footer&amp;gt;;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;contentNode.content = pressReleaseXml2.toXMLString();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;contentNode.save();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;// TODO: trigger the renditions&lt;BR /&gt;&lt;BR /&gt;} else {&lt;BR /&gt;&amp;nbsp; logger.log("No store: " + args.store);&lt;BR /&gt;}&lt;BR /&gt;&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;/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;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;/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;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>Sat, 28 Mar 2009 20:33:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-content-from-web-form-without-web-client/m-p/210581#M163711</guid>
      <dc:creator>lirux</dc:creator>
      <dc:date>2009-03-28T20:33:37Z</dc:date>
    </item>
  </channel>
</rss>

