NR
Hi All,
I am new to ARIS report.I just started to study scripting for the reports.
I would like to get the application name as sorting order.How to Sort order of application in an ARIS Script Report?
I got the sorted application name column but only two of them was unordered.Anyone can advise how to write the code to sort this column?
Here is my Code.
var oModels =model_group.ModelList (true);
oModels =ArisData.sort(oModels,1,g_nLoc);
for(var i=0;oModels.length >i;i++)
{
//
}
Please, If you can explain with an example.
Please suggest!
Thank you very much in advance!
Dear Nisha,
please use below code for sorting as per your requriment
oModels =ArisData.sort(oModels, Constants.AT_NAME,g_nLoc);//sorting based on name
or
oModels =ArisData.sort(oModels, Constants.SORT_GROUPHIERARCHY,g_nLoc);//Sorting of group list and model list by hierarchy
or
oModels =ArisData.sort(oModels, Constants.SORT_GROUPNAME,g_nLoc);//Sorting of group list and model list by group name
or
oModels =ArisData.sort(oModels, Constants.SORT_GROUPPATH,g_nLoc);//Sorting of group list and model list by the group path in the specified attribute language
Regards