<?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 create webform from webscript - metadata extraction problem in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/create-webform-from-webscript-metadata-extraction-problem/m-p/190173#M143303</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have successfully created a slight variant of the WCM metadata extraction example for a press_release from the alfresco recommended example&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(Refer: &lt;/SPAN&gt;&lt;A href="http://blogs.alfresco.com/wp/jbarmash/2008/12/01/xml-metadata-extraction-for-wcm/" rel="nofollow noopener noreferrer"&gt;http://blogs.alfresco.com/wp/jbarmash/2008/12/01/xml-metadata-extraction-for-wcm/&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am now generating the required XML form from javascript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have checked in the nodebrowser that ALL the correct aspects are present and the required properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My problem seems to be that the &lt;/SPAN&gt;&lt;BR /&gt;&lt;LI&gt;renditions are not being generated. I assumed that they would be generated if the form aspect(and the others) was correctly configured,&lt;/LI&gt;&lt;LI&gt;metadata extract - not being triggered&lt;/LI&gt;&lt;BR /&gt;&lt;SPAN&gt;If I subsequently open and save(without edit) the form using the web client, the txt and html renditions are generated and the metadata is extracted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I need to do an additional generate renditions step in javascript?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code I use is as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var timestamp = new Date().getTime();&lt;BR /&gt;var storeRootNode = avm.lookupStoreRoot(storeName);&lt;BR /&gt;var path = storeRootNode.path + "/ROOT";&lt;BR /&gt;var node = avm.lookupNode(path);&lt;BR /&gt;&lt;BR /&gt;var fileName= "pr " + timestamp + ".xml";&lt;BR /&gt;var pressReleaseDocF= node.createNode(fileName, "wcm:avmplaincontent");&lt;BR /&gt;pressReleaseDoc.properties["cm:name"] = fileName;&lt;BR /&gt;&lt;BR /&gt;var props= new Array(2);&lt;BR /&gt;props["wca:parentformname"] = "press-release";&lt;BR /&gt;props["wca:originalparentpath"] = "dgtest–admin–preview:/www/avm_webapps/ROOT";&lt;BR /&gt;pressReleaseDocF.addAspect("wca:forminstancedata", props);&lt;BR /&gt;pressReleaseDocF.save();&lt;BR /&gt;&lt;BR /&gt;var props= new Array(2);&lt;BR /&gt;props["cm:title"] = fileName;&lt;BR /&gt;pressReleaseDocF.addAspect("cm:titled", props);&lt;BR /&gt;pressReleaseDocF.save();&lt;BR /&gt;&lt;BR /&gt;var prNs= new Namespace("pr", "&lt;A href="http://www.demo.net.au/alfresco/pr" rel="nofollow noopener noreferrer"&gt;http://www.demo.net.au/alfresco/pr&lt;/A&gt;");&lt;BR /&gt;var pressReleaseXml2=&amp;nbsp; &amp;lt;pr:press_release xmlns:pr="&lt;A href="http://www.demo.net.au/alfresco/pr" rel="nofollow noopener noreferrer"&gt;http://www.demo.net.au/alfresco/pr&lt;/A&gt;"&lt;BR /&gt;xmlns:alf="&lt;A href="http://www.alfresco.org" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org&lt;/A&gt;"&lt;BR /&gt;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;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;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;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;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;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;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/pr:press_release&amp;gt;;&lt;BR /&gt;&lt;BR /&gt;pressReleaseXml2.prNs::title= "pr title "+timestamp;&lt;BR /&gt;pressReleaseXml2.prNs::overview= "the abstract";&lt;BR /&gt;pressReleaseXml2.prNs::location=&amp;nbsp; "pr location";&lt;BR /&gt;pressReleaseXml2.prNs::body=&amp;nbsp; "pr body";&lt;BR /&gt;pressReleaseXml2.prNs::include_media_contacts=&amp;nbsp; "true";&lt;BR /&gt;pressReleaseXml2.prNs::launch_date=&amp;nbsp; "2009-02-04";&lt;BR /&gt;pressReleaseXml2.prNs::expiration_date=&amp;nbsp; "2009-04-06";&lt;BR /&gt;pressReleaseXml2.prNs::numtimes=&amp;nbsp; "1";&lt;BR /&gt;&lt;BR /&gt;pressReleaseDocF.content = pressReleaseXml2.toXMLString();&lt;BR /&gt;pressReleaseDocF.save();&lt;BR /&gt;&lt;SPAN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t;‍&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>Tue, 03 Mar 2009 05:52:52 GMT</pubDate>
    <dc:creator>davidg</dc:creator>
    <dc:date>2009-03-03T05:52:52Z</dc:date>
    <item>
      <title>create webform from webscript - metadata extraction problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-webform-from-webscript-metadata-extraction-problem/m-p/190173#M143303</link>
      <description>I have successfully created a slight variant of the WCM metadata extraction example for a press_release from the alfresco recommended example(Refer: http://blogs.alfresco.com/wp/jbarmash/2008/12/01/xml-metadata-extraction-for-wcm/)I am now generating the required XML form from javascript.I have chec</description>
      <pubDate>Tue, 03 Mar 2009 05:52:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-webform-from-webscript-metadata-extraction-problem/m-p/190173#M143303</guid>
      <dc:creator>davidg</dc:creator>
      <dc:date>2009-03-03T05:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: create webform from webscript - metadata extraction problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-webform-from-webscript-metadata-extraction-problem/m-p/190174#M143304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;davidg,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only way I found was able to do this was to create a custom Javascript component that forced the renditions.&amp;nbsp; Check out the following blog post on the topic:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://blogs.captechventures.com/blog/ron-difrango/alfresco-web-forms-integration-mock-jsf-faces-context" rel="nofollow noopener noreferrer"&gt;http://blogs.captechventures.com/blog/ron-difrango/alfresco-web-forms-integration-mock-jsf-faces-context&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It gives you most of what you need.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ron&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2009 21:42:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-webform-from-webscript-metadata-extraction-problem/m-p/190174#M143304</guid>
      <dc:creator>rdifrango</dc:creator>
      <dc:date>2009-08-28T21:42:20Z</dc:date>
    </item>
  </channel>
</rss>

