Problem with retriving Data

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

Problem with retriving Data

G.Venkata Phanindra
Hi all,
     I want to  know in ofbiz do i have an option which will give me a way
in which i can retrive data of Certain pattern,
i.e in specific i want to retrive data from Content Table where content Name
is of pattern "Hello World ***"
how can i do it. I tried using findByLike but could not get the result.

         delegator.findByLike("Content",UtilMisc.toMap("description","Hello
World"));
regards
--
G.Venkata Phanindra
Mob:: 9849852989
Reply | Threaded
Open this post in threaded view
|

Re: Problem with retriving Data

Ashish Vijaywargiya-2
Hi Venkata ,

Please try something like this :
delegator.findByLike("Content",UtilMisc.toMap("description","Hello%"));

You can also try findByCondition instead of
findByLike.

Regards
Ashish Vijaywargiya

--- "G.Venkata Phanindra" <[hidden email]> wrote:

> Hi all,
>      I want to  know in ofbiz do i have an option
> which will give me a way
> in which i can retrive data of Certain pattern,
> i.e in specific i want to retrive data from Content
> Table where content Name
> is of pattern "Hello World ***"
> how can i do it. I tried using findByLike but could
> not get the result.
>
>        
>
delegator.findByLike("Content",UtilMisc.toMap("description","Hello
> World"));
> regards
> --
> G.Venkata Phanindra
> Mob:: 9849852989
>



 
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com