on 07-10-2007 10:49 AM
Hi I have created a select options with the property read only = true by default, If a condition at the beginning is fulfilled I want to change the property read only of the previous field to false. I am doing it in the following way:
DATA lt_range_table TYPE REF TO data.
Data from select options
rt_objid = wd_this->m_handler->get_range_table_of_sel_field( i_id = zdcl_wdr_matriz_decision_asf=>e_atrib_m_dec_asf-grupo_form ).
ASSIGN rt_objid->* TO <fs_objid>.
Create range tabl
lt_range_table = wd_this->m_handler->create_range_table( i_typename = zdcl_wdr_matriz_decision_asf=>e_atrib_m_dec_asf-tipo_d ).
DATA: id TYPE string.
id = zdcl_wdr_matriz_decision_asf=>e_atrib_m_dec_asf-tipo_d.
REPLACE ALL OCCURRENCES OF REGEX '\W' IN id WITH '_'.
IF NOT <fs_objid> IS INITIAL.
update property
wd_this->m_handler->upd_selection_field(
i_id = id
it_result = lt_range_table
i_read_only = abap_false ).
ENDIF.
What is wrong here please?
Help really appreciated
Hi Jorge.
Why do you perform the replacement? Are you sure, that the ID you used while adding the field is the same as the one you use for updating? What is the rror or does just nothing happen?
Cheers,
Sascha
Message was edited by:
Sascha Dingeldey
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sascha,
Forget about replacement, it was a thing from my desperated last test case, I have omitted the replacement, and I am using now the same ID that i used in the addition.
The result from this is not a error, it is just that nothing happens, the field still continue disabled.
Thanks for the reply!
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.