Assign action to custom doclib

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

Assign action to custom doclib

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.

4 Replies
kintu_barot
Senior Member

Re: Assign action to custom doclib

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

Regards,
Kintu
jose_tristan
Active Member

Re: Assign action to custom doclib

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.

kintu_barot
Senior Member

Re: Assign action to custom doclib

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

ContCentric

Regards,
Kintu
jose_tristan
Active Member

Re: Assign action to custom doclib

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.