on 02-22-2008 6:37 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For the created container RoadMap you have to insert RoadMapsteps for each views.
nikhil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.