Skip to main content
10-Marble
May 12, 2017
Solved

How to create tree using code only without Tree entity?

  • May 12, 2017
  • 11 replies
  • 5144 views

Hi All,

How to create tree using code only without Tree entity?

Best answer by ankigupta

Hi Bhuwaneshwar Gupta​,

Change row.from = undefined;

row.from ="Root"

Root can be any value. We just need to add the same in the Tree widget -> RootParentId property.

I hope it helps.

11 replies

5-Regular Member
May 12, 2017

Hi Bhuwaneshwar Gupta​,

As per my understanding tree widget is a nested infotable with Parent as String and child as infotable (  Datashape same as parent). So, you can try to code accordingly.

I hope it helps.

bgupta-210-MarbleAuthor
10-Marble
May 12, 2017

Hi Ankit,

Can you share me  some chunk of code for this?

5-Regular Member
May 15, 2017

Hi Bhuwaneshwar Gupta​,

Are you looking for the insert, delete functions in the Tree Infotable?

I don't have a sample code available for same.

bgupta-210-MarbleAuthor
10-Marble
May 12, 2017

Hi Ankit,

Can you share me  some chunk of code for this?