New Checkbox Tree parent item

Greetings,

When using the manual mapping mode, the structure is built based on value, label, key and parent key.
the hierarchy is built based on the structure of Key <- Parent Key and is independant of the label structure.

When we use the new CheckBox Tree with a mapped datasource, the hierarchy is built based on the label structure (Label <- Parent Label ), the value is a unique ID and the keys don't appear.

While the manual mode is great and flexible, the mapped mode is not that easy to handle.
Could you make the mapped mode being structured like the manual mode, please.

Regards

1 Like

+1

This threw me for a loop as I was trying to understand how the new component works. I was trying to use the manual example for implementing mine using a mapped datasource and it didn't make sense. Your post helped me figure it out!

1 Like

But did you succeed to build a consistent tree ?
On my side I just can't.

Yes I have a checkbox tree working as I expect when I utilize the label and parent label relationship:
image
image

Can you specify what you mean by "consistent tree"?

basic Bill of Material use case :
i.e. : an assembly can use several spare parts and this assembly can be used in several finished products.
I have to use this assembly several times in the tree but I must display the same label

Ah so you are referring to the issue where the same label value cannot be multiple distinct elements in the tree when using the mapped mode?

Is this a good example of a BOM where there are repeated names under different parents? i.e. Screws or Fan

Desktop Computer
├── Case
│ ├── Side Panel
│ ├── Front Panel
│ ├── Screws
│ └── Fan
├── Motherboard
│ ├── CPU
│ ├── RAM
│ ├── Fan
│ ├── Capacitor
│ └── Screws

If I understand correctly, the core of the issue is that the new component requires each Label to be unique in order for Parent label to retain referential integrity. And @cvo - you're running into a use case that requires duplicates, which would be possible using keys instead of labels?

Hi,

Yes, that's it : multiple parallel hierarchies can contain same elements or even parts of a treelist.
This is the case when you handle a BOM or a general ledger.
This capability makes the difference between an ERP and a solution that can only handle project management and CRM.

I guess this is why newcomers over the last 2 decades didn't succeed to replace ERP leaders like SAP or Oracl.,They just neglicted this feature.

So please, take the time to improve the treegroup, table and sankey chart components in the way they manage hierarchies.

Regards

to sum up, please use the same structure in the manual and the mapped mode : value, label, key, parentKey
Thanks

Regards

That makes sense! I'll take this feedback to the team and provide an update here as soon as possible. :+1:

1 Like