Hi Varun,
But I don't understand why you don't just create the entity condition in the
groovy file:
isVirtualCondition =
org.ofbiz.entity.condition.EntityCondition.makeCondition("isVirtual", "Y")Why try and create a condition in the screen widget when it is easier to do it in the groovy file itself? Regards Scott On 19/06/2010, at 7:29 PM, varun bhansaly wrote: > Hi Scott, > I have already put the groovy part in a .groovy file, though just wanted to > know if i had missed something. > Thanks again. > > On Sat, Jun 19, 2010 at 12:56 PM, varun bhansaly <[email protected]>wrote: > >> Hi Atul, >> Thanks for ur reply. >> I had already tried that with type = "Object", it still does not work, >> still seen as instanceof String. >> >> Hi Scott, >> There are no asterisks, for the post i had replaced " with ". >> >> >> >> On Sat, Jun 19, 2010 at 10:08 AM, Atul Vani <[email protected]>wrote: >> >>> hi Varun, >>> >>> try using 'type' attribute >>> <set field="foo" value="${groovy: ...}" type="..."/> >>> >>> -- >>> Thanks & Regards >>> Atul Vani >>> Enterprise Software Developer >>> HotWax Media Pvt. Ltd. >>> http://www.hotwaxmedia.com/ >>> We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for >>> yourself. >>> >>> >>> varun bhansaly wrote: >>> >>>> Hi, >>>> I am using ofbiz 09.04, facing an issue with groovy & screen widget. >>>> my screen widget action contains - >>>> <set field="*andCondition*" value="*${groovy: return >>>> org.ofbiz.entity.condition.EntityCondition.makeCondition("isVirtual", >>>> "Y")}* >>>> " /> >>>> In my groovy script *andCondition *is an instanceof *String* (isVirtual = >>>> Y) >>>> instead of *EntityCondition*. >>>> >>>> *What could be possibly wrong, am i missing something ? >>>> * >>>> >>>> >>> >> >> >> -- >> Regards, >> Varun Bhansaly >> > > > > -- > Regards, > Varun Bhansaly
smime.p7s
Description: S/MIME cryptographic signature
