about getRelated method

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

about getRelated method

subhasis
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.
Reply | Threaded
Open this post in threaded view
|

Re: about getRelated method

sayoke shome-2
Getrelated only returns a view .. consider the out put as a view (of oracle)
only .
- sayoke

On 4/10/07, subhasis <[hidden email]> 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