cancel
Showing results for 
Search instead for 
Did you mean: 

Type Setting while document upload!

manmeet
Champ in-the-making
Champ in-the-making
Wanting to upload a document of a custom model.
Have defined a custom model my:sop under the namespace my.new.model. Using the Alfresco GUI there is no problem uplaoding a document using the new model.
How do we go about uploading it using the custom model?

I guess we need to set the type of the document to:
Type:   {my.new.model}sop
Instead of the default:
Type:   {http://www.alfresco.org/model/content/1.0}content

Also here my:sop has been inherited from the content model.

So where in the code can we set the TYPE of the model?

Any help in this regard shall be appreciated.

Thanks,
Manmeet
1 REPLY 1

manmeet
Champ in-the-making
Champ in-the-making
OK I figured this out. The Content Type can be set while instantiating the CMLCreate Object. The 3rd parameter is the TYPE parameter.

-Manmeet