cancel
Showing results for 
Search instead for 
Did you mean: 

'cmis:document.cmis:name' multiple default label name

fararjeh
Champ in-the-making
Champ in-the-making
In Alfresco workdesk when I create new document the default label name for "cmis:document.cmis:name" is "Name: " But I need to have multiple name .

For example when I create new job document  a "job number" appears instead of "Name :" and when I create new department  document  a "department  name" appears instead of "Name :" .

Can anyone help me ?

7 REPLIES 7

deko
Star Contributor
Star Contributor
Hi fararjeh,

Unfortunately this is currently not possible in Workdesk, as the label is used context-independently over the complete application.

I suggest using the "name" property as object name always and using custom data models with extended properties as desired.

Example:

A department document would still have the "name" property to identify the document itself, but would have an additional property "department name" tos tore the corresponding department name.

Best regards,
Dennis

fararjeh
Champ in-the-making
Champ in-the-making
Hi deko

I worked it the same your suggestion but as you know when I create any document the "cmis:document.cmis:name" is required so I suggest create field control is responsible to generate UUID for "cmis:document.cmis:name" But I need to hide it from added screen , can I hide it ?

deko
Star Contributor
Star Contributor
Hi fararjeh,

In your "Add document" plugin you can define, which properties shall appear and you could also set them readonly using the parameter EditPropertyList.

As a second option you could also use your custom JSPs (using only the fields you need) per object class and configure them in the parameter JspForms.

Best regards,
Dennis

fararjeh
Champ in-the-making
Champ in-the-making
Yes, I can chose "read-only" , but it will appear to the user . I need to hide it

deko
Star Contributor
Star Contributor
If you do not configure the property at all in the EditPropertyList or add the field to your JSP it will be hidden as it won´t appear then.

sonal_t
Champ in-the-making
Champ in-the-making
Did you manage to hide the "Name"?

deko
Star Contributor
Star Contributor
Hi sonal_t,

You have to be careful when hiding the name, as the name property in most cases is a mandatory property that has to have a value.

Of course you can hide it by not writing it out in the JSP, but when saving your document/folder you and name is mandatory you will receive an error. You could workaround this by defining a fix name value for example by inheriting the parents folder name.

Best regards,
Dennis