2008 Dec 22 11:12 AM
Hi,
I want set green light for radibutton if i select that radiobutton. Could you please help me in this regard?
Thanks & Regards,
Venkat.
2008 Dec 22 12:11 PM
Any Help?
2008 Dec 22 11:18 AM
Hi, I do not think that you can change the color of radiobutton,
but you can display green light when the radio button is selected.
Try this one.
You can write icon 'icon_green_light ' when the radio button is selected.
Feel free to ask if u have any further query regarding this.
Thanks.
2008 Dec 22 11:24 AM
Selection-screen begin of block b1 .
SELECTION-SCREEN COMMENT 2(6) TEXT_001.
selection-screen end of block b1.
AT SELECTION-SCREEN OUTPUT.
IF PA = 'X'. " If the radio button is selected
WRITE ICON_GREEN_LIGHT AS ICON TO TEXT_001.
modify screen.
endif.
2008 Dec 22 12:11 PM
2008 Dec 22 12:19 PM
hi,
Check this code..
type-pools icon.
Selection-screen begin of block b1 .
SELECTION-SCREEN COMMENT 2(6) TEXT_001.
parameter : r_pa type c radiobutton group gr1 user-command mode,
r_pa1 type c radiobutton group gr1 default 'X'.
selection-screen end of block b1.
AT SELECTION-SCREEN OUTPUT.
IF r_PA = 'X'. " If the radio button is selected
WRITE ICON_GREEN_LIGHT AS ICON TO TEXT_001.
modify screen.
endif.
2008 Dec 22 12:45 PM
Hi Avinash,
Thanks for Your reply. Green Icon light is coming properly. But, i want Radiobutton and Green icon light side by side. Presently it is coming on Top and Botom.
2008 Dec 22 1:16 PM
hi,
TYPE-POOLS icon.
SELECTION-SCREEN BEGIN OF BLOCK b1 .
SELECTION-SCREEN BEGIN OF LINE. " begin of line
SELECTION-SCREEN COMMENT 2(6) text_001.
PARAMETER : r_pa TYPE c RADIOBUTTON GROUP gr1 USER-COMMAND mode.
SELECTION-SCREEN END OF LINE. " end of line
PARAMETER : r_pa1 TYPE c RADIOBUTTON GROUP gr1 DEFAULT 'X'.
SELECTION-SCREEN END OF BLOCK b1.
AT SELECTION-SCREEN OUTPUT.
IF r_pa = 'X'. " If the radio button is selected
WRITE icon_green_light AS ICON TO text_001.
MODIFY SThanks & Regards
2008 Dec 22 1:27 PM
Hi,
You can try this,
SELECTION-SCREEN BEGIN OF BLOCK b1 .
SELECTION-SCREEN BEGIN OF LINE. "<= insert this
SELECTION-SCREEN COMMENT 1(5) text_001.
PARAMETER : r_pa TYPE c RADIOBUTTON GROUP gr1 USER-COMMAND mode.
SELECTION-SCREEN COMMENT 10(5) text_002.
PARAMETER : r_pa1 TYPE c RADIOBUTTON GROUP gr1 DEFAULT 'X'.
SELECTION-SCREEN END OF LINE."<= insert this
SELECTION-SCREEN END OF BLOCK b1.
AT SELECTION-SCREEN OUTPUT.
IF r_pa = 'X'. " If the radio button is selected
WRITE icon_green_light AS ICON TO text_001.
ELSE.
CLEAR text_001. "Clear the green icon
MODIFY SCREEN.
ENDIF.Regards,
Manoj Kumar P
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |