05-02-2012 03:20 AM
05-02-2012 05:40 AM
<bean id="myCustomFormFilter" class="xxx.MyCustomFormFilter" parent="baseFormFilter">
<property name="nodeService" ref="nodeService" />
<property name="filterRegistry" ref="nodeFilterRegistry" />
</bean>
public void afterGenerate(ItemType item, List<String> fields, List<String> forcedFields, Form form,
Map<String, Object> context) {
if (item instanceof NodeRef)
{
final NodeRef nodeRef = (NodeRef) item;
if (nodeService.exists(nodeRef) && nodeService.getType(nodeRef).equals(MyModel.TYPE_MYTYPE)){
final NodeRef parentRef = this.nodeService.getPrimaryParent(nodeRef).getParentRef();
….
}
}
05-10-2012 09:12 PM
05-11-2012 02:15 AM
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.