Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Orgchart COMPONENT #51

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Add Orgchart COMPONENT #51

wants to merge 2 commits into from

Conversation

jtab87
Copy link

@jtab87 jtab87 commented Nov 29, 2023

No description provided.

Signed-off-by: jtab87 <144251775+jtab87@users.noreply.github.com>
Signed-off-by: jtab87 <144251775+jtab87@users.noreply.github.com>
@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.

None yet

2 participants