<?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: How to pass values from javascript to custom template file in data dictionary? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-pass-values-from-javascript-to-custom-template-file-in/m-p/2066#M202</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, It is not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jan 2017 14:01:35 GMT</pubDate>
    <dc:creator>vikash_patel</dc:creator>
    <dc:date>2017-01-03T14:01:35Z</dc:date>
    <item>
      <title>How to pass values from javascript to custom template file in data dictionary?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-pass-values-from-javascript-to-custom-template-file-in/m-p/2064#M200</link>
      <description>Hi,I have created a webscript and this is the code of&amp;nbsp;js file.var fileNode=companyhome.childByNamePath("Data Dictionary/Node Templates/test.html.ftl");var doc1=companyhome.createFile("testtemplate123.doc");var props = new Array(1);props["docname"] = "tesstttt";var content=doc1.processTemplate(fileNo</description>
      <pubDate>Tue, 03 Jan 2017 12:47:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-pass-values-from-javascript-to-custom-template-file-in/m-p/2064#M200</guid>
      <dc:creator>vikash_patel</dc:creator>
      <dc:date>2017-01-03T12:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass values from javascript to custom template file in data dictionary?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-pass-values-from-javascript-to-custom-template-file-in/m-p/2065#M201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried setting up values in model object from JS file for example, model.name="ABC" and in ftl access it as ${name}.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2017 13:53:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-pass-values-from-javascript-to-custom-template-file-in/m-p/2065#M201</guid>
      <dc:creator>romschn</dc:creator>
      <dc:date>2017-01-03T13:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass values from javascript to custom template file in data dictionary?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-pass-values-from-javascript-to-custom-template-file-in/m-p/2066#M202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, It is not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2017 14:01:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-pass-values-from-javascript-to-custom-template-file-in/m-p/2066#M202</guid>
      <dc:creator>vikash_patel</dc:creator>
      <dc:date>2017-01-03T14:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass values from javascript to custom template file in data dictionary?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-pass-values-from-javascript-to-custom-template-file-in/m-p/2067#M203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I am understanding correctly then, Looks like you are trying to replicate the same thing as done during email sending. However, while email send when you set up the template model, it resolves values at the runtime during mail action. Here, from one JS file you are trying to populate values in a static html template which in my opinion would not be possible straight away. You may need to take a look at processTemplate and see if you can customize it passing the values for the variables in the template.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2017 15:40:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-pass-values-from-javascript-to-custom-template-file-in/m-p/2067#M203</guid>
      <dc:creator>romschn</dc:creator>
      <dc:date>2017-01-03T15:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass values from javascript to custom template file in data dictionary?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-pass-values-from-javascript-to-custom-template-file-in/m-p/2068#M204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you, sir&lt;BR /&gt;let me try it with&amp;nbsp;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;processTemplate.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2017 04:08:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-pass-values-from-javascript-to-custom-template-file-in/m-p/2068#M204</guid>
      <dc:creator>vikash_patel</dc:creator>
      <dc:date>2017-01-04T04:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass values from javascript to custom template file in data dictionary?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-pass-values-from-javascript-to-custom-template-file-in/m-p/2069#M205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vikas, you can try passing parameters using args parameter (map) in processTemplate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;processTemplate(template, args)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://docs.alfresco.com/5.1/references/API-JS-Transformation-freemarker.html" title="http://docs.alfresco.com/5.1/references/API-JS-Transformation-freemarker.html" rel="nofollow noopener noreferrer"&gt;processTemplate | Alfresco Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kalpesh&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.contcentric.com" rel="nofollow noopener noreferrer"&gt;ContCentric&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2017 05:19:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-pass-values-from-javascript-to-custom-template-file-in/m-p/2069#M205</guid>
      <dc:creator>kalpesh_c2</dc:creator>
      <dc:date>2017-01-04T05:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass values from javascript to custom template file in data dictionary?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-pass-values-from-javascript-to-custom-template-file-in/m-p/2070#M206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Sir It is working.&lt;/P&gt;&lt;P&gt;var args = new Array(1);&lt;BR /&gt;args["hello"] = "78978879";&lt;BR /&gt;var content=doc1.processTemplate(fileNode,args);&lt;BR /&gt;doc1.properties.content.content= content;&lt;/P&gt;&lt;P&gt;now I&amp;nbsp;can access these variable using ${args.hello}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2017 08:58:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-pass-values-from-javascript-to-custom-template-file-in/m-p/2070#M206</guid>
      <dc:creator>vikash_patel</dc:creator>
      <dc:date>2017-01-04T08:58:25Z</dc:date>
    </item>
  </channel>
</rss>

