TD

Hi I try to build an Report for ARIS exporting XML I want the content to be sorted by the groupname:

 

function getSelection() {
    selection = ArisData.getSelectedDatabases();
    if (selection.length > 0) selection = [selection[0].RootGroup()];       // Database selected -> return main group

    if (selection.length == 0)
        selection = ArisData.getSelectedGroups();
       
    
    if (selection.length == 0) selection = ArisData.getSelectedModels();
    if (selection.length == 0) selection = ArisData.getSelectedObjDefs();
     selection = ArisData.sort(selection, SORT_GROUPNAME, loc);
    return selection;
} 

 

When I start the report I get an RefferenceError SORT_GROUPNAME is not defined. Does anybody get the Same problem, the ARIS Help says SORT_GROUPNAME is a "normal" criteria.

 

Regards

Tobias

by Nikolai Zorin
Posted on Thu, 10/18/2012 - 02:29

Tobias,

it has to be Constants.SORT_GROUPNAME

Regards,

Nikolai

0
by Tobias Doll Author
Posted on Thu, 10/18/2012 - 11:13

Hi Nikolai,

 

unfortunaty the error keeps to be the same...

 

Regards

Tobias

0
by Torsten Haase
Posted on Fri, 10/26/2012 - 10:51

Hi Tobias,

if you correct your script, if will run without any error.

BR, Torsten

 

var loc = Context.getSelectedLanguage()
var x = getSelection()

function getSelection() {
    var selection = ArisData.getSelectedDatabases();
    if (selection.length > 0) selection = [selection[0].RootGroup()];       // Database selected -> return main group
 
    if (selection.length == 0)
        selection = ArisData.getSelectedGroups();
        
     
    if (selection.length == 0) selection = ArisData.getSelectedModels();
    if (selection.length == 0) selection = ArisData.getSelectedObjDefs();
     selection = ArisData.sort(selection, Constants.SORT_GROUPNAME, loc);
    return selection;
}
0

Featured achievement

Rookie
Say hello to the ARIS Community! Personalize your community experience by following forums or tags, liking a post or uploading a profile picture.
Recent Unlocks

Leaderboard

|
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon icon-lock