on 01-18-2011 6:38 AM
Hi,
How can we create radio buttons in the ALV tool bar?
Please give me any sample code to create radio buttons in the ALV tool bar. how to set the action for the radio buttons?
Regards,
Lakshmi.
Hi,
You can achieve this by generating Self-Defined Functions for ALV.
For that you need to, after calling Interface Controller method for ALV --
1. Set the ALV Header
2. Generate Toolbar Elements
3. Specify Properties for the Toolbar-Elements
4. Generating Objects for self-defined functions and assigning Toolbar-Elements for the Objects, and
5. Capturing Events triggered by Toolbar-elements.
This way you can meet your requirement.
Thanks.
Kumar Saurav.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use the CL_SALV_WD_UIE_CHECKBOX class for creating checkbox
ooeps it is not radio buttons.
Radio buttons are not defined in the inteface IF_SALV_WD_TABLE_CELL_EDITOR , so i think you cannot use it in ALV.
Edited by: Baskaran Senthivel on Jan 18, 2011 8:28 AM
Edited by: Baskaran Senthivel on Jan 18, 2011 8:29 AM
These are the classes present for adding toolbar elements. But there is nothing available for radio button.
CL_SALV_WD_FE_A_BUTTON Button in the Toolbar
CL_SALV_WD_FE_A_BUTTON_CHOICE ButtonChoice in the Toolbar
CL_SALV_WD_FE_A_CAPTION Interface Elements of the Toolbar That Contain Text
CL_SALV_WD_FE_A_DRDN_BY_INDEX Dropdown Listbox in Toolbar (Index)
CL_SALV_WD_FE_A_DRDN_BY_KEY Dropdown Listbox in Toolbar (KEY)
CL_SALV_WD_FE_A_DROPDOWN Dropdown Listbox in Toolbar
CL_SALV_WD_FE_A_INPUT Input Field in Toolbar
CL_SALV_WD_FE_A_LINK Hyperlink in Toolbar
CL_SALV_WD_FE_A_TOGGLE Toggle Button in Toolbar
CL_SALV_WD_FE_A_TOGGLE_BUTTON Toggle Button in Toolbar
CL_SALV_WD_FE_BUTTON Button in the Toolbar
CL_SALV_WD_FE_BUTTON_CHOICE ButtonChoice in the Toolbar
CL_SALV_WD_FE_DROPDOWN_BY_IDX Dropdown Listbox in Toolbar (Index)
CL_SALV_WD_FE_DROPDOWN_BY_KEY Dropdown Listbox in Toolbar (KEY)
CL_SALV_WD_FE_INPUT_FIELD Input Field in Toolbar
CL_SALV_WD_FE_INTERACTIVE User Interface Element in the Toolbar
CL_SALV_WD_FE_LINK_TO_ACTION Hyperlink in Toolbar with Defined Action
CL_SALV_WD_FE_LINK_TO_URL Hyperlink in Toolbar for Specific URL
CL_SALV_WD_FE_SEPARATOR Separator Between the UI Elements of the Toolbar
CL_SALV_WD_FE_TOGGLE_BUTTON Toggle Button in Toolbar
Or i am not sure but u can try implementing the abstract class CL_SALV_WD_FE_INTERACTIV in a custom helper class
and then use it in your applciation.
but i am not sure about it.
thanks
sarbjeet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
refer this document first for better understanding ...
now since you need radio button in your case
in the article they have shown the usage of button but you can use the following classes as per your requirements
cl_salv_wd_fe_button----
button ui element
cl_salv_wd_fe_dropdown_by_idx----
dropdown by index
cl_salv_wd_fe_dropdown_by_key----
drop down by key
cl_salv_wd_fe_input field----
input field ui element
cl_salv_wd_fe_link_to_url------link to url ui elemnt
cl_salv_wd_fe_toggle_button----
toggle button
cl_salv_wd_fe_seperator----
seperator
folow the link below for guidelines
[link|http://www.google.co.in/url?q=http://www.sdn.sap.com/irj/scn/index%3frid%3d/library/uuid/101df93f-4b5c-2910-14aa-9eb0338c2110%26overridelayout%3dtrue&sa=U&ei=Zzk1TZblK5OXcdWc4OcH&ved=0CBUQFjAA&usg=AFQjCNGJZeAjxBy_XLl5DZJ6jyTU8ZX_0A]
hope this may completely resolve your problem.
thanks and regards,
sahai.s
Edited by: sahai.s on Jan 18, 2011 9:06 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.