on 10-20-2008 5:38 AM
hi all,
my requirement is like ,whenever i select my step in a roadmap it has to be set in yellow color and others has to be in default color.
thanks,
Siva.
Hi......
Its Very Simple......
Create an action for the road map.
for example..... if you have three step in it....
by default the first step will be in active only...
ie., Yellow colour
if you click the second step and it should be active means.... if you have to create a event....in the property of the Roadmap
Create the on action select event....
in that event.....
try to use this code.... based on your scenario.....
set context data
DATA: road_node TYPE REF TO if_wd_context_node,
road_data TYPE if_componentcontroller=>element_roadmap.
road_node = wd_context->get_child_node( 'ROADMAP' ).
road_data-step = step.
IF step = 'CHOOSE'.
road_data-prev_enabled = abap_false.
ELSE.
road_data-prev_enabled = abap_true.
ENDIF.
IF step = 'END'.
road_data-next_enabled = abap_false.
ELSE.
road_data-next_enabled = abap_true.
ENDIF.
road_node->set_static_attributes( road_data ).
navigation
wd_this->fire_navigate_evt( step ).
Hope this will help you
Thanks & reagrds
Raja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
self
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Siva,
I think i.e the default property it has the selected step has yellow color.
check this program
WDR_TEST_EVENTS test this application.
Also check this demo program DEMO_ROADMAP
check this article.
Edited by: suman kumar chinnam on Oct 20, 2008 7:16 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.