As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Hi
Is it possible to add a custom action to a new doclib menu? I mean, showing a form where fill in some data and once the user clicks submit button create a new document with the information introduced by the user.
Thanks and regards.
Yes, you can create custom action on a folder using which you can ask for details from the user using form fields and create a document. Please refer https://docs.alfresco.com/5.2/tasks/dev-extensions-share-tutorials-add-action-doclib.html
Regards,
Kintu
ContCentric
Thanks Kintu for your help. I've read that tutorial and I've implemented the action class java. However, I don't know how to link that action to a doclib menu (create).
User should expand the "create" menu and select for example "Create customer". It is showed a form to fill in some customer data (name, address, etc) and when user click un buttons "submit" the form should call the action bean in order to pick the data up and create a specific document.
I don't know you have gone through this https://docs.alfresco.com/6.1/tasks/dev-extensions-share-tutorials-add-menuitem-create-menu.html but it has all you need.
Yes, I've read that tutorial. However, it explores the directly creation of a document. Instead call a form but I can't see how to modify the submit button in order to call an action. I'm finding something similar to: https://community.alfresco.com/thread/239522-how-use-pagelink-to-call-a-action-backend