AnsweredAssumed Answered

error getting aspects for content

Question asked by targa2000 on Feb 1, 2010
Latest reply on Feb 18, 2010 by targa2000
get reference to content, added custom aspect, then error when tried to retrieve aspects,

           var hmiFile = space.childByNamePath(nameOfFile);         

          // attach metadata to content        
          hmiFile.addAspect("atd:hyperwaveMeta",props);
         
          var fileAspects = hmiFile.aspects;  //error

error message:

java.lang.IllegalArgumentException(workspace://SpacesStore/bd07eb03-d448-48ba-ad13-ce9b56fd3db7#184)

in debugger aspects not defined for hmiFile.  What am I doing wrong?

Outcomes