Business Transformation Customer Forum
Register
Unmasking the Reality of Operational Excellence
Register
ARIS Process Mining in action - Live Demo
Register

View all
Profile picture for user JeanMichel

Hello,

I started to create a  script which export the model types, bu I'm currently able to export only in a language...

Do you know How to selected all the languages ?

Thanks by advance

This is my current script

//Recup de la liste des langues

var languageList = ArisData.getActiveDatabase().LanguageList();

/***********************************************************************************************/

//******************************** Export des types de Modèles *********************************/

/***********************************************************************************************/

//BeginTable = Créer un onglet

g_outputExcel.BeginTable(150,Constants.C_BLACK,Constants.C_WHITE,Constants.FMT_LEFT | Constants.FMT_ITALIC,0);

g_outputExcel.TableRow(); //créer une ligne

//Créer les cellules

g_outputExcel.TableCellF("API Name" , 1, 1,"ENTETE");

g_outputExcel.TableCellF("Name ", 1, 1,"ENTETE");



//*************************** récupération des Types de modèle *********************************/

var modelType = ArisData.ActiveFilter().GetTypes(Constants.CID_MODEL);

for(var g=0;modelType!=null && g<modelType.length;g++){

    for(var l=0;languageList!=null && l<languageList.length;l++){

        var modelAPIName = ArisData.ActiveFilter().getAPIName ( Constants.CID_MODEL, modelType[g]);



        //Here, I have to get the ItemTypeName related to the language languageList[l]

        var modelName = ArisData.ActiveFilter().ItemTypeName( Constants.CID_MODEL, modelType[g])

        

        g_outputExcel.TableRow();

        g_outputExcel.TableCellF(modelAPIName , 40,"INFO");

        g_outputExcel.TableCellF(languageList[l].LocaleId() , 15,"INFO");

        g_outputExcel.TableCellF(languageList[l].Name(languageList[l].LocaleId()) , 15,"INFO");

        g_outputExcel.TableCellF(modelName , 70,"INFO");    

    }



}

g_outputExcel.EndTable("Model Type", 10, "Arial", 10, 0, - 1, 0, 136, 0);



/******************************************************************************/

/************************* ECRITURE DU FICHIER EXCEL **************************/

/******************************************************************************/

g_outputExcel.WriteReport();

 

Featured achievement

Question Solver
Share your expertise and have your answer accepted as best reply.
Recent Unlocks
  • BH
  • Profile picture for user Ivan.Ivanov.softwareag.com
  • Profile picture for user mscheid
  • MS
  • Profile picture for user syarafuddinhilmi
  • PacMan

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