title: SAP UI5 RadioButtonGroup if selected
body: <p>I'm currently trying to implement a routing with condition with UI5...</p>
  
  <p>This is my view.xml:</p>
  
  <pre><code>        &lt;VBox class="sapUiSmallMargin"&gt;
              &lt;RadioButtonGroup id="bgroup" columns="2" class="sapUiMediumMarginBottom"&gt;
                  &lt;buttons&gt;
                      &lt;RadioButton id="RB1" text="start with segmentation"/&gt;
                      &lt;RadioButton id="RB2" text="start with target group"/&gt;
                  &lt;/buttons&gt;
              &lt;/RadioButtonGroup&gt;
          &lt;/VBox&gt;
  
          &lt;m:HBox&gt;
              &lt;m:items&gt;
                  &lt;m:StandardTile title="End-of-Warranty" infoState="None" icon="sap-icon://car-rental" press="_onStandardTilePress"/&gt;
                  &lt;m:StandardTile title="End-of-Leasing" infoState="None" icon="sap-icon://car-rental"/&gt;
              &lt;/m:items&gt;
              &lt;m:layoutData/&gt;
          &lt;/m:HBox&gt;
  </code></pre>
  
  <p>That's what my .js file is looking right now:</p>
  
  <pre><code>sap.ui.define([
      "sap/ui/core/mvc/Controller"
  ], function(Controller) {
       "use strict";
  
       return Controller.extend("wizard.controller.page1", {
  
           _onStandardTilePress: function (oEvent) {
               var oapp = sap.ui.getCore().byId("dcw");
  
           oapp.to("idpage2");
           }
       });
       }
  )
  </code></pre>
  
  <p>At the moment, it's just navigating to idpage2 if you click StandardTile End-of-Warranty. The RadioButtons are not recoginzed, no condition.</p>
  
  <p>What I want to do: only navigate to idpage2 if RadioButton with id RB1 is selected. If RB2 is selected, navigate to idpage3. </p>
  
  <p>Any idea? Thank you</p>