Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3167

How to get view object from control method

$
0
0

Hello Experts,

 

I have the following scenario:

1) A button is defined in view

2) An event handler is attached to the button ('onSubmit').

 

How can I get the view object from the onSubmit function?

 

this.getView() won't work because this is not the controller.

 

p.s

I can always get the view by sap.ui.getCore().byId("viewid") - but I don't want to use a constant name

 

Regards,

Omri


Viewing all articles
Browse latest Browse all 3167

Trending Articles


FLASHBACK WITH SIRASA FM AT GALGAMUWA 2022


Mp3 Download: Mdu - Mazola


Imitation gun was fired at motorist in Leicester road-rage incident


Ndebele names


MCKINNEY EMALINE “EMMA” OF WES...


Okra & Motia — The Workshop (Prod by Hammer)


Skint TV teen to be sentenced


Moondru Mudichu 19-09-2017 – Polimer tv Serial


YOSVANI JAMES Arrested by Miami-Dade County Corrections on Jan 10, 2017


Stories • Goddess Stepmom