Custom action from javascript is not executed

cancel
Showing results for 
Search instead for 
Did you mean: 
jrautner
Active Member

Custom action from javascript is not executed

Hello everybody,

i'd like to ask why is not executed my custom action (new button in DocLib and document detail). It is defined in share-config-custom.xml. I found out that the id of action element is a problem. My id was like my-custom-action. When i changed it to myCustomAction everything was working fine as expected. I'd like to ask why dash in id value is problem.

Thank you very much

3 Replies
EddieMay
Alfresco Employee

Re: Custom action from javascript is not executed

Hi @jrautner 

Can you provide the code where it wasn't working?

Thanks,

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!
sanjaybandhniya
Intermediate

Re: Custom action from javascript is not executed

I dont think problem is of dash.

Please post the code how you are calling action.

Ref : https://blog.arvixe.com/create-javascript-actions-in-alfresco/

jrautner
Active Member

Re: Custom action from javascript is not executed

Thank you for your quick response.

Problem was something else. I can not identify what was it, but custom action works now.