cancel
Showing results for 
Search instead for 
Did you mean: 

Highlighting of the Road Map Step

Former Member
0 Kudos

Hi ,

I have created a road map Ui element in my development.

But when I am selecting the road map steps , it is not getting highlighted .

I do not know the actual reason .

Kindly let me know .

Best Regards

Sid

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Assign an action "StepSelected" to the RoadMap.<i>onSelect </i>event and bind the RoadMap.<i>selectedStep </i> property to a context attribute, say "SelectedStep".

Define an event parameter mapping from event parameter "step" to an action parameter, say "selectedStep". Either do it using the mapping editor or by code:

void wdDoModifyView(...)
{
  if (firstTime)
  {
    IWDRoadMap roadMap = (IWDRoadMap) view.getElement("ID-of-roadmap");
    roadMap.mappingOfOnSelect().addSourceMapping
    (
      "step", /* or IWDRoadMap.IWDOnSelect.STEP */
      "selectedStep"
    );
  }

In the action handler, you have to manually set the selected step to the new value:

void onStepSelected(..., String selectedStep)
{
  wdContext.currentContextElement().setSelectedStep(selctedStep);
}

Armin

maarten_duits2
Participant
0 Kudos

Hi,

Did you set the property "Design" of the roadmap to "selected"? If not then do and you will see that the roadmap step is selected.

Also see: <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/6a/38ac3e24d44513e10000000a114084/content.htm">SAP Help Roadmap</a>

Hope it helps.

Kind regards,

Maarten.