cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to generate a "Organization Chart" diagram using VB script in Org-Unit object

Arunakiri
Super Contributor

Hello ,

 

How to generate a "Organization Chart"  diagram  using VB script ( macro)  for Org-Unit object ?  We need it only for Org-Unit

 

Thanks in advance for your help !!

 

2 Replies

lmazurie
Honored Contributor

Hello,


The best way is to make a VB script (contextual on an object or what is called a Command Accessor) that is just creating or is organizing the tree (the creation of objects is possible but I suppose data are already created in MEGA db)
Create via VB a diagram of a predefined type and put at the top left corner (just a link) all the existing objects is easy (just create the association between the diagram object and the objects). Do not forget to tell that the diagram is "described" by the parent org-unit.
I advise you to use the Drawing / Reorganize Drawing and not trying to code the position of the object. For an organization chart I find that the hierarchical option of this function is good.
That's it.

 

 

 

 

 

Lionel Mazurié

SVanSchoonlandt
Honored Contributor

Can you elaborate a bit more what you try to accomplish?