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();