You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

setSortBy in Groovy is not allowed

edited Jun 12, 2020 10:06AM in Sales 3 comments

Summary

setSortBy in Groovy is not allowed

Content

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:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!