Hi everyone I need help.
I use IT Architect 7.2 and I need to create multiple groups from objets (more than one hundred groups).
Ideally, the name of each group would be named differently and that, from an attribute of each object
example:object AST name ast1, ast2, bst1, ...
create group with name : user attribute text A1, A2, B1, ...
Do you have a solution and if so, how?
Thanks
Hi Vladimir,
Currently the objects are in 4 various groups or under--groups. Ideally, script should be carried out starting from a search for objects to generate these groups. As I do not have many groups, I could carry out script several times on each group.
As I am not a programmer, I use primarily the editor of report.
Thank you to have answered quickly.
Regard
Jacques
Jacques,
I made the first attempt, without subgroups for this moment. Run script on group. Is it what do you expect?
var oGroups = ArisData.getSelectedGroups(); for (var g = 0; g < oGroups.length; g++){ var oObjDefs = oGroups[g].ObjDefList(); for (var o = 0; o < oObjDefs.length; o++){ oGroups[g].CreateChildGroup(oObjDefs[o].Name(Context.getSelectedLanguage()), Context.getSelectedLanguage()); } }
Vladimir,
I did not have any result.. Here's what I did:
I created a test group where I moved objects (AST) resulting from a research
see Fig 1: Before running the report
I created a new report:
- context = Group and Objects
- output = RTF (I think it is not important)
- with layout (I think it is not important)
- I copied the code as in your message
- run the report on the test group without result
Fig 1: Before running the report and after for the result:
What I need to get after running the report: Groups creation from AST Objects
I have no need for the subgroup.
Sorry for the french language in these images but it's gave you a better idea.
JN
Hi Vladimir,
Yes I refresh navigation tree after running the script and to be sure, I close and reopen the database after script running without success.
When I double click on the script in the above message, I see ? at the end of the first line, is it normal ? :
Actually I use IT Arch vers SR 2011_01.
Bye