on 02-08-2013 7:39 AM
Hi Experts,
I have 2 radio buttons and 10 select options fields,If i select 1st radio button then first 1 to 5 select options fields should be read only (abap_false) and 5 to 10 fileds should be read only (abap_true ) in the same way if i select 2nd radio button the 5 to10 fields should be read only (abap_false) and 1 to 5 fields should be read only (abap_true ).
Please provided me Required information.
Thanks & Regards.
Krishna.
Bind each radio button to a variable (v_rb1, & v_rb2). Then, link the read_only property of the first set of fields to v_rb1 and link the same property of the second set of fields to v_rb2.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Krishna,
You can use ADD_SELECTION_FIELD method in the interface IF_WD_SELECT_OPTIONS. One of the parameter of the method is I_READ_ONLY, which you can set to make the field editable or read-only. This method you will call initial based on the initial value of radio button.
Now, on action of Radio button, you can use UPD_SELECTION_FIELD of the same interface and then set the I_READ_ONLY.
Hope this will help you. Thanks!
Regards
Abhinav Sharma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
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.