Hi all,
im relativly new Aris user and im trying to create a report extracting some attributes from EPC row display model into excel.
i have it in model level and i wonder if there is a way to made some changes and extract it per group?
the report is extracting following data:
- model name
- object name
- object description
- organizational unit/ application system type
any help would be great.
thanks in advance.
Hi Eyal,
welcome to the world of ARIS reporting;-)!
What I need to know is: are you creating a report by scripting or using the WYSIWYG editor?
I'm not sure what you want to know. Can you please explain what you exactly mean?
Do you want to start your report on group level?
Regards
Eva
thanks for the fast rewply Eva and for the welcoming :-)
i have a report which run per model extracting the data described above.
i need to apply it to a large amount of flows and i wanted to know, if i can somehow by coding make it run iterativly on all models under a group/ sub groups.
im using Java script.
thanks again
You're welcome :-)!
Yes, that is possible for groups in the following way:
var g_nLoc = Context.getSelectedLanguage(); var oSelGroups = ArisData.getSelectedGroups(); for(var i=0; i<oSelGroups.length; i++){ var oModels = oSelGroups[i].ModelList(); for(var j=0; j<oModels.length; j++){ var oModel = oModels[j]; //output of the attribute values..... } }
I hope this will help you. If you have further questions please feel free to ask me.
Hello Eyal,
Additionally to the change in the script code itself suggested by Eva, you will need to change the context of the script in the script properties to capture "Group" as well as "Model":
Also, the above suggestion of code will look in the selected groups but not in the subgroups of those. You would need to include a piece of code to take care of that bit:
// iterate through oChilds1
var ochilds1 = null;
var ochilds1obj = null;
var i4 = 0;
ochilds1 = oSelGroups1obj.Childs(true);
for( i4 = 0; i4 <= (ochilds1.length - 1); i4++ ){
ochilds1obj = ochilds1[i4];
- - - - - - - - - - - - -
Alternatively, you can use the "Find" functionality - select a group where you want the search to begin and look for all models (possibly restrict the model type) in that group and its subgroup. The result of this action will give you a list of models that can all be selected. Now you can run your script on all these models, without needing to change the context in the script to include "Group".
I hope this helps
Regards / Harry