Skip to Content
author's profile photo Former Member
Former Member

how to assign unique id to xml view if we use router

Hi,

I want to assign unique id to xml view such that I can read the controls of view with sap.ui.getCore().byId() process.Router is generating id dynamically. Please share the way to set unique id to view.

Read few threads but doesn't solve the issue.

Regards,

Koti Reddy

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Apr 26, 2016 at 12:55 PM

    why you need that?

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 26, 2016 at 12:48 PM

    your view id should be the name of the view itself (so if you have a view named: Master.view.xml.. your id should be Master.. if you are in the controller.. you can do... this.getView().getId()... or console.log(this.getView()) to see the properties of the view

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.