Type Setting while document upload!
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2006 11:47 AM
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
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
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2006 12:23 PM
OK I figured this out. The Content Type can be set while instantiating the CMLCreate Object. The 3rd parameter is the TYPE parameter.
-Manmeet
-Manmeet
