Is it possible to attach aspect to object instance using DQL?

jasonduke
edited December 15, 2009 in Documentum #1

Just getting started using aspects, and from what I understand you can configure one or more aspects on a type such that all objects that get created get the aspect. However, what about objects already existing of that type? How can I attach a new aspect to existing objects?

I've seen there are DFC methods to do this, but is it possible to do it from DQL?

Appreciate any tips.

-Jason

Best Answer

  • FabianLee-EMC
    edited December 15, 2009 #2 Answer ✓

    Hi Jason,

    You can attach an aspect through dql by appending to the r_aspect_name attribute, like this:

    dql> update dm_document objects append r_aspect_name='MyAspect' where .....

Answers

  • FabianLee-EMC
    edited December 15, 2009 #3 Answer ✓

    Hi Jason,

    You can attach an aspect through dql by appending to the r_aspect_name attribute, like this:

    dql> update dm_document objects append r_aspect_name='MyAspect' where .....

  • jasonduke
    edited December 15, 2009 #4
    Wow, is it really that simple? Should have tried that first! Thanks, Fabian.
  • Very simple, Thanks