cancel
Showing results for 
Search instead for 
Did you mean: 

How to navigate away to another application ?

Former Member
0 Kudos

Hello All,

I am able to successfully navigate to another application upon the click on a button (thanks to the tutorial provided).

However, when I try navigate away in wdDoInit using the same module, i am prompted with a "Instance of interface view controller does not exist". What I'm trying to do is check for some conditions and should it fail, the app should navigate to an exit page. Unfortunately this is not happening. Here's my sample code in wdDoInit :

" boolean status = wdContext.currentInitElement().getInitStartUp();

if (status == false)

{

wdThis.wdGetCheckCompController().exitPage(Integer.toString(Show.MAINTENANCE_CODE), "", "","","");

}"

Can someone kindly advise please ? Thank you.

from

Kwok Wei

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

You can try writing the code in doPostProcessing(). But what condition are you trying to check. Anyway see if doPostProcessing would help you. anyway to really know the behaviour of WD components check out this help.

http://help.sap.com/saphelp_nw04/helpdata/en/13/aeeb41eda96624e10000000a1550b0/content.htm

This is really good and will give you a good understanding. Let me know if that helped you.

regards

Ravi

Former Member
0 Kudos

Hello Ravi,

My application attempts to call a web service and should it returns an error, I am trying to navigate to an exit page. Somehow I am having difficulty in doing that.

The link that you have provided looks pretty informative. Let me read through that first. meanwhile if you have more ideas/suggestions, I'll be happy to hear from you. Thanks again

from

Kwok Wei

Former Member
0 Kudos

Hi Kwok,

You are trying to do this in the wdDoInit of Component Controller or View Controller?

Regards,

Shubham

Former Member
0 Kudos

Hello Shubham,

From the View controller. Thanks.

from

Kwok Wei