on 06-01-2009 4:11 PM
Hi,
I have 4 checkboxes and One Button in my Application.
If I press the Button,
I want my 4 check boxes to be selected. ( Like select all in Normal ABAP ).
Can you please tell me how can I do this?
Regards
Sandeep Reddy
Create context attributes CHKBOX1, CHKBOX2, CHKBOX3, CHKBOX4 for the checkboxes and bind it to the checkbox UI.
in the On click on button event set the attributes of the checkboxes as below.
l_elem->set_attribute( exporting name = 'CHKBOX1'.
value = 'X' ).
l_elem->set_attribute( exporting name = 'CHKBOX2.
value = 'X' ).
l_elem->set_attribute( exporting name = 'CHKBOX3'.
value = 'X' ).
l_elem->set_attribute( exporting name = 'CHKBOX4'.
value = 'X' ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sandeep,
You want to check all 4 check box when the button is clicked: For that create an attribute of WDY_BOOLEAN type and bind it with the checked property of all the check boxes. Now in the ONACTION method of the button, simply set the value of this attribute as 'X' with the help of code wizard (Ctrl+F7).
I hope it helps.
Regards
Arjun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are these checkboxes in a table column or individual uielements.
If individual uielements just set all the 4 attributes to X using the following code
data: l_elem type ref to if_wd_context_element.
l_elem = wd_context->get_element( ).
l_elem->set_attribute( exporting name = 'ATTRIBUTE NAME'
value = 'X' ).
If it is a table column, then modify the table by passing 'X' to the attribute and bind the table again.
Regards,
Radhika.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you have already bind the checkboxes to a context, then you can simple set the checkbox context attribute value as 'X' in the action of the button. It makes the checkboxes selected.
Regards,
Trikanth
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.