Hi All,
I have used the [Hierarchical Tree(Organisation chart)] component to build an Organogram. All the data was was uploaded and mapped. When I publish it completes with no errors but when I view it in the browser I receive the above error.
I am stumped with this error as I am not a developer and I am learning as I go along.
Any assistance would be helpful.
Regards,
Nisaar
Hi Nisaar,
The reason for the encountered js exception is because of the hard-coded div/container Id referenced in the initialization JavaScript node defined in the HierarchicalTree CW block implementation as shown below.
Note: The platform automatically assigns generated ids for every OutSystems widget that has its Name property assigned.
Refer to the attached updated oml which also includes the refactored HierarchicalTree block implementation.
See this demo screen: OrganizationalHierarchicalTree
I hope this helps you!
Kind regards,
Benjith Sam
Hi Benjith Sam,
Thank you so much.
I am learning so much as I go along. You are awesome!
You're welcome, Nisaar.
Glad to help you :)
Seems like your attachment is corrupted, can you upload it again?
Also, you would get an answer more quickly if you post this question in the support section of the component: https://www.outsystems.com/forge/component-discussions/11900/Hierarchical+Tree(Organisation+chart)
I see that you actually posted another question there before :)