cancel
Showing results for 
Search instead for 
Did you mean: 

RoadMap

Former Member
0 Kudos

Hello..

I'm new to use the Web dynpro Netweaver studio..

I've written this code for Road Map.

But it isn't getting displayed on the browser..

jus the start & end point r getting displayed..

void onActionStepSelected()

{

String StepId = wdContext.currentContextElement

( ).getSelectedStepId();

if("RoadMapStep".equals(StepId))

{

wdThis.wdFirePlugToTrialV2();

}

else if("RoadMapStep1".equals(StepId))

{

wdThis.wdFirePlugToTrialV3();

}

else

{

}

}

Can ne1 pls guide me with this UI element...

Kriti

Accepted Solutions (0)

Answers (3)

Answers (3)

jrgen_bechtle
Participant
0 Kudos

Hi, Kriti

in order to switch to a dedicated step you need to map the event parameter to the action :

wdDoModifyView:

if (firstTime)

{

IWDRoadMap myRoadMap = (IWDRoadMap) view.getElement("RoadMap");

myRoadMap.mappingOfOnSelect().addSourceMapping(

IWDRoadMap.IWDOnSelect.STEP, // event parameter name

"step" // (type String)

);

}

then you need to create a parameter "step" in your action, and can retrieve the selected (roadmap-)step inside your action:

public void onActionRoadmapSelected(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String step )

{

//@@begin onActionRoadmapSelected(ServerEvent)

// take a look at wdDoModifyView for how to get to know where the parameter "step" comes from.

//DEBUG IWDMessageManager msgMgr = wdComponentAPI.getMessageManager();

//DEBUG msgMgr.reportSuccess("step:"+ step);

if ( step.equalsIgnoreCase(IPAVApplicationConstants.ROADMAP_INSERT) ){

wdContext.currentDisplayElement().setSelectedStep(IPAVApplicationConstants.ROADMAP_INSERT);

wdThis.wdFirePlugToSelectionCriteriaInputView();

...

it is in fact documented (i have been searching for a few hours too...) https://help.sap.com/javadocs/NW04S/current/wd/index.html

IWDRoadmap.mappingOfSelect method....

enjoy,

Jürgen.

xxxxxxxxxxxxxxxxxx

Edited by: Armin Reichert on Apr 10, 2008 8:19 PM

nikhil_bose
Active Contributor
0 Kudos

For the created container RoadMap you have to insert RoadMapsteps for each views.

nikhil

Former Member
0 Kudos

've added roadmap steps for wach view..!! but still there's no result..

Former Member
0 Kudos

There are two kinds of RoadMapStep instances: single-step and multiple-step. Which ones have you added to the RoadMap element?

Armin

Former Member
0 Kudos

Hi,

You need to add road map steps

To do this

Right click on the road map ui element and select Insert Step.

Regards

Ayyapparaj

Former Member
0 Kudos

Hey thanks,

i've already done that..

but stil no result..!!

ne other way out for the roadmap??