how to retrieve line Item values from an object using groovy

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

how to retrieve line Item values from an object using groovy

kiruthiga
This post has NOT been accepted by the mailing list yet.
how to retrieve line Item values from an object using groovy
This question is Not Answered.(Mark as assumed answered)
 1479746
Newbie
1479746 Sep 25, 2014 8:56 AM
def RevenueObject = nvl(ChildRevenue,0);
println('revenueItems==='+revenueItems.size());
while(RevenueObject.hasNext())
{
def revenueLine = RevenueObject.next();
revenueLine.setAttribute('Test_c', 'Hello');
} Groovy Scripting
Error : Getting null value for Revenue object

Error
Exception in expression "OpportunityEO" trigger "getRevenueItems" : groovy.lang.MissingMethodException : No signature of method: oracle.jbo.server.ViewRowSetIteratorImpl.size() is applicable for argument types: () values: [] Possible solutions: is(java.lang.Object), find(), use([Ljava.lang.Object;), with(groovy.lang.Closure), sleep(long), find(groovy.lang.Closure)
at "OpportunityEO" trigger "getRevenueItems" line 7
 
Error
No signature of method: oracle.jbo.server.ViewRowSetIteratorImpl.size() is applicable for argument types: () values: [] Possible solutions: is(java.lang.Object), find(), use([Ljava.lang.Object;), with(groovy.lang.Closure), sleep(long), find(groovy.lang.Closure)
Loading...