cancel
Showing results for 
Search instead for 
Did you mean: 

lead selection in tree

joerg_arndt
Participant
0 Kudos

Hi friends,

I have a tree with 1 node and 2 treenodetypes.

There is 1 treenodtype = superclass and the childreen = class.

Both are filled by supply function.

No lead selection is set in the context for both.

It works fine under normal circumstances.

No I have added a refresh button there I can refresh the tree.

When I have opend a couple ot leaves in the tree I push

the refresh button and data are refreshed and the leaves are closed.

Now I open a leave and press a leave in the lower level I get short dump

complaining the missing lead selection.

When I set the lead selection in the context it works.

But when I use the lead selection, a leave is marked at the first

opening of the tree and when I press the marked leave, I get no data.

Is there a way to avoid either to set the lead selection or to get data at the first

press on the leave?

It only happens in a older version, like 7.0.

Thanks in advance.

Rg. Jimbob

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Are you talking about the Initialize Lead selection property in context node ? I would not change that.

when you fill the tree , i would just set the node->set_lead_selection_index( -1 ). by this you force the user to select a leaf to select and trigger the supply function for loading the children.

joerg_arndt
Participant
0 Kudos

Thanks Baskaran,

I take the way over the index.

Rg. Jimbob