AnsweredAssumed Answered

Custom Dialog for Custom Action Rule

Question asked by natnat on Oct 17, 2012
Latest reply on Oct 17, 2012 by natnat

I've created a new Action "Default values" which sets the default values for document properties. It works, but as there are a lot of properties need to be set, it is not good to display them next to and under the Actions combobox in the Rule Edit screen. So, I need to create a Dialog with the properties set, as it is done e.g. for Checkin action. I tried to do it by Checkin Action dialog example, but at the moment I am getting an error:

Could not load template:/share/res/ddk/modules/rules/actions/default-values

Something is missing, probably. So, the question is: is there some guide, how to create a Rule Dialog for Share? I've found some information for Explorer, but not for Share.

Files that I've created so far:

1. Alfresco\tomcat\webapps\share\ddk\modules\rules\actions\default-values.js
2. Alfresco\tomcat\webapps\share\ddk\modules\rules\actions\default-values-min.js
3. Alfresco\tomcat\shared\classes\alfresco\web-extension\site-webscripts\org\alfresco\modules\rules\actions\default-values.get.desc.xml
4. Alfresco\tomcat\shared\classes\alfresco\web-extension\site-webscripts\org\alfresco\modules\rules\actions\default-values.get.html.ftl
5. In Alfresco\tomcat\shared\classes\alfresco\web-extension\site-webscripts\org\alfresco\components\rules\rule-edit.get.head.ftl added the script ${page.url.context}/res/ddk/modules/rules/actions/default-values.js