on 04-16-2013 5:17 PM
Hello,
I have a requirement to check a "Team shopping cart" check box by default.
The check box value is binded to TEAM_SHOPPING_CART_SEL variable in the context CONTENT.
When i try to set default value for TEAM_SHOPPING_CART_SEL in WDDOINIT of the view, nothing happens.
Here is the coding:
DATA: lv_context TYPE REF TO if_wd_context_node,
lv_element TYPE REF TO if_wd_context_element,
lv_value TYPE c .
lv_context = wd_context->get_child_node( name = wd_this->wdctx_content ).
lv_element = lv_context->get_element( ).
CALL METHOD lv_element->set_attribute
EXPORTING
name = 'TEAM_SHOPPING_CART_SEL'
value = abap_true.
Any suggestions?
Thanks,
Hazem DAOUD
Hi,
Please check if its binded directly to the context element or to its property.
-Manish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Hazem,
I hope the type of team_shopping_cart_sel is wdy_boolean............then try. if still its not works than try as below.........it should work.
CALL METHOD lv_element->set_attribute
EXPORTING
name = 'TEAM_SHOPPING_CART_SEL'
value = 'X'.
thanks and regards,
narayan
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.