<?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: Webscript is not getting executed in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/webscript-is-not-getting-executed/m-p/62670#M21664</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can set the mimetype inside the rule.Mimetype is getting decided on the value of cm:content.as hidden.ftl will contain the "" string value it is setting as text/plain.Set the mimtype inside the rule.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Feb 2018 07:42:28 GMT</pubDate>
    <dc:creator>krutik_jayswal</dc:creator>
    <dc:date>2018-02-07T07:42:28Z</dc:date>
    <item>
      <title>Webscript is not getting executed</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/webscript-is-not-getting-executed/m-p/62667#M21661</link>
      <description>We have defined a rule which executes the following javascript.if(document.properties["common:contentStatus"] != null ) { document.properties["common:createdBy"] = person.properties.userName; document.properties["common:createdDate"] = date; document.save(); }The above script is used to set the crea</description>
      <pubDate>Wed, 07 Feb 2018 04:43:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/webscript-is-not-getting-executed/m-p/62667#M21661</guid>
      <dc:creator>udayakumar_p</dc:creator>
      <dc:date>2018-02-07T04:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript is not getting executed</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/webscript-is-not-getting-executed/m-p/62668#M21662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At which time your rule will be triggerred(create ,update etc)?Share-config contains the ui configuration of the forms.So there should not be any impact of it on rule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more thing, You have defined hidden.ftl for cm:content field.It does not make sense because, even if you remove this configuration, form will look as it is.It will look save if you include field with hidden.ftl as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2018 06:17:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/webscript-is-not-getting-executed/m-p/62668#M21662</guid>
      <dc:creator>krutik_jayswal</dc:creator>
      <dc:date>2018-02-07T06:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript is not getting executed</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/webscript-is-not-getting-executed/m-p/62669#M21663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The rule will be triggered during create.&lt;/P&gt;&lt;P&gt;Only when we include cm:content field, mimetype is automatically set as text/plain. We want this to be done otherwise without that field mimetype is set as application/octet-stream.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2018 07:01:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/webscript-is-not-getting-executed/m-p/62669#M21663</guid>
      <dc:creator>udayakumar_p</dc:creator>
      <dc:date>2018-02-07T07:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript is not getting executed</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/webscript-is-not-getting-executed/m-p/62670#M21664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can set the mimetype inside the rule.Mimetype is getting decided on the value of cm:content.as hidden.ftl will contain the "" string value it is setting as text/plain.Set the mimtype inside the rule.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2018 07:42:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/webscript-is-not-getting-executed/m-p/62670#M21664</guid>
      <dc:creator>krutik_jayswal</dc:creator>
      <dc:date>2018-02-07T07:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript is not getting executed</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/webscript-is-not-getting-executed/m-p/62671#M21665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We tried that approach as recommended here -&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/thread/235341"&gt;How to set default mimetype for custom models&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;The&amp;nbsp;approach works in 5.2 but not in 5.0.&lt;/P&gt;&lt;P&gt;In 5.0, even though we set the mimetype to text/plain in the rule, somewhere down the line it is getting over written as application/octet-stream.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to set cm:content in the webscript? like document.properties.content=""?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2018 16:12:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/webscript-is-not-getting-executed/m-p/62671#M21665</guid>
      <dc:creator>udayakumar_p</dc:creator>
      <dc:date>2018-02-07T16:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript is not getting executed</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/webscript-is-not-getting-executed/m-p/62672#M21666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I was able to set the mimetype with the help of following script.&lt;/P&gt;&lt;P&gt;document.properties["cm:content"].content="";&lt;BR /&gt; document.properties["cm:content"].mimetype="text/plain";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works perfectly fine with 5.2 but not in 5.0. What's the problem with 5.0? Totally stuck with this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2018 20:23:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/webscript-is-not-getting-executed/m-p/62672#M21666</guid>
      <dc:creator>udayakumar_p</dc:creator>
      <dc:date>2018-02-07T20:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript is not getting executed</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/webscript-is-not-getting-executed/m-p/62673#M21667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can set mimetype using below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="" style="color: #000000; background: #f5f2f0; border: 0px; margin: 0.5em 0px; padding: 1em 1em 1em 3.8em;"&gt;&lt;CODE style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;document.&lt;/SPAN&gt;mimetype &lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #669900; border: 0px; font-weight: inherit;"&gt;'text/plain'&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 05:21:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/webscript-is-not-getting-executed/m-p/62673#M21667</guid>
      <dc:creator>krutik_jayswal</dc:creator>
      <dc:date>2018-02-08T05:21:19Z</dc:date>
    </item>
  </channel>
</rss>

