Any ideas?
Based on what I see, you want to pass the view as a parameter to your delegate, and not create a new view.
Kind of like this:
class MyDelegate extends WatchUi.BehaviorDelegate { var view; function…
if you pass the view to the delegate, and updateValInputConfig is in the view, you just do
view.updateValInputConfig()
in the delegate.
Based on what I see, you want to pass the view as a parameter to your delegate, and not create a new view.
Kind of like this:
class MyDelegate extends WatchUi.BehaviorDelegate { var view; function initialize(v) { BehaviorDelegate.initialize(); view=v; } ... }
When you create the delegate, include the view as a parameter
Thanks for your answer Jim
I'd like to increment the value of _valInputConfigElement when a button is pressed. And the updateValInputConfig method can be used to update the text of a label.
if you pass the view to the delegate, and updateValInputConfig is in the view, you just do
view.updateValInputConfig()
in the delegate.
It works. Thank you so much.