AnsweredAssumed Answered

Cannot add custom property to document

Question asked by edazcalf on Dec 2, 2009
Latest reply on Dec 2, 2009 by edazcalf
How can I add custom properties to documents in my repository?

I followed the example in the alfresco wiki:
… but when I try to access["myCustomProperty0"] from the response template I get an error:
11020015 Error during processing of the template 'Expression["myCustomProperty0"] is undefined

This is part of the code in my js file (
// create document in company home for uploaded file
  upload = companyhome.createFile("BAupload" + companyhome.children.length + "_" + filename) ;; = "UTF-8"; = title; = description;["myCustomProperty0"] = "custompropertyValue";;
  // setup model for response template
  model.upload = upload;