cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Exit Plug

Former Member
0 Kudos

Hi,

I'm trying to navigate to a url "http://www.sap.com" from a view on the click of a button.

I have used the componentInterfaceView in doing so.

Now when I use: wdThis.wdGetComponentInterfaceViewController().wdFirePlugGotoUrl(" <Url> ");

I get the error "The method FireExitPlug(String) is undefined for the type IPublicQuizInterfaceView."

"Quiz" is my component name.

Could anybody help me in solving this problem?

Thanks in advance

Reena

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Go to the properties tab of the view and add the interface view controller to this view.

Then say wdThis.wdGet<viewname>InterfaceViewContoroller().<the plug

> ..

And make sure the exit plug parameter is named as Url..

Regards

Bharathwaj

Former Member
0 Kudos

Hi Bharathwaj,

Thanks for replying.

1) I named the exit plug parameter as Url. But what should the type be?

2) I tried inserting your line of code. But Im still getting the same error.

Here is a snippet of my code:

public void onActionExitPressed(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )

{

//@@begin onActionExitPressed(ServerEvent)

//wdThis.wdGetQuizInterfaceViewController().wdFirePlugGotoUrl("http://www.sap.com");

wdThis.wdGetQuizInterfaceViewController().EndQuizIn("http://www.sap.com");

//@@end

}

The name of the plug is EndQuizIn.

Thanks in advance

Reena

Former Member
0 Kudos

HI,

i guess u commented this line..

//wdThis.wdGetQuizInterfaceViewController).wdFirePlugGotoUrl("http://www.sap.com");

In the following line it should not be EndQuizIn("Url string")

wdThis.wdGetQuizInterfaceViewController().EndQuizIn("http://www.sap.com");

but it should be

wdThis.wdGetQuizInterfaceViewController().wdFirePlugEndQuizIn("http://www.sap.com");

Regards

Bharathwaj

Former Member
0 Kudos

Hi,

Im afraid the problem has not been solved yet.

This is the change I made:

public void onActionExitPressed(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )

{

//@@begin onActionExitPressed(ServerEvent)

wdThis.wdGetQuizInterfaceViewController().wdFirePlugGotoUrl("http://www.sap.com");

wdThis.wdGetQuizInterfaceViewController().wdFirePlugEndQuizIn("http://www.sap.com");

//@@end

}

On a side note, do I have to import any specific package for the Url parameter? Because at the moment I have imported only the following package:

import com.sap.tc.webdynpro.tutorials.quiz.wdp.IPrivateWelcome;

Thanks in advance

Reena

Former Member
0 Kudos

Hi,

Hmmm.. Thats strange.. Are u typing the code manually are do u use ctrl+space...

I think there might be some spelling mistake..

Is it still saying that something cannot be resolved...

what cannot be resolved...

type wdThis.and use ctrl+space and check if u get that particular controller.. and do the same for the wdFirePlug<plugname> also....

I think there is something trivial which we r missing.

try this..

Press ctrlshifto this will organize the imports.. u dont have to do anything else...

Regards

Bharathwaj

Former Member
0 Kudos

Hi Reena,

Well you seems to be creating the extended web dynpro application as given in help of NWSP12.

If yes, entire application is fine and run well.

when you created the action for Exit button, i think u forgot the create the fire plug for this action that's why you are seeing the error that fireplugGotoToUrl is not defined.

check whether u have created the fireplug gotpurl for the exit action. ( this step hasn't been described in the help)

rgds,

vilish

Former Member
0 Kudos

Hi all,

Thanks a lot for helping me out.

Bharathwaj, thanks a ton for yor help.

Vilish, what you said was true. The help application has missed this step. I should have cross checked.

Anyway after creating the fireplug, it is working fine.

Regards

Reena

Answers (0)