cancel
Showing results for 
Search instead for 
Did you mean: 

Multi-Selection Field in MetaData v3.0

jlabuelo
Champ on-the-rise
Champ on-the-rise
Hi all

Would like to know if it is possible in Alfresco 3.0 to create a "multiple selection" field as an aspect of a content in Alfresco 3.0.

In some documents we store, of type "news" we have an aspect called "source" that can be

1) Picture
2) Text
3) Publicity

At the beginning we have created this aspect as a dropdown list element, however we have seen with the time that we would need to have this aspect as a "Multi Selection" field where the user can select one, two or the three values of them.

Is this possible in Alfresco 3.0?…. Also if so, will it work in the Advanced Search as a filter??

Thanks a lot in advance
5 REPLIES 5

jlabuelo
Champ on-the-rise
Champ on-the-rise
Hi there

Anyone has configured this feature in 3.0? I have seen a post that says it should be possible but the explanation on the post is not quite clear and does not point to any wiki document.

Thanks a lot again mates

Cheers

agey
Champ in-the-making
Champ in-the-making
Hi all,

I have the same problem. I would like configuration a metadata as a "Multi Selection" field where the user can select one, two or the three values of them. I read a post that this is possible by setting the property as follows:

<property name="alfa:version">
<type>d:text</type>
<multiple>true</multiple>
<constraints>
<constraint ref="alfa:versionList"/>
</constraints>
</property>

This works fine to modify the properties of the content but not to search content. You can not search content by several property values. Someone has done it and it worked?

In my case, my model is enabled as a Dynamic Model. I tried to add customModel to add "Multi Selection" metadata but it is not possible. It returned the error
Failed to validate model update - found non-incrementally updated TYPE
.
Is there any way to change the configuration of a type if the model is enabled as a Dynamic Model? 
The type defined in the Dynamic Model has been used since May, and now there are definitely many nodes of that type. Is there any way to disable it and use the customModel in the folder /shared/classes/alfresco/extension?

Thanks a lot in advance,

agey
Champ in-the-making
Champ in-the-making
Hi all again,
  
I have been trying to delete a "Dynamic Models" configuration and seems that I've finally found how.
  
I would like to discuss it with you if in this way, data could be lost (though apparently not the case) and if there is another way to do it.

These are the steps:

1. Download the web-client-config-custom.xml of Data Dictionary space and then, delete it from space. If exist other web-client-config-custom.xml files that use types and aspects defined in the Dynamic Model delete them too.
2. Reload in the Web Client Config Admin Console.
3. Update customModel.xml file in the folder "Data Dictionary" (Dynamic Model configuration) by another file, exampleModel.xml, with different uri and with types and aspects which are not being used in a file web-client-config-custom.xml
4. Disable Dynamic Model flag in the properties of file.
5. Delete the file.
6. Stop Alfresco
7. Modify custom-model-context.xml to add the path file customModel.xml in the folder shared/classes/alfresco/extension/.
8. Start Alfresco
9. Upload again the web-client-config-custom.xml to Data Dictionary space.
10. Reload in the Web Client Config Admin Console.

Now, the Dynamic Model configuration is disable and the metadata are defined in the customModel.xml in the folder shared/classes/alfresco/extension/. This metadata definition can be change and metadatas of contents are updated according to changes.

Is it a good way to do this? Do you see any problem in that?

Thanks a lot in advance

agey
Champ in-the-making
Champ in-the-making
Hi all,

Another question about this. I have configuration a metadata as mutli-Selection Field in this way:


<property name="sm:Fuente">
  <title>Fuente</title>
  <type>d:text</type>
  <multiple>true</multiple>
  <constraints>
       <constraint ref="sm:Fuente"/>
  </constraints>
</property>

This works fine but the problem is the search for nodes with multiple values in this metadata. The advanced search form lets enter only one value in this field but we would like to search for multiple values. Can somebody point to me how to change this advanced search form? Can this be done using configuration or need to be developed?

Thanks

jlabuelo
Champ on-the-rise
Champ on-the-rise
Hi there

I have also the same problem, not able to get the chance of using several values like a Logic "OR" with a multi-selection field when I try to use it in the Advanced Search, I get the field like a picklist with all the options but I can pick only one.

Is there any way that with a multi-selection metadata field, where when I pick the values for a new document I just drop to the Alfresco repository I am able to pick more than one, in the Advanced Search I can also select more than one value to run the search? I thought that a multi-selection field could be used as a Logic OR search for all the values selected in that field in the Advanced Search screen.

Please let me know if this is possible, and if so how to do it. If not I would have to move my strategy to use several "Boolean" metadata fields instead of only one multi-selected field. This can be ok for 2 or 3 values but not when you have a lot.

Thanks a lot in advance mates Smiley Happy