Override KeyDown on tree component

Is there a way to trigger an onClick event of an element like tree from a button sitting next to the tree?

Ideally I would have a button called next which lets user click it and the onClick event of the tree would occur on the next item in tree.

I have logic in the button that will actually change the tree selection but it is not triggering the selectionData properties of the tree to update.

Perhaps there is a better way to go about doing this; can't seem to find forum posts on this topic after trying a few times so I figured I would create topic. Will keep hunting and thanks for any ideas / guidance on what to experiment with.

No, you can't simulate clicks or execute onClick Events programatically. You do, however, sound like you have all of the pieces you need to pull the logic out of your onClick Event and put it into a program script, which you CAN then execute from anywhere - you would then just have your onClick Event execute that program script.

I think this is the crux of the problem. No way to do that from a script.

Ok thanks for the info; it helps me course correct.