cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Dialog for Custom Action Rule

natnat
Champ in-the-making
Champ in-the-making
Hi!

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
2 REPLIES 2

natnat
Champ in-the-making
Champ in-the-making
I see my Webscript service in localhost:8080/share/service/index:

defaultValues
GET /share/page/ddk/modules/rules/actions/defaul-values

Default values rule action dialog

Authentication:   none
Transaction:   none
Format Style:   any
Default Format:   html
Id:   org/alfresco/modules/rules/actions/default-values.get
Descriptor:   classpath:alfresco/web-extension/site-webscripts/org/alfresco/modules/rules/actions/default-values.get.desc.xml


So, will try to figure out, maybe the name defaultValues is incorrect

natnat
Champ in-the-making
Champ in-the-making
Finally it works, the problem was in misspelling in several places!