on 06-30-2005 6:22 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
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
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
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.