Custom action from javascript is not executed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2020 05:51 AM
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
- Labels:
-
Alfresco Content Services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2020 06:55 AM
Hi @jrautner
Can you provide the code where it wasn't working?
Thanks,
Problem solved? Click Accept as Solution!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2020 07:32 AM
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/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2020 09:09 AM
Thank you for your quick response.
Problem was something else. I can not identify what was it, but custom action works now.
