20
Views
2
Comments
[Directory] Cascade/Append directory and Horizontal Relation
Question
Forge component by Francisco Afonso
25
Published on 12 Oct 2018

Hello,

Thank you for this component since it allows me to generate an organization structure. However, I have some problems with it.

The component allows to show and hide part of the structure. However, Iwant it to be able to cascade/append the list.

Ialready tried to do so with a screen action. But, the list record data is not complete on the said action. Even though,

the data in the preperation is complete. Is there a way to make the data show?

I want to be able to do this so that the structure will reshape it size dynamically whenever a structure is cascade/appended not hide/show.


Also is it possible to make a horizontal relation between one box to another? because for now its only able to make a top down relation between one box to another.


Thank you for this component and I hope these problems are able to be solved.

Regards,

Muhammad Syafiq

mvp_badge
MVP
Rank: #19

Hi Syafiq!

The component allows to show and hide part of the structure. However, Iwant it to be able to cascade/append the list.

Ialready tried to do so with a screen action. But, the list record data is not complete on the said action. Even though,

the data in the preperation is complete. Is there a way to make the data show?

I want to be able to do this so that the structure will reshape it size dynamically whenever a structure is cascade/appended not hide/show.

I don't exactly understand what you need?... When you create a new OrganizationUnit you need to Notify the parent so it can refresh the Preparation's GetOrganizationUnitsWithoutParents aggregate, and then Ajax Refresh the outer ListRecords. This is already implemented in the OrgChart Web Block by the way...

If you want to affect the shape of the tree that gets displayed, you need to manipulate the TreeList local variable defined in the OrgChart Web Block, and likely Ajax Refresh the Hierarchy Container.

These suggestions are educated guesses, based on examining how the Directory's Org Chart was implemented, I haven't used this before.

Also is it possible to make a horizontal relation between one box to another? because for now its only able to make a top down relation between one box to another.

From what I can see of the implementation, it is using https://github.com/wesnolte/jOrgChart that specifically targets hierarchies. So the short answer would be "no".

Usually an Org Chart is hierarchical... what are you trying to represent here that requires sideways relationships (a graph)?