how to create new data type in datadictionarymodel

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-16-2010 03:54 AM
Hi,
Is it possible to create new datatype? like d:list which maps to java.util.ArrayList
if possible please let me know what are all the steps i should proceed
thanks
yogeshkumar
Is it possible to create new datatype? like d:list which maps to java.util.ArrayList
if possible please let me know what are all the steps i should proceed
thanks
yogeshkumar
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-17-2010 03:22 PM
Yes its possible. However alfresco already has support for multi-valued fields and If you pass in an ArrayList then it will handle that as a collection.
If you really need a list type, look at how alfresco handles MLText values to persist the values to and from database format. And in the extreme case you can persist any serializable java object.
If you really need a list type, look at how alfresco handles MLText values to persist the values to and from database format. And in the extreme case you can persist any serializable java object.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-22-2010 01:47 AM
Hi,
Thanks for your reply..
Yes its possible. However alfresco already has support for multi-valued fields and If you pass in an ArrayList then it will handle that as a collection.
[Yogesh] : If i want to pass any collection object ,in the property of my Aspect what datatype i should pass?
Example :
<aspect name="myaspectname">
<title>SDXProject</title>
<properties>
<property name="mypropertyname">
<type>d:text</type> [What datatype should i pass here?]
</property>
</properties>
</aspect>
Thanks for your reply..
Yes its possible. However alfresco already has support for multi-valued fields and If you pass in an ArrayList then it will handle that as a collection.
[Yogesh] : If i want to pass any collection object ,in the property of my Aspect what datatype i should pass?
Example :
<aspect name="myaspectname">
<title>SDXProject</title>
<properties>
<property name="mypropertyname">
<type>d:text</type> [What datatype should i pass here?]
</property>
</properties>
</aspect>
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-22-2010 04:56 PM
Something like …
<aspect name="myaspectname">
<title>SDXProject</title>
<properties>
<property name="mypropertyname">
<type>d:text</type>
<multiple>true</multiple>
</property>
</properties>
</aspect>
<aspect name="myaspectname">
<title>SDXProject</title>
<properties>
<property name="mypropertyname">
<type>d:text</type>
<multiple>true</multiple>
</property>
</properties>
</aspect>
