Skip to Content

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

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Dec 27, 2017 at 04:15 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded