cancel
Showing results for 
Search instead for 
Did you mean: 

RoadMap API u0096 IWDRoadMap

Former Member
0 Kudos

Hello Guru's

I need to crate Roadmap that show something on step click

[1]->[2]->[3]

if onClick=1 =====> Show A

if .....

BUT when I listen onClick I cant catch which button pressed (and what I need Show).

One of the parameters in property's is SelectedStep .

In One of try I bind this parameter to Context but with out any (Positive) result .

any ideas????

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

wdDoModifyView(...)

if (firstTime)
{
  IWDRoadMap roadmap = (IWDRoadMap) view.getElement("<roadmapID>");
  roadmap.mappingOfOnSelect().addSourceMapping
  (
    "step" /*IWDRoadMap.IWDOnSelect.STEP*/, "selectedStep"
  );
}

Define an action parameter "selectedStep" in the action attached to the "onSelect" event, this will contain the ID of the selected roadmap step.

Armin

Former Member
0 Kudos

<i><b>Define an action parameter "selectedStep" in the action attached to the "onSelect" event, this will contain the ID of the selected roadmap step.</b></i>

I'm sorry its not understandable can you explain what you mean???

thank you.

Former Member
0 Kudos

Define an action in the view controller to react when a step is clicked.

Add a parameter "selectedStep", type "string", to this action.

At runtime, this parameter will contain the ID of the RoadMapStep UI element that has been clicked.

Armin

Former Member
0 Kudos

Hello Armin

I follow step by step but it's doesn't work .

I can't catch the step ID.

any ideas???

Former Member
0 Kudos

Hello Armin

sorry maybe it's not clear the paramenter is NULL

thnx

Former Member
0 Kudos

Evgeny,

Check that you give it (parameter) correct name: selectedStep in Armin's example.

VS

Former Member
0 Kudos

Hello VS.

Checked,everything is correct.

Former Member
0 Kudos

Hi,

Paste the whole code if possible.

Or paste the wdDoModifyView code and the road map s event handler code,

regards

Bharathwaj

Former Member
0 Kudos

GURU's thank you

everything arranged oneself.

Former Member
0 Kudos

Hi Valery,

Can you plz guide me with a step-by-step procedure for developing a RoadMap in my WD appl.

What kind of actions i need to associate with steps.

Thanks a lot in advance.

regards,

Ganesh

Former Member
0 Kudos

I have the same problem!!

I run into a Nullpointerexception when trying to initialize the step!!

public void wdDoInit()
  {
    //@@begin wdDoInit()
	  // initialize first step of road map
	  final String step1 = "RoadMapStep1";
	  wdContext.currentDialogDataElement().setSelectedStep(step1);
    //@@end
  }

Any Ideas/ Solutions on this one yet?

Thanks, JJJ

Former Member
0 Kudos

Did you fnd anything on this one?

Thanks, JJJ

Former Member
0 Kudos

What is the cardinality of node "DialogData"? Probably it should have cardinality = 1:1 and selection = 1:1.

Armin