You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Purani S <pu...@rediffmail.com> on 2006/09/14 13:06:31 UTC
how to view product assoc
Hi,
The following lines are taken from "applications\product\webapp\catalog\WEB-INF\actions\product\EditProductAssoc.bsh".
if (product != null) {
assocFromProducts = product.getRelated("MainProductAssoc", null, UtilMisc.toList("sequenceNum"));
context.put("assocFromProducts", assocFromProducts);
assocToProducts = product.getRelated("AssocProductAssoc");
context.put("assocToProducts", assocToProducts);
}
I don't understand where from the variables "MainProductAssoc" and "AssocProductAssoc". I searched for the entities in this name. But I could not find out.
Could I please get some help regarding this.
Thanks
Purani
Re: how to view product assoc
Posted by David E Jones <jo...@undersunconsulting.com>.
Those are relationship names. For more information I highly recommend
looking at the documentation on the ofbiz.org site, including the
Entity Engine Guide and the Framework Introduction videos. Even
better, achieve an extensive knowledge of the with the Advanced
Framework package from Undersun.
http://www.undersunconsulting.com/ecommerce/control/product/
~product_id=OFBADVFWKPKG
-David
On Sep 14, 2006, at 5:06 AM, Purani S wrote:
> Hi,
> The following lines are taken from "applications\product\webapp
> \catalog\WEB-INF\actions\product\EditProductAssoc.bsh".
>
>
> if (product != null) {
> assocFromProducts = product.getRelated("MainProductAssoc",
> null, UtilMisc.toList("sequenceNum"));
> context.put("assocFromProducts", assocFromProducts);
>
> assocToProducts = product.getRelated("AssocProductAssoc");
> context.put("assocToProducts", assocToProducts);
> }
>
>
> I don't understand where from the variables "MainProductAssoc" and
> "AssocProductAssoc". I searched for the entities in this name. But
> I could not find out.
>
> Could I please get some help regarding this.
>
> Thanks
> Purani