cancel
Showing results for 
Search instead for 
Did you mean: 

Road Map Control

Former Member
0 Kudos

Hi,

I need to define RoadMap in my wizard application and don't see enough documentation available. The first question - is there a way to define on step click action, to use RoadMap interactively. For example, click on particular box will change the view by displaying more details about this step.

Another question how to define RoadMap step dynamically, the number of steps is not fixed, user will be able to add steps, delete, and so on.

Thanks a lot.

Accepted Solutions (0)

Answers (1)

Answers (1)

detlev_beutner
Active Contributor
0 Kudos

Hi Tatyana,

please see and

Hope it helps

Detlev

Former Member
0 Kudos

Hi Detlev,

Thanks for your reply. Sure, I've made a search over forum before posting my question and found topics you mentioned. However, they didn't answer my questions...

detlev_beutner
Active Contributor
0 Kudos

Hi Tatyana,

> they didn't answer my questions...

Most of them they do!

(a) RM's are not designed as navigation elements. Pointed out by Stefan Klensch.

(b) Within the same thread there is a link to the API doc as well as mentioned that there are methods to add...

So as far as I can see, you have to define all possible RoadMapSteps at design time. At run time, you then can easily <i>remove(...)</i> or <i>add(...)</i> steps as you like.

What you cannot do, at least noone has mentioned it ever and I couldn't find it within JavaDocs, is to add a completely new step, i.e. creating an instance of a RoadMapStep.

If you have the need for that, address it to the product management, I would suggest...

Hope it helps

Detlev

Former Member
0 Kudos

A RoadMap step can be created at runtime like any other UI element. Note that UI elements can only be accessed in the method wdDoModifyView() of the view controller.


IWDRoadMapStep step = (IWDRoadMapStep) 
  view.createElement(IWDRoadMapStep.class, "stepId");
IWDRoadMap roadmap = ...;
roadmap.addStep(step);

Armin

detlev_beutner
Active Contributor
0 Kudos

Hi Armin,

great to know. It has been some months ago now that I have been deeper in WD development...

The problem with the API is, that this solution for it's generic cannot be found by APIDoc, where you normally look under "Use" which class returns an instance of this interface.

Would be an idea to add less generic factories, wouldn't it?!

Thanks & bye

Detlev

Former Member
0 Kudos

We indeed thought about typed factory methods. On the other hand, life is easier if you only have to know one method for creating any view element from any library, isn't it?

Armin

Former Member
0 Kudos

Hi Armin,

Thank a lot for explanation how to create steps in runtime. Predefined steps in design time were absolutely unacceptable in our case. We still have problem to implement our UI because of missing on-step action, and it looks really weird not to provide such a possibility. Road Map Component in HTMLB which looks the same way has on step click events and I don't see any reason why Web Dynpro is missing it, it's really a gap.

One of the solution I have in mind to provide a navigation is to use Road Map with next/previous buttons on the bottom of the view. So the navigation is done with these buttons and the RoadMap only shows the state-info. Which is not very beautiful but at least something...

Thanks,

Tatyana.

detlev_beutner
Active Contributor
0 Kudos

Hi Tatyana,

> One of the solution I have in mind to provide a

> navigation is to use Road Map with next/previous

> buttons on the bottom of the view. So the navigation

> is done with these buttons and the RoadMap only shows

> the state-info

That's exactly what I have done. Concerning implementation, you can put these buttons in their own view and integrate the view on the main view(s) (so reuse works...).

> Which is not very beautiful but at least something...

But this is how most install wizards on windows for example work (at least with the next/previous buttons). So it is at least not that unusual!?

> Road Map Component in HTMLB

Within BSP's? (I don't know them.) I'm just estonished as there is no RoadMap element in HMTLB for Java...

Have a nice weekend

Detlev

thomas_chadzelek
Participant
0 Kudos

Hello,

RoadMap will become interactive in the next release. Until then, a wizard-like pattern with previous/next buttons (note the special design for these) sounds appropriate for me.

Bye,

Thomas

Former Member
0 Kudos

<i>RoadMap will become interactive in the next release. Until then, a wizard-like pattern with previous/next buttons</i>

Did I miss something??? We have onSelect action handler in RoadMap for long time. What interactivity planned to be added besides this?

VS

thomas_chadzelek
Participant
0 Kudos

You are right, it's there for about half a year. Sorry, my fault. But then I don't understand Tatyana's problem... Do you understand it?