on 03-30-2015 4:54 PM
Hi at all,
I have a little question concerning the id of my splitapp. I created a Component like it is described in the UI5 SDK - Best Practises section. There I created an App.view.xml with a SplitApp-Control with the id "idAppControl". Everything works fine but during runtime the id is changing to "__xmlview0--idAppControl".
I want to use the id in my controller to change the UI, so do I need to use this generated id to work with? There has to be a way to use the id's that you settet up during devtime right?
Kind Regards
Dominik
in controller
this.byId("idAppControl")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Although I would advise to use references to ID's to a minimum, you could still reference it in XML views:
use this.getView().byId("idAppControl") instead
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you are using xml view,so the id is generated with the view id, if you use ur id some times won't work.so, use generated id.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.