Hi Neha,
It looks like the given code tries to get a form bean from a regular document's bean that has a link to a form document.
This is a pretty standard way of implementing Enterprise Forms but there is an easier way to do it:
public FormBean getForm() {
return this.getLinkedBean("relativePath", FormBean.class);
}
Next would be to use a component that extends EformComponent and overrides #getFormBean(HstRequest request) to call that
getForm() method from the document's bean.
HTH
Jeroen
> --
>
hippo-communi...@googlegroups.com <mailto:
hippo-communi...@googlegroups.com>.
> Visit this group at
https://groups.google.com/group/hippo-community.