Custom type doesn't get size property

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2008 10:43 AM
Hi all,
Problem seems simple, but I cannot find out the solution. Requiring your kind help
Using the webservices, I create a document of my own type (bi:my_type). The break-down is like:
cm:content <– bi:my_parent_type (1 property in there) <– bi:my_type (1 property in there) <– bi:aspect1 and bi:aspect2 (both quite some props)
When creating my CML, I use:
I then go on adding my custom aspects, etc… no problem. My aspects have mandatory aspects, such as lockable, complianceable, etc.. all ok.
My PDF document is then uploaded, what I programmatically set is there, but the size of the PDF uploaded in not present. It is only present if I set the CML to TYPE_CONTENT, but then, I lose my custom type property.
I haven't found any alfresco aspect that would show this…
How should I do this, to have both the size property, without losing my custom type properties?
thanks a lot.
fred
Problem seems simple, but I cannot find out the solution. Requiring your kind help

Using the webservices, I create a document of my own type (bi:my_type). The break-down is like:
cm:content <– bi:my_parent_type (1 property in there) <– bi:my_type (1 property in there) <– bi:aspect1 and bi:aspect2 (both quite some props)
When creating my CML, I use:
CMLCreate create = new CMLCreate( "1", myHomeParent, null, null, null, //Constants.TYPE_CONTENT, Constants.createQNameString(biModel.NAMESPACE_BI_CONTENT_MODEL, biModel.TYPE_MINE), contentProps );
I then go on adding my custom aspects, etc… no problem. My aspects have mandatory aspects, such as lockable, complianceable, etc.. all ok.
My PDF document is then uploaded, what I programmatically set is there, but the size of the PDF uploaded in not present. It is only present if I set the CML to TYPE_CONTENT, but then, I lose my custom type property.
I haven't found any alfresco aspect that would show this…
How should I do this, to have both the size property, without losing my custom type properties?
thanks a lot.
fred
Labels:
- Labels:
-
Archive
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2008 04:55 AM
Thought I answered myself on that.
Nevertheless, the size doesn't show in the property sheet of the document, but in fact does show in the icon view list.
So, it is enough for me after all.
Thanks.
Nevertheless, the size doesn't show in the property sheet of the document, but in fact does show in the icon view list.
So, it is enough for me after all.
Thanks.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2008 10:28 AM
Hi,
Try adding this to your web-client-config-custom.xml if you would like to see the size.
Best Regards,
Shagul
Try adding this to your web-client-config-custom.xml if you would like to see the size.
<show-property name="size" display-label-id="size" converter="org.alfresco.faces.ByteSizeConverter" show-in-edit-mode="false" />
Best Regards,
Shagul
