plugins icon indicating copy to clipboard operation
plugins copied to clipboard

Add Orgchart COMPONENT

Open jtab87 opened this issue 2 years ago • 5 comments

jtab87 avatar Nov 29 '23 09:11 jtab87

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

melohagan avatar Dec 20 '23 16:12 melohagan

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 avatar Dec 23 '23 09:12 jtab87

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

jtab87 avatar Feb 06 '24 10:02 jtab87

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.

melohagan avatar Feb 06 '24 11:02 melohagan

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

jtab87 avatar Feb 15 '24 09:02 jtab87