Auto-generated doc name
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2008 09:57 AM
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
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
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2008 10:39 AM
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.
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.