Version: 17.0.0-dev-18
Build #: 43680
Build Date: 2015-Apr-22 06:02:48 PM
Operating Environment: Windows 7 (6.1, amd64) / Cp1252 / en / US / Oracle Corporation 1.8.0_40-b26
Memory: Max=704,643,072; Total=275,251,200; Free=94,970,544; CPUs=8
References:
Package: com.aquafold.openapi.data
Interface: AQDataSet
Method : clearSorting()
Steps to reproduce:
Open attached clearsort.xjs file in ADS and Execute the script
OR
Execute the following script:
var dataSet = generateDataSet();
aqua.console.println("Printing Data Set:\n" + dataSet.renderText());
dataSet.setSortingAscending(0);
dataSet.sort();
aqua.console.println("Printing Data Set after sorting column 0:\n" + dataSet.renderText());
dataSet.clearSorting();
aqua.console.println("Printing Data Set after calling clear():\n" + dataSet.renderText());
//------------------------------------------------------------------------------
function generateDataSet(){
var ds = aqua.data.newDataSet(["shipcountry","freight","id"]);
ds.addRowWithValues("Asdfdsf","10000", "100001");
ds.addRowWithValues("ssdsfgfs","100","100002");
ds.addRowWithValues("msdsad","100000", "100003");
ds.addRowWithValues("gwee","10000", "100004");
return ds;
}
Actual Result: sorting does not cleared after using clearsorting()
Expected Result: clearsorting() method should work for applied sorting.
This is also observed in V15,V16 and ADServer.