cancel
Showing results for 
Search instead for 
Did you mean: 

how to set the color for road map steps

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (3)

Answers (3)

raja_narayanan2
Active Participant
0 Kudos

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

Former Member
0 Kudos

self

uday_gubbala2
Active Contributor
0 Kudos

Hi Siva,

Did you manage to set the yellow color for the selected step and default color for the remaining steps? Share your solution in here so that it would also help the other members.

Regards,

Uday

Former Member
0 Kudos

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.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a092160b-6165-2b10-e9a2-d484e6b8...

Edited by: suman kumar chinnam on Oct 20, 2008 7:16 AM