JN

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

by Vladimir Bis
Posted on Tue, 02/28/2012 - 09:02

Hi Jacques,

do you want to get objects from any group (and subgroups) and run this script on this group? 

0
by Jacques Naud Author
Posted on Tue, 02/28/2012 - 15:16

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

0
by Vladimir Bis
Posted on Tue, 02/28/2012 - 15:27

Do you want to create groups in group, where are source objects?

0
by Jacques Naud Author
Posted on Tue, 02/28/2012 - 18:54

I said yes because it's easy to view the change and also it's easy to transfert groups

I use IT Architect to do this.

Bye

0
by Vladimir Bis
Posted on Wed, 02/29/2012 - 08:54

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());
   }     
}
0
by Jacques Naud Author
Posted on Wed, 02/29/2012 - 17:25

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

 

0
by Vladimir Bis
Posted on Thu, 03/01/2012 - 08:25

Hi Jacques,

did you refresh navigation tree after script running?

 

0
by Jacques Naud Author
Posted on Thu, 03/01/2012 - 15:38

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

0
by Vladimir Bis
Posted on Thu, 03/01/2012 - 15:48

Hi Jacques,

green questionmark is ok, click on this, you understand.

Unfortunately, I don't know where is problem in script, but I have version 7.1. only...

0
by Jacques Naud Author
Posted on Thu, 03/01/2012 - 16:47

Hi Vladimir,

OK for green questionmark.

I will invest time soon to see what's wrong in my environment with this script.



Thank you for the time invested to help me.



Jacques

0
by Vladimir Bis
Posted on Fri, 03/02/2012 - 08:03

Hi Jacques,

you are welcome. Try to debug script and find out where is problem.

0
by Millicent Salas
Posted on Mon, 05/14/2012 - 13:01

Thanks for the given scripts. I found here the solution to one of my biggest problems at work;) Now I'm sure to succeed))

0

Featured achievement

Genius
You like to help others solve their problems by answering questions.
Recent Unlocks
  • KF
  • KH
  • RG
  • Profile picture for user Vee_ARIS
  • Profile picture for user smarty
  • 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