cancel
Showing results for 
Search instead for 
Did you mean: 

view navigation

Former Member
0 Kudos

Hi all,

I should need to create a navigation from method "WDDOMODIFYVIEW" but it dumps... Do anyone know some expedient in order to avoid this problem?

Thanks

GN

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

What do you want to do.Can you explain elaborately what you did and also paste your code here

Former Member
0 Kudos

I open a window popup pushing a button and I would like call next view without return on main view (where I push button) but I need also to wait for popup closing. So I try to call next view from method WDDOMODIFYVIEW using following code:

wd_This->Fire_Copy_Plg( calling = 'COPY'

).

this instruction unfortunately dumps because it is not permitted navigation from method WDDOMODIFYVIEW.

Former Member
0 Kudos

Hi,

How do you call without action in the main view.Your requirement is not at all clear.

When you click a button in main view you will call pop up window and at the same time you want to call other view.How the application knows with out action what to call.

Please make it clear.

Former Member
0 Kudos

In Main I insert a customer number than I push a button that calls a second view in which appear customer data in order to copy them for another customer, before to open the second view I let appear a popup in which user can choose from different sales area in which customer is opened, so I would like that second view appears only after user choice.

The problem is that popup view is in another window and I can't call from it the second view, so when user closes popup the applications comeback in main view and from it I would like access on second view without push any button again. For this I try to call view from method WDDOMODIFYVIEW...

Former Member
0 Kudos

hi,

That is what i am asking you with out suspend the action in pop up window and how the control is back to main view.

physically in output you are able to see one view and one pop up.when you move from pop up to main view with out action in main and pop up , it is not possible to call the other view.

Just think normally it is not our mind to understand what the thoughts and wishes in our mind.

Former Member
0 Kudos

following I copy some lines of my code in order to clear the situation:

method ONACTIONCOPY_CUST

componentcontroller = wd_this->Get_Componentcontroller_Ctr( ).

componentcontroller->create_popup( exporting title = 'Sales Area'

win_name = 'POPUP_WINDOW'

BUTTON_KIND = 1

importing popup = lo_popup ).

wd_This->Fire_Copy_Plg( calling = 'COPY'

).

In a first time i try like above but in this way second view appeared simultaniously with popup, before my choice. So I delete wd_This->Fire_Copy_Plg( calling = 'COPY', in this way Popup appears, I make my choice and return on main view, instead I would like go on to second view skipping the main.

I am find a way to call second view out of above method so that I can before make a choice into popup view.

uday_gubbala2
Active Contributor
0 Kudos

Hi Gabriele,

Have you managed to resolve your problem or you are still on the lookout for it? Am giving you an idea by which you can accomplish the same. First let me try say out what I thought was your intended task.

1) You navigate from a MAIN view to a popup view POPUP.

2) You return back to the MAIN view after some action in the POPUP window.

3) You now need to automatically navigate to a 3rd view without any user intervention.

If the above said scenario matches with your desired requirement then please continue reading ahead.

1) Place a TimedTrigger in your MAIN view and bind its "enabled" property to a component attribute (say timer) of type WDY_BOOLEAN with a default value of fales. (i.e, leave it as blank)

2) Define the "Delay" property of this element as "1".

3) Define a method for the "onAction" property in which you just fire an outbound plug to the 3rd view.

So this timer is by default in the disabled state. When you are navigating back from your POPUP view to your MAIN view set the value of the context attribute created earlier (timer) to true. (i.e, X) So now the system does navigate back to the MAIN view but as soon as the time mentioned in the timers "Delay" property elapses the system initiates navigation to your desired 3rd view. Hope that it helps resolve your problem.

Regards,

Uday

Former Member
0 Kudos

Hi Uday,

first of all thanks very much for your suggest, It is just what I was looking for! Only one question, I followed you instructions but my method "on action" doesn't still start, I think I missed something. I try to activate it as follows, could you check if it is right?

data: lo_trigger type ref to CL_WD_TIMED_TRIGGER.

lo_trigger ?= view->get_element( ID = 'TIMED_TRIGGER' ).

lo_trigger->SET_ON_ACTION( value = 'X' ).

uday_gubbala2
Active Contributor
0 Kudos

Hi Gabriele,

You should be passing the name of the method (in which you are triggering the outbound plug for navigating to your 3rd view) you want to be triggered to the VALUE attribute of

SET_ON_ACTION.

ex:

lo_trigger->set_on_action( value = 'NAVIGATE' ).

And you can directly place this TimedTrigger into your main view at design time itself. Please keep it in mind that you should only be going for dynamic UI manipulation when you aren't able to define the UI at design time.

Also please keep it in mind 1 thing. Once you navigate to your desired 3rd view reset the attribute value which you are binding to the TimedTrigger's "Enabled" property to false. Otherwise the trigger would keep triggering outbound plugs to your 3rd view. So in case you ever again navigate to your MAIN view the system would be again re-directing you to the 3rd view. Had missed out on mentioning this in the earlier post.

Regards,

Uday

Answers (2)

Answers (2)

Former Member
0 Kudos

hi,

You can go for the following link for View Navigation.

http://help.sap.com/saphelp_nw04s/helpdata/en/1f/464941db42f423e10000000a155106/frameset.htm

This might help you.

Thanx.

Former Member
0 Kudos

Hi,

You can use inbound and outbound plugs for nevigation between views.

And fire that when needed.

Regards,

Rohit