cancel
Showing results for 
Search instead for 
Did you mean: 

Roadmap : color change of selected step

Former Member
0 Kudos

Hi All,

I am using roadmap in my application.... but in that when my step changes,then its color does not change i.e. i am not able to differentiate the selected step from the rest of steps.

I have binded the selected step property with the context node.

Thanks in advance...

Accepted Solutions (1)

Accepted Solutions (1)

S-H
Active Participant
0 Kudos

Hi Vishal,

We have associated a context attribute to the SelectedStep property of the RoadMap UI element. When we change the roadmap step then make sure to change this attribute content to new step.

Best regards,

Suresh

Former Member
0 Kudos

hi suresh,

the attribute content is being changed.......... actually my roadmap is working fine.... whenever i select step2 then the view related to that step is being shown...but the color of the box(step) is not being changed

former_member196517
Contributor
0 Kudos

Hi Vishal,

Is your roadmmapstep element property 'visible' is checked.

Regards

Anuj

Former Member
0 Kudos

Hi Anuj,

Yes, the 'visible' property is set for all roadmapstep elements....

Answers (5)

Answers (5)

Former Member
0 Kudos

if this is done close the thread and give the points.

Nirad

Former Member
0 Kudos

I resolved by adding source mapping of step parameter to selectedStep.

Former Member
0 Kudos

Hey Vishal these r the steps ,

1.Define a node with attributes Step & Next Step.

2.When ever you click on next Button , in event handler call this method .

wd_Comp_Controller->Continue( ).

3. In Method Continue() code this.


Node_Roadmap = wd_Context->get_Child_Node( Name = IF_COMPONENTCONTROLLER=>wdctx_Roadmap ).

* get element via lead selection
  Elem_Roadmap = Node_Roadmap->get_Element(  ).

* get single attribute
  Elem_Roadmap->get_Attribute(
    exporting
      Name =  `STEP`
    importing
      Value = Item_Step ).

CASE Item_Step.
**Set Next step
When 'STP_DIMENSION'.
Stru_Roadmap-STEP = 'STP_INPUT'.
Stru_Roadmap-NEXT_ENABLED = abap_true.

*set next step
When 'STP_INPUT'.
Stru_Roadmap-STEP = 'STP_RESULT'.
Stru_Roadmap-NEXT_ENABLED = abap_false.

When others.
Stru_Roadmap-NEXT_ENABLED = abap_false.

Endcase.

Node_Roadmap->set_static_attributes( Stru_Roadmap ).

wd_this->fire_navigate_evt( Stru_Roadmap-STEP  ).

Former Member
0 Kudos

Hi,

Bind the SelectedStep Property of the roadmap to a context attribute named NODE.

Regards,

Shruthi R

Former Member
0 Kudos

Hi Vishal,

How do you catch which step has been clicked on the roadmap? I mean how do you know that in your onSelect event?

Former Member
0 Kudos

The onSelect event handler will have a parameter 'Step', which will give you the ID of the currently selected step.

Regards

Nithya