Budibase / plugins

A curated list of Budibase plugins 🔌 including data sources and components.
https://budibase.com/
181 stars 39 forks source link

Add Orgchart COMPONENT #51

Open jtab87 opened 10 months ago

melohagan commented 10 months ago

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 commented 10 months ago

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 commented 8 months ago

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

melohagan commented 8 months ago

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 commented 8 months ago

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