<?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 Programmatically associating XML with web form in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/programmatically-associating-xml-with-web-form/m-p/164175#M117934</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to import XML into the system and associate it with a web&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;form after the fact?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, we want to import large chunks of meta-data into alfresco&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from an external system. Once imported, we want to be able to edit&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the meta-data with web forms.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We can create the imported XML to match the web form schema, but how&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;do we then create the association so that clicking "edit" works, bringing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;up our XML in the appropriate form.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I trolled around in the node browser and I can see the various linkages,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but is there an easy way to create these?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Fred&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jun 2008 19:25:52 GMT</pubDate>
    <dc:creator>ftoth</dc:creator>
    <dc:date>2008-06-10T19:25:52Z</dc:date>
    <item>
      <title>Programmatically associating XML with web form</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/programmatically-associating-xml-with-web-form/m-p/164175#M117934</link>
      <description>Hi all,Is it possible to import XML into the system and associate it with a webform after the fact?For example, we want to import large chunks of meta-data into alfrescofrom an external system. Once imported, we want to be able to editthe meta-data with web forms.We can create the imported XML to ma</description>
      <pubDate>Tue, 10 Jun 2008 19:25:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/programmatically-associating-xml-with-web-form/m-p/164175#M117934</guid>
      <dc:creator>ftoth</dc:creator>
      <dc:date>2008-06-10T19:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically associating XML with web form</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/programmatically-associating-xml-with-web-form/m-p/164176#M117935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would suggest you to create a dummy data for all your webforms (give same names as that of your xml files) which generate you the .xml files with dummy data. Later you click update against this dummy data .xml file and select your actual xml file&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and click on update.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, when you edit the updated .xml file you should see the webform with the new data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps and I think there is no directly way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Vijay&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 20:48:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/programmatically-associating-xml-with-web-form/m-p/164176#M117935</guid>
      <dc:creator>vijay_alfresco</dc:creator>
      <dc:date>2008-06-10T20:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically associating XML with web form</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/programmatically-associating-xml-with-web-form/m-p/164177#M117936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You should be able to apply an (I think it's forminstancedata) then set one of the properties of that aspect to the noderef of the form that should be used to generate the content. You should be able to do this via javascript&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 00:44:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/programmatically-associating-xml-with-web-form/m-p/164177#M117936</guid>
      <dc:creator>marcus</dc:creator>
      <dc:date>2008-06-11T00:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically associating XML with web form</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/programmatically-associating-xml-with-web-form/m-p/164178#M117937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a scenario where I allow XML feeds to be dropped into an ADM space (a regular DM folder) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;whereupon a script executes to re-write the XML so that it matches the schema of one of my web-forms.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I then associate it with that particular web-form and then copy it into the AVM, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ready for approval in one of the user's sandboxes. When they edit these items, they'll view it in the web-form editor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The associating code snippet you're interested in is something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;if (cleanedFile.isDocument &amp;amp;&amp;amp; (cleanedFile.properties.content.encoding == "text/xml")) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;var props = new Array(1);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;props["{&lt;A href="http://www.alfresco.org/model/wcmappmodel/1.0}parentformname" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/wcmappmodel/1.0}parentformname&lt;/A&gt;"] = form;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;cleanedFile.addAspect("{&lt;A href="http://www.alfresco.org/model/wcmappmodel/1.0}forminstancedata" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/wcmappmodel/1.0}forminstancedata&lt;/A&gt;", props);&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The ".content.encoding" bit might be ".content.mimetype" on some alfresco versions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.ixxus.com" rel="nofollow noopener noreferrer"&gt;http://www.ixxus.com&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 09:46:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/programmatically-associating-xml-with-web-form/m-p/164178#M117937</guid>
      <dc:creator>tommorris</dc:creator>
      <dc:date>2008-06-11T09:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically associating XML with web form</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/programmatically-associating-xml-with-web-form/m-p/164179#M117938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Tom, it worked!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I could associate programmatically an xml with an existing webform&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 18:54:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/programmatically-associating-xml-with-web-form/m-p/164179#M117938</guid>
      <dc:creator>tamoracing</dc:creator>
      <dc:date>2011-10-14T18:54:54Z</dc:date>
    </item>
  </channel>
</rss>

