Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

SET LEAD SELECTION

Hi All ,

I am generating dynamic dropdowns in my WDA .

Now I want to set the values in these dropdowns to particular index .

I am doing the following piece of coding :

Do n times

here n is the counter , that many dropdowns shud be generated


DATA : lv_node type string value 'SYS' .
  CONCATENATE lv_node wd_this->count_sys INTO lv_node.
  wd_this->count_sys = wd_this->count_sys + 1.


 DATA: dyn_node TYPE REF TO if_wd_context_node.
  dyn_node = wd_context->get_child_node( name = lv_node ).

after that my piece of code to genertate the dynamic node .

now I am using lead selection for each dropdown as follows

  dyn_node->set_lead_selection_index( lv_index ).
EndDo.
 

suppose Do ..EndDo runs 4 times , so 4 dynamic dropdowns are generated , suppose 1st dropdown is set to lead selction 5 , 2nd to 7th , 3rd to 1st and 4th to 10th

now the problem is the lead selection for all the dropdowns is set to the last dynamic dropdown index , ie in this case all the dropdowns are set to lead index 10 . can any 1 help me , how to set index correctly .

regards,

amit

Former Member
Not what you were looking for? View more on this topic or Ask a question