on 08-27-2010 4:22 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 =
.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.