how to retrieve line Item values from an object using groovy

kiruthiga September 25, 2014

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


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

 

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)

1 answer

0 votes
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 25, 2014

context?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events