cancel
Showing results for 
Search instead for 
Did you mean: 

How to open a new IE page when user clicks on a button or link

Former Member
0 Kudos

Hi Experts,

I have created WD program which fetches data from R/3.

I have to create a link or button on the WD program. When the user will click on the link, another IE page should open. Some processing will be carried out by WD. The result of WD processing should be displayed in this new IE page.

Regards,

Gary

Accepted Solutions (1)

Accepted Solutions (1)

gill367
Active Contributor
0 Kudos

Hi Gary,

You need to create a seperate window and embed a new view in it. and yeah for accessing that window you need to create one apllication also which is connected to this window.

Then in the event handler of the button's click action write the follwing code:-

String deployableObjectName =
			wdComponentAPI.getDeployableObjectPart().getDeployableObjectName();
try {
			// Get deployable object part of target application.
			// Precondition: assume, that other application belongs to the same
			// Web Dynpro Project (Deployable Object)
			WDDeployableObjectPart deployableObjectPart =
				WDDeployableObject.getDeployableObjectPart(
					deployableObjectName,
					<window name>,
					WDDeployableObjectPartType.APPLICATION);
			urlToTargetApp =
				WDURLGenerator.getWorkloadBalancedApplicationURL(
					deployableObjectPart,
					UrlParam);
		} catch (WDURLException e) {
			
			}
			
		} catch (WDDeploymentException e) {
			
			}
			
		}
                          IWDWindow win1 =  wdComponentAPI.getWindowManager().createNonModalExternalWindow(urlToTargetApp,"Ouput");
win1.show();

This will open a new window and then in the wddoinit of the new window's view you can execute the bapi and display the content accordingly.

Regards,

sarbjeet Singh

Answers (0)