Skip to content

Conversation

jtab87
Copy link

@jtab87 jtab87 commented Nov 29, 2023

No description provided.

@melohagan
Copy link
Contributor

Hey @jtab87

Thanks for this! Looks pretty cool although I'm struggling to get it to work:

Screenshot 2023-12-20 at 16 40 33

@jtab87
Copy link
Author

jtab87 commented Dec 23, 2023

Hey, @melohagan ,

You have associated the _id field with "ParentId", and the EMPLOYEE ID field with "id".
Sans titre

The ParentId field MUST be able to have ONE (only) null value, thereby identifying the root record. (see README.MD)
But in budibase, the _id field can never be null.
The plugin therefore does not identify a root record in your dataset, and does not display anything.

It would be better to match the _id column with the id field

Here is a working dataset:

id parentid name
1111 root <== parentid is empty: the plugin identifies the root record
2222 1111 node 1
3333 1111 node 2
4444 3333 node 2.1

@jtab87
Copy link
Author

jtab87 commented Feb 6, 2024

Bonjour @melohagan ,
have you tested the component again, following my answer ?

@melohagan
Copy link
Contributor

melohagan commented Feb 6, 2024

Hey @jtab87

I'm still not seeing anything appear. I think seeing example data tables and a screenshot of settings that work for you would help me configure it.

@jtab87
Copy link
Author

jtab87 commented Feb 15, 2024

Hey @melohagan

Here is an example data tables and a screenshot of settings that work for me
The data table : https://github.com/Budibase/plugins/files/14294180/orgchart.json


The settings
result1

Sample of image to put in the "image" column ...
img1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants