cancel
Showing results for 
Search instead for 
Did you mean: 

Select_step problem in a dynamic Multiple RoadMap Step

Former Member
0 Kudos

Hi everybody,

I am working with a roadmap that dynamically assigns the number of steps from a data source assign to the multiple roadmap step. When I selected a step I am not being able to change the focus and yellow color to it. I already know which step the user selected by reading the context element assign to the multiple roadmap step, but what do I need to do in order to change the focus and color of it?.

I read other post that describe the same issue, and the answer was to change the lead selection of the roadmap, but when I tried to do it I receive a dump saying that I cannot change the lead selection.

This answered post [|] describes perfectly my problem and I already post the same question on it, but I think nobody reads it because the status of the post is answered..

Regards,

Eric

Edited by: Eric Hernandez Pardo on Aug 14, 2009 6:41 PM

Edited by: Eric Hernandez Pardo on Aug 17, 2009 12:36 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Eric,

Where are you exactly getting the dump? Your question in the other link says that you get an error with the value that you are passing.If you are still getting that error, then you need to pass the value within inverted commas.

e.g.

lo_nd_child->SET_LEAD_SELECTION_INDEX( '-1' ).

Cheers,

Arpan

Former Member
0 Kudos

Hi Arpan,

I'm getting the dump exactly at this point " lo_nd_roadmap->set_lead_selection_index( vl_index )". I maded a few test based on your comment, with and without the '-index value' and also changing the context node bind to the selected_step, when I use the context_node "mrs" (this context is bound to the multiple roadmap step) like the code above I get no errors at all, but the step is not getting mark, neither changes its color. In this case I get the dump if I added the '-2'.

If I bind another context to the selected_step of the roadmap and do the same procedure (replacing the wdctx_mrs for the new context) I get a dump at " lo_nd_roadmap->set_lead_selection_index( vl_index )" with the '2' or '-2' values.

Any sugestions?

DATA: lo_nd_roadmap     TYPE REF TO if_wd_context_node,
        lo_el_roadmap     TYPE REF TO if_wd_context_element.

* navigate from <CONTEXT> to <MAIN> via lead selection
  lo_nd_roadmap = wd_context->get_child_node( name = wd_this->wdctx_mrs ).

* get element via lead selection
  lo_el_roadmap = lo_nd_roadmap->get_element( ).


data: vl_element Type Ref To  IF_WD_CONTEXT_ELEMENT,
      vl_index type sy-tabix.

CALL METHOD lo_nd_roadmap->get_lead_selection_index
  receiving
    index  = vl_index.

vl_index = sl_roadmap-step_id.

  lo_nd_roadmap->set_lead_selection_index( vl_index ).

Regards,

Eric

Former Member
0 Kudos

Hi all,

I resolved my problem replacing the multiple roadmap step which an roadmap step.

Regards,

Eric.

PD: I'm still want to know how can I resolved this problem, so I will keep this post open.

Chaitanya_Priya
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Eric,

I too use Road Map in my WD Appl.

I first insert Road map and then inserted multiple Road map step UI element.

To change the focus of the selected road map step.

For example i have 3 Road map steps.

I created a node in context with 3 attributes of type Boolean.

i bind the each one attribute to the ENABLED property of the Road map step UI element

so on the Event ONSELECT we know which roadmap step is selected.

so accordingly u can change the focus of the roadmap step by making the corresponding attirbute ABAP TRUE OR ABAP FALSE .

Regards,

Priya

Answers (0)