06-10-2019 07:05 AM
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.
06-11-2019 12:06 AM
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
06-11-2019 01:19 AM
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.
06-11-2019 07:42 AM
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.
Regards,
Kintu
06-12-2019 10:50 AM
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
Thanks and regards.
Explore our Alfresco products with the links below. Use labels to filter content by product module.