cancel
Showing results for 
Search instead for 
Did you mean: 

How to get step selected in roadmap dynamically?

siongchao_ng
Contributor
0 Kudos

Hi all,

Anyone knows how to get stepselected in a roadmap dynamically?

In my wddomodifyview, I created a roadmap.

  • create roadmap

lv_id = 'ROADMAP'.

CALL METHOD cl_wd_road_map=>new_road_map

EXPORTING

  • ACCESSIBILITY_DESCR =

  • BIND_ACCESSIBILITY_DESCR =

  • BIND_ENABLED =

  • BIND_END_POINT_DESIGN =

  • BIND_SELECTED_STEP =

  • BIND_START_POINT_DESIGN =

  • BIND_TOOLTIP =

  • BIND_VISIBLE =

enabled = abap_true

  • end_point_design = cl_wd_road_map=>e_end_point_design-standard

id = lv_id

  • ON_LOAD_STEPS =

on_select = 'ON_STEPSELECTED' --> action method

  • SELECTED_STEP =

start_point_design = cl_wd_road_map=>e_start_point_design-standard

  • TOOLTIP =

  • VIEW =

visible = cl_wd_road_map=>e_visible-visible

RECEIVING

control = ls_roadmap.

CLEAR lv_id.

Then I read my database table to add steps and substep to my roadmap. How do I pass my selected step/substep to the action method 'ON_STEPSELECTED?

Edited by: Siong Chao on Aug 27, 2010 5:55 AM

Edited by: Siong Chao on Aug 27, 2010 5:56 AM

Accepted Solutions (0)

Answers (2)

Answers (2)

siongchao_ng
Contributor
0 Kudos

just add an import parameter in the action method 'ON_STEPSELECTED' typed to the step which in my case is typed to znsc_roapmap-step.

Former Member
0 Kudos

Creating UI elements dynamically is not a preferred coding practice. You can create UI element statically and bind its properties like number of steps, visibility to contex nodes attributes.

Also as you mentioned you are creating roadmap in modifyview method, just ensure that it is created only once ( first_time = abap_true ) otherwise at every click this roadmap will be created.

You can get selected step of roadmap by help of method get_selected_step of class cl_wd_road_map.

Regards

Manas Dua

siongchao_ng
Contributor
0 Kudos

Hi Manas,

The problem in getting roadmap step, is once I clicked on a step on the roadmap, the action method 'ON_STEPSELECTED' is triggered. How do I pass value to there?

The get step method as you said required ID and INDEX, so how do I pass the ID and index to my action method?

Can you elaborate more? Thanks.

CALL METHOD ls_roadmap->get_step

  • EXPORTING

  • ID =

  • INDEX =

receiving

the_step =

.