setSortBy in Groovy is not allowed
SummarysetSortBy in Groovy is not allowed
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
def vo1 = newView('ProductsAndPrice_c')
def vc1 = newViewCriteria(vo1)
def vcr1 = vc1.createRow()
def vci1 = vcr1.ensureCriteriaItem('ProductNumber_c')
def vci2 = vcr1.ensureCriteriaItem('Status_c')