Hello Friends,
I have created a DropDownByKey and binded it to the the attribute (ZDAYS) of context node (MY_PO_INV). I have set Property for cardinality as 1..1 and for Selection as 0..n. I tried 0..n and 1..1 as well. However, I do not get any value when I run the WD appl. I got once but, I don't remember what changes I made and it does not work now. Any help shall be appreciated.
I have written the below code in the WDOINT method and getting 3 records (Last 30 Days, Last 60 Days, Last 90 Days) in lt_days.
if ls_days IS INITIAL.
ls_days-value = 'Last 30 Days'.
ls_days-text = 'Last 30 Days'.
APPEND ls_days to lt_days.
endif.
if ls_days IS NOT INITIAL.
ls_days-value = 'Last 60 Days'.
ls_days-text = 'Last 60 Days'.
APPEND ls_days to lt_days.
endif.
if ls_days IS NOT INITIAL.
ls_days-value = 'Last 90 Days'.
ls_days-text = 'Last 90 Days'.
APPEND ls_days to lt_days.
endif.
DATA lo_nd_my_po_inv_info TYPE REF TO if_wd_context_node_info.
lo_nd_my_po_inv = wd_context->get_child_node( name = wd_this->wdctx_my_po_inv ).
lo_nd_my_po_inv_info = lo_nd_my_po_inv->get_node_info( ).
lo_nd_my_po_inv_info->set_attribute_value_set(
EXPORTING
name = 'ZDAYS'
value_set = lt_days ).
Thks & Rgds,
Hemal