Hello Rohit,

Relation between Requirement entity and OrderRequirementCommitment is many
to one, so from below line
 requirement.getRelated("OrderRequirementCommitment");  you will get a list
which is
"orderRequirement" and you have to iterate this list and then get orderId
and set to context.

HTH

-- 
Thanks and Regards
Santosh Malviya


On Sat, Jul 24, 2010 at 2:57 PM, rohit <[email protected]> wrote:

>
> i did, now it srequirement.getRelated("
> OrderRequirementCommitment");
> hows the below error:
>
> (SQL Exception while setting value on field [orderId] of entity
> OrderHeader:
> (An attempt was made to get a data value of type 'VARCHAR' from a data
> value
> of type 'Types.JAVA_OBJECT'.)) (Error running Groovy script at location
>
> [component://snjPurchasing/webapp/snjPurchasing/WEB-INF/actions/ViewRequirement.groovy]
> (SQL Exception while setting value on field [orderId] of entity
> OrderHeader:
> (An attempt was made to get a data value of type 'VARCHAR' from a data
> value
> of type 'Types.JAVA_OBJECT'.)))
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/help-with-groovy-file-tp2300959p2300980.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>

Reply via email to