AnsweredAssumed Answered

How to call custom control template from share workflow form

Question asked by skumar.us on Feb 24, 2015
Latest reply on Mar 18, 2016 by adamsz
Hi
I have created a custom template which I want to call it from the share-config workflow form as below ,it is not calling the custom template .Please guide ?

custom template in share config as

<show id="apwf:contentView" />

<field id="apwf:contentView">
   <control template="/org/alfresco/components/form/controls/customControl.ftl" />
</field>


workflow model has the property entry as

<property name="apwf:contentView">
                   <type>d:text</type>
</property>

The template file as customControl.ftl is

<@script type="text/javascript" src="${page.url.context}/res/components/form/custom-web-preview.js"></@script>
<@script type="text/javascript" src="${page.url.context}/res/components/preview/web-preview.js"></@script>
<@script src="${url.context}/res/components/preview/web-preview.js" />
<@script src="${url.context}/res/components/preview/WebPreviewer.js" />
<@script src="${url.context}/res/js/flash/extMouseWheel.js" />
<@script src="${url.context}/res/components/preview/StrobeMediaPlayback.js" />
<@script src="${url.context}/res/components/preview/Video.js" />
<@script src="${url.context}/res/components/preview/Audio.js" />
<@script src="${url.context}/res/components/preview/Flash.js" />
<@script src="${url.context}/res/components/preview/Image.js" />

<script type="text/javascript">//<![CDATA[
(
function()
{
    new Alfresco.customControl("${fieldHtmlId}").setMessages(${messages});
}
)
();

//]]></script>

<div id="${fieldHtmlId}">
   <div id="web-preview">
    
</div>
</div>

Outcomes