<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: De-select radio button on navigation in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/de-select-radio-button-on-navigation/qaa-p/12635686#M4739992</link>
    <description>&lt;P&gt;Thanks Ashwin. I tried this and it worked&lt;/P&gt;</description>
    <pubDate>Thu, 19 May 2022 16:49:59 GMT</pubDate>
    <dc:creator>former_member337435</dc:creator>
    <dc:date>2022-05-19T16:49:59Z</dc:date>
    <item>
      <title>De-select radio button on navigation</title>
      <link>https://community.sap.com/t5/technology-q-a/de-select-radio-button-on-navigation/qaq-p/12635682</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;
  &lt;P&gt; I have a home page.From the home page,I navigate to the StatusManagement Home Page. On the statusManagement Home page, I select a id and I navigate to the another page with the id. This page shows me the list of radio buttons with the text. &lt;/P&gt;
  &lt;P&gt; The view code for the radio buttons is shown below.&lt;/P&gt;
  &lt;P&gt; &amp;lt;Label labelFor="group0" text="Select the next status that you want to transition the MatrixID" /&amp;gt; &amp;lt;RadioButtonGroup columns="1" id="group0" buttons = "{statusmodel&amp;gt;/ODataset/results}"&lt;STRONG&gt; selectedIndex= "-1"&lt;/STRONG&gt; width="500px" class="sapUiSmallMargin"&amp;gt;&lt;/P&gt;
  &lt;P&gt; &amp;lt;RadioButton id= "selbutton" text="{statusmodel&amp;gt;TARGET_CTRL_STATUS}" customData:targetStatusCode="{statusmodel&amp;gt;TARGET_CTRL_STATUS_CODE}" selected = "false"/&amp;gt; &lt;/P&gt;
  &lt;P&gt; &amp;lt;/RadioButtonGroup&amp;gt;&lt;/P&gt;
  &lt;P&gt; When I come for the first time to this screen , none of the radio buttons are selected which is what I want. I select a radio button and click on Submit. The controller takes care of the back end processing and then a success dialog message is shown and when the user clicks on OK it goes back to the status Management Home Page.&lt;/P&gt;
  &lt;P&gt; Again from the status Management Home page when I select the same id or a different id , whatever was the selected Index of the radio button on the previous navigation shows as selected. &lt;/P&gt;
  &lt;P&gt; Everytime I traverse to the screen with radio buttons I want all the radio buttons to be deselected.&lt;/P&gt;
  &lt;P&gt; Below is the routing code in the controller.&lt;/P&gt;
  &lt;P&gt; var oRouter1 = sap.ui.core.UIComponent.getRouterFor(that); &lt;/P&gt;
  &lt;P&gt; oRouter1.navTo("StatusTransitionManagement",{&lt;/P&gt;
  &lt;P&gt; ID : selectedID&lt;/P&gt;
  &lt;P&gt; },false); &lt;/P&gt;
  &lt;P&gt;What should I do to make sure that all radio buttons are deselected every time I go to that page.&lt;/P&gt;
  &lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 22:57:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/de-select-radio-button-on-navigation/qaq-p/12635682</guid>
      <dc:creator>former_member337435</dc:creator>
      <dc:date>2022-05-18T22:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: De-select radio button on navigation</title>
      <link>https://community.sap.com/t5/technology-q-a/de-select-radio-button-on-navigation/qaa-p/12635683#M4739989</link>
      <description>&lt;P&gt;Hi Lalitha,&lt;BR /&gt;&lt;BR /&gt;You can try this scenario:&lt;/P&gt;&lt;P&gt;Bind a property to the selected property of RadioButton. For example: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;RadioButton id= "selbutton" 
text="{statusmodel&amp;gt;TARGET_CTRL_STATUS}" 
customData:targetStatusCode="{statusmodel&amp;gt;TARGET_CTRL_STATUS_CODE}" 
selected = "{/isRadioButtonSelected}"/&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now, whenever you land on the radio buttons page, make the /isRadioButtonSelected property false. ( You can do that in your route-matched event handler).&lt;BR /&gt;You need to set your selected property as false whenever the route pattern is matched.&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 07:12:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/de-select-radio-button-on-navigation/qaa-p/12635683#M4739989</guid>
      <dc:creator>sonalika_porwal</dc:creator>
      <dc:date>2022-05-19T07:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: De-select radio button on navigation</title>
      <link>https://community.sap.com/t5/technology-q-a/de-select-radio-button-on-navigation/qaa-p/12635684#M4739990</link>
      <description>&lt;P&gt;Hi Lalitha,&lt;/P&gt;&lt;P&gt;You can also try this by adding below code in routeMatched Method of the view&lt;/P&gt;
&lt;STRONG&gt;var oIDRadioButtonGroup = this.byId("group0");
&lt;/STRONG&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;P&gt;&lt;STRONG&gt;oIDRadioButtonGroup.setSelectedIndex(-1);&lt;/STRONG&gt;&lt;/P&gt;&lt;/STRONG&gt;</description>
      <pubDate>Thu, 19 May 2022 07:45:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/de-select-radio-button-on-navigation/qaa-p/12635684#M4739990</guid>
      <dc:creator>ashwink02</dc:creator>
      <dc:date>2022-05-19T07:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: De-select radio button on navigation</title>
      <link>https://community.sap.com/t5/technology-q-a/de-select-radio-button-on-navigation/qaa-p/12635685#M4739991</link>
      <description>&lt;P&gt;Thanks Sonalika !&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 16:49:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/de-select-radio-button-on-navigation/qaa-p/12635685#M4739991</guid>
      <dc:creator>former_member337435</dc:creator>
      <dc:date>2022-05-19T16:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: De-select radio button on navigation</title>
      <link>https://community.sap.com/t5/technology-q-a/de-select-radio-button-on-navigation/qaa-p/12635686#M4739992</link>
      <description>&lt;P&gt;Thanks Ashwin. I tried this and it worked&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 16:49:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/de-select-radio-button-on-navigation/qaa-p/12635686#M4739992</guid>
      <dc:creator>former_member337435</dc:creator>
      <dc:date>2022-05-19T16:49:59Z</dc:date>
    </item>
  </channel>
</rss>

