You need to sign in to do that
Don't have an account?
![Priya 212213 Priya 212213](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
Forming tree structure.
Hi all,
I have a scenario to build tree structure for an custom object which has its two own lookups(Parent and Alternate Parent).
I need to form a tree like
All there record has comes under same record of Custom obj 2.
My scenario is,
I have a scenario to build tree structure for an custom object which has its two own lookups(Parent and Alternate Parent).
I need to form a tree like
Parent
Child1
child a
abc 1 (For abc1, Child1 is Parent and child a is Alt Parent)
abc2 (for abc2, Child 1 is parent and no alternate parent).
All there record has comes under same record of Custom obj 2.
My scenario is,
For Custom obj2 named Plant1, then I have query all the records of Custom obj1 (Sites) and to display then as tree in lwc component.
Please suggest me ideas and share some code samples.
https://www.sfdcstuff.com/2017/10/lightning-tree-generic-lightning.html
https://rajvakati.com/2018/12/31/lightning-web-component-tree/
Thanks,