cancel
Showing results for 
Search instead for 
Did you mean: 

Custom type doesn't get size property

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

Problem seems simple, but I cannot find out the solution. Requiring your kind help Smiley Happy

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
2 REPLIES 2

chapeaurouge
Champ in-the-making
Champ in-the-making
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.

rivetlogic
Champ on-the-rise
Champ on-the-rise
Hi,

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
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.