05-12-2011 12:47 PM
<type name="inv:DocsAdmin">
<title>Admin Documents</title>
<parent>cm:content</parent>
<properties>
<property name="inv:date">
<title>Fecha</title>
<type>d:date</type>
</property>
<property name="inv:type">
<title>Tipo</title>
<type>d:text</type>
</property>
</properties>
<mandatory-aspects>
<aspect>inv:docsAssocs</aspect>
</mandatory-aspects>
</type>
<aspect name="inv:docsAssocs">
<associations>
<association name="inv:relatedInvoices">
<title>Facturas relacionadas</title>
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>inv:invoice</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
</associations>
</aspect>
//associationsIni = list of retrived associations of the document
for(NodeRef assocFile: this.associations){
if(!this.associationsIni.contains(assocFile)){
this.getNodeService().createAssociation(this.editableNode.getNodeRef(), assocFile, ASSOC_FRAS);
}
}
//associations = list of associations set by user
for(NodeRef assocFile: this.associationsIni){
if(!this.associations.contains(assocFile)){
this.getNodeService().removeAssociation(this.editableNode.getNodeRef(), assocFile, ASSOC_FRAS);
}
}
List<AssociationRef> associationRefList=
this.getNodeService().getSourceAssocs(this.currentNode.getNodeRef(), Constants.ASSOC_INVOICE);
06-16-2011 12:26 PM
10-07-2011 03:46 AM
10-07-2011 03:55 AM
10-10-2012 07:18 AM
I haven´t any solution yet for this issue.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.