Skip to Content
0

static class access this.getView().byId("controlId))

Dec 27, 2017 at 12:16 AM

24

avatar image

hello,

i have a view that has some controls on it.

i have a bunch of methods that access the controls (using this.getView().byId("controlId)).

i want to move these methods from the controller to a utility/helper file ...

i cannot seem to access the controls from the helper static file/class.

any thoughts/suggestions greatly appreciated.

cheers

pas.

pas
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Arjun Biswas Dec 27, 2017 at 04:15 AM
1

Hi pas longo,

When you call your utility files function from your controller, you can send the ui controls as an parameter to the function.

Regards,

Arjun Biswas.

Share
10 |10000 characters needed characters left characters exceeded