cancel
Showing results for 
Search instead for 
Did you mean: 

how should i open another application through url....?

Former Member
0 Kudos

hi,

if i am having url of 2nd application and on click on any link of 1st application view if i want to open the 2nd applicaiton through url which i am having , how its possible?

Please help me out..

thanks in advance.

Saurin Shah.

Accepted Solutions (1)

Accepted Solutions (1)

nikhil_bose
Active Contributor
0 Kudos

I) use LinkToURL UI element,

set reference property to 2nd application url

set target to _TOP

II) create an Outbound plug of type "exit/suspend"

create a parameter "Url" //case sensitive

onAction() of UI you want to do navigation


String urltoapp = "http://Url_Of_SecondApplicatoin";
wdThis.wdGet<Component>InterfaceController().wdFireToSecondApplication(urltoapp);
// firing interface out plug 

nikhil

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi

Use this code to get Url of deployed application.

Put this piece of code in wdDoInit() of View Controller of desired application


String appURL = null;
try {
	WDDeployableObjectPart currentAppPart =wdThis
						.wdGetAPI()
						.getComponent()
						.getApplication()
						.getDeployableObjectPart();
					
appURL = WDURLGenerator.getApplicationURL(currentAppPart);
					
} catch (final WDURLException ex) {
wdComponentAPI.getMessageManager().reportException(
					new WDNonFatalException(ex),
					false);
			}

Create PlugOut and pass a parameter named 'URL' of type "String" in Interface Controller of application

Rest use nikhil's code

Mandeep Virk

Former Member
0 Kudos

Hi,

There are two ways in which you can do this:

1. Use portal navigation:

Refer to the below link:

http://help.sap.com/saphelp_nw04/helpdata/en/d8/6ee03fc2269615e10000000a155106/frameset.htm

2. Create and external window with the URL of second application. Refer to the Tutorial of "Dialog boxes in Web Dynpro" for this.This tutorial is availbal on sdn.I currently dont have URL for it.

Regards,

Apurva

Former Member
0 Kudos

Hi,

just i am explaining Lakshmi Narayan's

After insertion of LinkToURL element into the View.

for "reference=<give here your application URL>

for property

reference=https://www.sdn.sap.com

and for property

text = <give the name what ever you want here>

and the same can be done using

"LinkToAction" element also.

Thanks,

RameshBabu.V

Former Member
0 Kudos

Hi,

If both applications are deployed in same server in seperate projects, then you can make use of LinkToURL UI element.

Insert on LinkToURL element in 1st app and bind the 'reference'

property to URL of 2nd App.

Give sample text to 'Text' property

Or else you can use concept of InterApplication Navigation available in Help of NWDS

Regards

LakshmiNarayana