setSortBy in Groovy is not allowed
Summary
setSortBy in Groovy is not allowedContent
Hi Team,
We are trying to execute a query and want to sort in descending but groovy is throwing below error the error,
ERROR MSG - "Warning(19,1) : The method setSortBy on class oracle.jbo.ViewObject is not permitted"
Please advise us to resolve the same.
Below is the script:-
def StartDate = StartDate_c
def EndDate = EndDate_c
def currentdate = adf.currentDate
println (currentdate)
def vo1 = newView('ProductsAndPrice_c')
def vc1 = newViewCriteria(vo1)
def vcr1 = vc1.createRow()
def vci1 = vcr1.ensureCriteriaItem('ProductNumber_c')
vci1.setOperator('=')
vci1.setValue(ProductNumber_c)
def vci2 = vcr1.ensureCriteriaItem('Status_c')
Tagged:
0