JC

Hi All,  I am new to ARIS report, I generated a report for IE data model and the part of report shows as following:  

Form Field

Content Field

Membership Number

LDA FundMbrNumber

Date of Birth

LDA BirthDate

Email Address

LDA Email

Street Address

LDA AddressLine1

Postcode

LDA Postcode

Suburb/Town

LDA Suburb

First Name

LDA GivenName

Miss/Ms/Mrs/Mr

LDA NameTitle

Mobile Phone

LDA MobileContactNumber

Surname

LDA FamilyName

Telephone (Home)

LDA HomeContactNumber

Gender M/F

LDA Sex

Membership Category

LDA FundMbrCategory

State

LDA State

In the model, the order for first column (Form Field) is



Membership Category

Membership Number

Miss/Ms/Mrs/Mr

Date of Birth

Gender M/F

First Name

Surname

Telephone(Home)

Mobile Phone

Email Address

Street Address

Suburb/Town

State

Postcode

We would like to get the report with same order listed in the models. Anyone can advise how to write the code to sort this column?

 

Thanks in advance!

 

by Vladimir Bis
Posted on Thu, 12/15/2011 - 10:08

Hi Jim,

I believe understand you. Try this script which sorts functions occurences by Y position in model:

var g_nLoc = Context.getSelectedLanguage();
var oModels = ArisData.getSelectedModels();

var oOccs = oModels[0].ObjOccListFilter(Constants.OT_FUNC);
oOccs = ArisData.sort(oOccs, Constants.SORT_Y, g_nLoc);
for (var o = 0; o < oOccs.length; o++){
    Dialogs.MsgBox(oOccs[o].ObjDef().Name(g_nLoc) + '\n' + oOccs[o].Y());
}

 

0
by Jim Cai Author
Posted on Thu, 12/15/2011 - 23:20

Hi Vladimir,

Thank you so much for your help. I will try it.

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