How to get element's id of another view SAPUI5
<p>I have 3 views say first,second &amp; third. I need to access a vertical layout's id of second view from first view. For which I have used <code>sap.ui.getCore().byId("__xmlview1--spend_layt");</code> to retrieve it. It works but when I navigate to third view &amp; come back, id changes to <code>__xmlview28--spend_layt</code> &amp; the control not works. How to fix this?</p>

<p><strong>EDIT :</strong></p>

<p>First.view.xml</p>

<p><code>&lt;mvc:View xmlns:mvc="sap.ui.core.mvc" xmlns="sap.m" controllerName="budgetspend.controller.First" xmlns:html="http://www.w3.org/1999/xhtml"
    displayBlock="true"&gt;
    &lt;App id="BA_APP"&gt;
        &lt;pages&gt;
            &lt;HBox width="100%" height="100%" id="header_container"&gt;
                &lt;items&gt;
                    &lt;Image class="logo" src="../images/logo_new.png"/&gt;
                    &lt;Image class="header" src="../images/header-bg.png"/&gt;
                    &lt;html:ul class="tab"&gt;
                        &lt;html:li&gt;
                            &lt;html:a id="onBud" class="tablinks active"&gt;Tab 1
                        &lt;/html:li&gt;
                        &lt;html:li&gt;
                            &lt;html:a id="onSpend" class="tablinks"&gt;Tab 2&lt;/html:a&gt;
                        &lt;/html:li&gt;
                    &lt;/html:ul&gt;
                    &lt;mvc:XMLView viewName="budgetspend.view.second"/&gt;
                &lt;/items&gt;
            &lt;/HBox&gt;
        &lt;/pages&gt;
    &lt;/App&gt;
&lt;/mvc:View&gt;</code></p>

<p>In the second view, I use 2 vertical layouts. one for tab 1 &amp; another for tab 2. Only one visible at a time. Tab click events are written in First.controller.js. I don't know how to access ID's of vertical layouts(in second view) from First.</p>

<blockquote>
  <p>I am just exploring how standard html will work on SAPUI5 as I am aware of using <code>sap.m.IconTab</code>.</p>
</blockquote>