cancel
Showing results for 
Search instead for 
Did you mean: 

Auto-generated doc name

ghernando
Champ in-the-making
Champ in-the-making
I would like to be able on manual checkin of a document via the webclient to have a document name assigned automatically based on concatenated values of some properties that the user does fill in.
I think that an attribute could be assigned via a custom behavior/policy.
But I don't know if this would work with the document name.
And I would like the document name field hidden to the user on the checkin.
I would appreciate any ideas for how I might do this.

Thanks
1 REPLY 1

mabayona
Champ on-the-rise
Champ on-the-rise
As you say, the easy way of assigning automatically a name is via a behavior. The behavior itself can be coded in either java or java script. Look around for Jeff Potts tutorials on how to do it: http://ecmarchitect.com/

Alternatively and even easier to do, you could define a rule activated on document load that executes a javascript script that sets the document´s name. The document name is just another attribute and you can change it as you please. Do not forget to do a save() to get the changes flushed if you need to provide user feedback.

To hide the document name, the easy way is by changing the web client configuration (e.g. via web-client-config-custom.xml). If you want to apply this change to a subset of the spaces, then you have to create a custom type and configure the customizations just for this space type.

http://wiki.alfresco.com/wiki/Web_Client_Customisation_Guide

Hope it helps.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.