Login  Register

Re: Re: how to view product assoc

Posted by puranisank on Sep 15, 2006; 8:53am
URL: http://ofbiz.116.s1.nabble.com/how-to-view-product-assoc-tp141851p141853.html

Thanks David. Anyhow the relationship names should be given in the entityModel.xml files.
But I could not find those names in the xml file.
Thanking in advance.

Purani


On Thu, 14 Sep 2006 David E Jones wrote :

>
>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
>