cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic navigation

Former Member
0 Kudos

Hi all.

I am using dynamic navigation by calling this method:


lr_usage = l_view_controller_api->PREPARE_DYNAMIC_NAVIGATION(
            source_window_name          = 'W_MAIN'
            source_vusage_name          = 'V_MAIN_USAGE_1'
            source_plug_name            = 'TO_VIEW'
            target_component_name       = lv_comp
            target_component_usage      = 'USED_COMPONENT'
            target_view_name            = 'W_MAIN'
            target_plug_name            = lv_plug
            target_embedding_position   = 'V_MAIN/UI_COMP_CONTAINER' ).

The component usage is generic which means that the used

component is a component interface. The navigation is

triggered by a click in a menu. The menu entry offers the

name of the desired component (which implements the

component interface of the generic component usage) and

name of the desired inbound plug of the main window of

this component.

In the component to load there a some views which works

as different entry points. So I have some inbound plugs

in the window which fires outbound plugs of the window

which itself are connected to the inbound plugs of the component's views.

My problem now is that when I click the link the first

time the event handler method of the inbound of the

window i called once. When I click the link again the

event handler method is called twice and so on ...

Any ideas?

Thanks in advance

Cheers,

Sascha

Message was edited by:

Sascha Dingeldey

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Sascha,

no, this is not a bug. The entries are not saved but kept in memory for your current application. You should make sure, that you only call this method once for each outbound plug. The created dynamic meta data will stay in memory until your application is terminated.

Best Regards, Ariane.

Former Member
0 Kudos

Hi Ariane.

Thanks for the reply. This means that I cannot call the method each time i click a

link in the menue to dynamically navigate. I have use this method at startup to

create navigation links to all possible used components and their inbounds

instead?

So I would have to create all possible component usages and outbound plugs and

so on at start up (dynamically) and thats what I wanted to avoid. Would be fine to

have a method to refresh the navigation links.

Anyway .. thanks for the answer.

Cheers,

Sascha

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi again.

I debugged the app and I found out that in

IF_WDR_RR_VIEW_USAGE the temprary nav links are saved

when the method prepare_dynamic_navigation is called.

Each time I click a link a new entry to an internal table

in the implementing standard class is made. When I

delete entries the correct count of inbound plug calls are made.

BUG in framework?

Cheers,

Sascha

Message was edited by:

Sascha Dingeldey

Message was edited by:

Sascha Dingeldey