on 03-17-2009 8:20 AM
Hi,
I have created a checkbox group element and I need to know which check box is selected based on which I need to make some columns in the table visible.
So, How can I do the need?
Any code will be useful.
With Regards
Tenzin
I have got the answer using that index and set some attribute to x based on the index retrieved.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tenzin,
check the standard component - WDR_TEST_EVENTS for the check box group.
Within this component you will get your solution.
Regard
Manoj Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tenzin,
Use the following code to get the index of the check box clicked.
data:
index type string.
index = wdevent->get_string( 'INDEX' ).
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.
Hi,
You can use use method GET_STATE .
I hope it will help You.
regards,
rohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
Here, you can write the below code in the OnToggle of CheckBoxGroup.
->Create an Attribute Store in Component Controller of type String_table.
->Now in this Attribute (store) , you will be having all the indexes of CheckBox.
data:
index type string,
checked type string.
index = wdevent->get_string( 'INDEX' ).
checked = wdevent->get_string( 'CHECKED' ).
if checked = 'X'.
APPEND index to WD_COMP_CONTROLLER->store.
endif.
I hope it helps.
Thanx.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.