You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by subhasis <su...@yahoo.com> on 2007/04/10 15:28:38 UTC

about getRelated method

i am a new user of OFBiz,i faced a problem to fetch some details of a product
from 2/3 entities.

import org.ofbiz.entity.*;

 delegator = request.getAttribute("delegator");
 persons = delegator.findAll("Product");
 context.put("persons", persons);

from the above i get some product information,but
now i require the totalTimesViewed from ProductCalculatedInfo  entity.but
getRelated() method is not working properly here.so how can i solve the
problem?
plz solve it,very urgent.
-- 
View this message in context: http://www.nabble.com/about-getRelated-method-tf3552995.html#a9919730
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: about getRelated method

Posted by sayoke shome <sa...@gmail.com>.
Getrelated only returns a view .. consider the out put as a view (of oracle)
only .
- sayoke

On 4/10/07, subhasis <su...@yahoo.com> wrote:
>
>
> i am a new user of OFBiz,i faced a problem to fetch some details of a
> product
> from 2/3 entities.
>
> import org.ofbiz.entity.*;
>
> delegator = request.getAttribute("delegator");
> persons = delegator.findAll("Product");
> context.put("persons", persons);
>
> from the above i get some product information,but
> now i require the totalTimesViewed from ProductCalculatedInfo  entity.but
> getRelated() method is not working properly here.so how can i solve the
> problem?
> plz solve it,very urgent.
> --
> View this message in context:
> http://www.nabble.com/about-getRelated-method-tf3552995.html#a9919730
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
>


-- 
cheers,
Sayoke Shome