<?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>topic Re: React on click first radio button in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/react-on-click-first-radio-button/m-p/12155973#M1977473</link>
    <description>&lt;P&gt;Maybe you could replace your radiobutton by parameters and simulate the radiobutton functionality. And with parameters you could set all to blank.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Apr 2020 14:44:02 GMT</pubDate>
    <dc:creator>FredericGirod</dc:creator>
    <dc:date>2020-04-28T14:44:02Z</dc:date>
    <item>
      <title>React on click first radio button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/react-on-click-first-radio-button/m-p/12155972#M1977472</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
  &lt;P&gt;I have a report with several radio buttons which are disabled dynamically based on the number of records in a internal table. The first radio button is always enabled (default). Now I want to click on the first radio button and execute a action (f.e. show popup). But when I click on the radio button nothing happens. When I have two or more radiobuttons (in the same group) and I click on the second then the action is fired. Now when I click on the first the action is also fired. &lt;/P&gt;
  &lt;P&gt;Is there a possibility to fire a event when the first radio button is already selected (at first run) and you click on it (without switching)? &lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;REPORT zstb_bijzondere_bepalingen.

DEFINE radio_but1.
  PARAMETERS:&amp;amp;1 RADIOBUTTON GROUP gr1 USER-COMMAND click DEFAULT 'X'.
END-OF-DEFINITION.
DEFINE radio_but2.
  PARAMETERS:&amp;amp;1 RADIOBUTTON GROUP gr1.
END-OF-DEFINITION.
radio_but1:new.
radio_but2:r1,r2,r3,r4,r5,r6,r7,r8,r9,r10,r11,r12,r13,r14,r15.
radio_but2:r16,r17,r18,r19,r20,r21,r22,r23,r24,r25,r26,r27,r28,r29,r30.

DATA: rad TYPE char3.
DATA: sy_index TYPE char2.

INITIALIZATION.
 count = 30.

AT SELECTION-SCREEN OUTPUT.

  sy-tfill = count. "THIS IS THE NUMBER OF RADIO BUTTONS THAT WILL BE CREATED
  sy_index = 1.
  LOOP AT SCREEN.
      CONCATENATE 'R' sy_index INTO rad.
      IF screen-name = rad.
        IF sy_index GT count.
          screen-active = '0'.
          MODIFY SCREEN.
          sy_index = sy_index + 1.
          CONTINUE.
        ENDIF.
        sy_index = sy_index + 1.
      ENDIF.
  ENDLOOP.

AT SELECTION-SCREEN ON RADIOBUTTON GROUP gr1.
*AT SELECTION-SCREEN.
  IF sy-ucomm = 'CLICK'.
    CASE 'X'.
      WHEN new.
        CALL FUNCTION 'POPUP_TO_CONFIRM'
          EXPORTING
            text_question = 'do you want to continue 2'.
      WHEN OTHERS.
        CALL FUNCTION 'POPUP_TO_CONFIRM'
          EXPORTING
            text_question = 'do you want to continue'.
    ENDCASE.
  ENDIF.
&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Apr 2020 14:33:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/react-on-click-first-radio-button/m-p/12155972#M1977472</guid>
      <dc:creator>MKusters</dc:creator>
      <dc:date>2020-04-28T14:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: React on click first radio button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/react-on-click-first-radio-button/m-p/12155973#M1977473</link>
      <description>&lt;P&gt;Maybe you could replace your radiobutton by parameters and simulate the radiobutton functionality. And with parameters you could set all to blank.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 14:44:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/react-on-click-first-radio-button/m-p/12155973#M1977473</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2020-04-28T14:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: React on click first radio button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/react-on-click-first-radio-button/m-p/12155974#M1977474</link>
      <description>&lt;P&gt;Please use the debugger!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 15:43:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/react-on-click-first-radio-button/m-p/12155974#M1977474</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-04-28T15:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: React on click first radio button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/react-on-click-first-radio-button/m-p/12155975#M1977475</link>
      <description>&lt;P&gt;That's the problem! It is not triggered on any place. &lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 16:52:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/react-on-click-first-radio-button/m-p/12155975#M1977475</guid>
      <dc:creator>MKusters</dc:creator>
      <dc:date>2020-04-28T16:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: React on click first radio button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/react-on-click-first-radio-button/m-p/12155976#M1977476</link>
      <description>&lt;P&gt;I don't really get your suggested solution. Do you have a example?  &lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 17:00:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/react-on-click-first-radio-button/m-p/12155976#M1977476</guid>
      <dc:creator>MKusters</dc:creator>
      <dc:date>2020-04-28T17:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: React on click first radio button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/react-on-click-first-radio-button/m-p/12155977#M1977477</link>
      <description>&lt;P&gt;You could do one of two things pretty easy:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Declare a further dummy radio-button dmy, that does nothing, but is selected by default&lt;/STRONG&gt;&lt;BR /&gt;Any change from dmy to another new or rx button will trigger the event&lt;BR /&gt;(After the first switch from dmy to new or rx, you could also hide dmy again)&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Implement the radio-button functionality yourself with using checkboxes instead.&lt;/STRONG&gt;&lt;BR /&gt;Declare ALL your radio-buttons as checkbox and have initially none of them checked by default:&lt;BR /&gt;PARAMETERS: &amp;amp;1 TYPE char1 AS CHECKBOX USER-COMMAND click.&lt;BR /&gt;Have a shadow table that stores the current values of checked vs. unchecked (e.g. TYPE TABLE OF CHAR1 or also by macro: DATA: &amp;amp;1 TYPE char1, whereas &amp;amp;1 is eg d1, d2, etc.)&lt;BR /&gt;AT SELECTION-SCREEN, compare the current values to the new values, if there is a change (more than one selected) deselect the one that was selected before.&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Tue, 28 Apr 2020 21:23:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/react-on-click-first-radio-button/m-p/12155977#M1977477</guid>
      <dc:creator>michael_piesche</dc:creator>
      <dc:date>2020-04-28T21:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: React on click first radio button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/react-on-click-first-radio-button/m-p/12155978#M1977478</link>
      <description>&lt;P&gt;Like that&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.sap.com/questions/1921769/radiobutton-clear-default-selection.html"&gt;https://answers.sap.com/questions/1921769/radiobutton-clear-default-selection.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 05:10:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/react-on-click-first-radio-button/m-p/12155978#M1977478</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2020-04-29T05:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: React on click first radio button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/react-on-click-first-radio-button/m-p/12155979#M1977479</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;michael.kusters2&lt;/SPAN&gt;, please follow up on your open question.&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;comment answers or your question if there are still open issues.&lt;/LI&gt;&lt;LI&gt;otherwise mark an answer as accepted if it helped you solve your problem&lt;/LI&gt;&lt;LI&gt;or post an answer of yourself and accept it if you found another useful solution yourself&lt;/LI&gt;&lt;LI&gt;or redirect your question to another question that is related and was useful to solve your problem&lt;/LI&gt;&lt;LI&gt;in the end, close your question&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 13 May 2020 15:46:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/react-on-click-first-radio-button/m-p/12155979#M1977479</guid>
      <dc:creator>michael_piesche</dc:creator>
      <dc:date>2020-05-13T15:46:45Z</dc:date>
    </item>
  </channel>
</rss>

