cancel
Showing results for 
Search instead for 
Did you mean: 

New aspect that link to a document

chicco0386
Champ on-the-rise
Champ on-the-rise
Hi,
I want to add a new aspect that contain a link to a document…
It's the same function that offert the versionable aspect, it permits to the user to show the content of the number version….
This is the screen, and in red the action that I want to replicate…
[img]http://img190.imageshack.us/img190/6784/versionabile.png[/img]

I've just create the aspect, but I don't know the right type that I must assignee to it for make what I want:

<aspects>
      <aspect name="wfEnteP:AspectRifRiscrittura">
         <title>Riferimento Riscrittura</title>
         <properties>
            <property name="wfEnteP:RiferimentoRiscrittura">
               <title>Documento di riscrittura</title>
               <type>d:any</type>
            </property>
         </properties>
      </aspect>
      
      <aspect name="wfEnteP:AspectRifRedazione">
         <title>Riferimento Redazione</title>
         <properties>
            <property name="wfEnteP:RiferimentoRedazione">
               <title>Documento di redazione</title>
               <type>d:any</type>
            </property>
         </properties>
      </aspect>
  
   </aspects>

After I use this script into my advanced workflow transition for assignee the value:
docProtocollo.addAspect("wfEnteP:AspectRifRiscrittura");
               docProtocollo.properties["wfEnteP:RiferimentoRiscrittura"] = bpm_package.children[1].nodeRef;
               docProtocollo.save();

But the result is this:
[img]http://img410.imageshack.us/img410/5483/versione.png[/img]

I hope that you can helps me…
THANKS
1 REPLY 1

jayjayecl
Confirmed Champ
Confirmed Champ
use the already existing cm:attachable (with association cm:attachments) aspect.