How to find a widget in the view.ui after creation

236
1
Jump to solution
08-21-2019 04:18 PM
NickStapler
New Contributor II

I create my ui widgets in an enclosed function so i lose their reference when the function completes.

I want to be able to find these objects/variables without passing them globally.

For example, I want to find my sketch widget after creation and after it is no longer in the local scope.

0 Kudos
1 Solution

Accepted Solutions
SaschaBrunnerCH
Esri Contributor

Hi Nick,

At the moment you need to return the widget reference and use this. I have created an enhancement request to get the widgets from the view.ui in a future version of the API.

View solution in original post

1 Reply
SaschaBrunnerCH
Esri Contributor

Hi Nick,

At the moment you need to return the widget reference and use this. I have created an enhancement request to get the widgets from the view.ui in a future version of the API.

View solution in original post