cancel
Showing results for 
Search instead for 
Did you mean: 

URL Call from WD

Former Member
0 Kudos

HI,

I have a requirement that i am to call a URL(Portal) from webdynpro application in the same window.

Thanks,

Animit

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Anumit,

You can use LinktoURL element. to open on the same window you need to go to the properties of the LinktoURL and set the value of target to _self

Regards,

Former Member
0 Kudos

Hi,

My requiremnts is that i have created a WD application that checks login users and if the user has the required role than we are to call the Portal Link (URL) in the same window. I am to call the URL in the wdDoInit() method of the WD appl.

Thanks,

Anumit

Former Member
0 Kudos

To exit a webdynpro application, and navigate to some other URL (if required), we make use of the exit plugs.

Refer:

http://help.sap.com/saphelp_nw70/helpdata/EN/45/1bc575ba064574e10000000a114a6b/frameset.htm

However, to check if particular role is assigned to a user or not, we need to use the iUser API and iterate through the roles assigned to the "currently logged in portal user". Now, how are you planning to get the current portal user without logging in to portal..i.e, in a standalone webdynpro Application?

Former Member
0 Kudos

Hi Anagha,

I anm using a standalone WD appl and will use the cookies of the same browser to get the user id and pass fo the Portal.

The help link is for WDA, i need for WDJ.

Thanks,

Amumit

Former Member
0 Kudos

Following are Help.sap links for WDJ:

Check in below example they have used Exit plug:

http://help.sap.com/saphelp_nw70/helpdata/EN/51/2c747ecd037842943bdb38be214719/frameset.htm

Link on Navigation topic:

http://help.sap.com/saphelp_nw70/helpdata/EN/42/bb8c6cc7131d67e10000000a1553f6/frameset.htm

Edited by: Anagha Jawalekar on Mar 30, 2009 12:09 PM

Former Member
0 Kudos

I anm using a standalone WD appl and will use the cookies of the same browser to get the user id and pass fo the Portal.

Could you elaborate, which API are you using to fetch the role details for a user? And Since you are first calling the Webdynpro App in your browser, how would you be knowing the user? Are you using Authentication in webdynpro?

Former Member
0 Kudos

Hi,

I am using 'iUser API' and 'Authentication' in webdynpro.

Now , i used suspend plug to call Portal URL and the following code in the wdDoInit() method:

wdThis.wdGetBILoginInterfaceViewController().wdFirePlugMySuspendPlug("http://www.Portal.com");

But getting the below error:

com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Instance of interface view controller BILoginInterfaceView does not exist.

Thanks,

Anumit

Former Member
0 Kudos

You can use the LinkToURL UI element to show a link and on clicking the link a new external window will open.

If you want to open the window automatically like on click of a button then on the action handler you can use the following code.

String url="Provide URL here";

String title="Provide Title of the window";

IWDWindow window=wdComponentAPI.getWindowManager().createExternalWindow(url,title ,false);

window.show();

If you want to have in same window As of my knowledge the only best option is to use exit plugs...

Hope this helps,

Former Member
0 Kudos

Hi,

You can follow this [thread|] .

Hope it will solve your problem.

Thanks

Ritushree

Former Member
0 Kudos

Hi Animit,

You can use exit plugs for this which will exit from the webDynpro application and will redirect the the URL u have provided there.

Thanks