cancel
Showing results for 
Search instead for 
Did you mean: 

Remove associated document

prasobhraj
Star Contributor
Star Contributor
Hi,

I had made a custom type with an association. I can select the associated documents. is there any way to remove the selected document from the list. I am using alfresco 4.2.f.

<blockcode>
<associations>
    <association name="acl:relatedDos">
        <title>Related Documents</title>
        <source>
            <mandatory>false</mandatory>
            <many>true</many>
        </source>
        <target>
            <class>acl:related_docs</class>
            <mandatory>false</mandatory>
            <many>true</many>
        </target>
    </association>
</associations>
</blockcode>

3 REPLIES 3

jpotts
World-Class Innovator
World-Class Innovator
Yes, you can remove items from the list. How are you attempting to do that and what problem are you seeing? Without further detail we cannot help.

Jeff

Hi Jeff,

I am using a type which i configured as below in share config. related documents showing in properties. here i can select the related documents. but there is no option to remove the selected documents. please advice how to implement that



   <config evaluator="node-type" condition="acl:vendor_invoice">
      <forms>
         <form>
            <field-visibility>
               <show id="acl:company" />
               <show id="acl:invoice_number" />
               <show id="acl:vendor_id" />
               <show id="acl:acl:related_docs" />
            </field-visibility>
            <appearance>
               <field id="acl:acl:related_docs" label="Related DOs">
                  <control template="/org/alfresco/components/form/controls/association.ftl">
                     <control-param name="displayMode">items</control-param>
                     <control-param name="showTargetLink">true</control-param>
                  </control>
               </field>
            </appearance>
         </form>
      </forms>
   </config>

When i changed the display mode to list the requirement got satisfied. there is option to remove the document. Now another requirement is to view the relation ship from other side. for eg: A is associated with B. i can see the list of B from A's properties section.

But from B to A, is there any option to get this?