cancel
Showing results for 
Search instead for 
Did you mean: 

Opening a web page in the same window ...

Former Member
0 Kudos

Hi all,

I wanted to open a web page in the same content area(window) and not in an external window . Could you tell me how its done ...

Regards,

Jayant.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Jayanth,

In your PCD->Iview Property set the attribute

<b> 'Open in New Window ' to No </b>

Rgds,

Jothi.

Assign pts for helpful answers.

Answers (3)

Answers (3)

arun_srinivasan
Contributor
0 Kudos

hi

check out this link

http://help.sap.com/saphelp_erp2005/helpdata/en/83/e7c24122e3c317e10000000a155106/content.htm

create a exit plug as mentioned in link.

in the action event handler of button gives this.

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

{

//@@begin onActionExitButton(ServerEvent)

String logoffURL="http://help.sap.com/saphelp_erp2005/helpdata/en/16/d3643fce8bb01ae10000000a114084/frameset.htm";

wdThis.wdGetDynamicProgrammingInterfaceViewController().wdFirePlugToexit(logoffURL);

//@@end

}

hope this helps,

Regards,

Arun

Former Member
0 Kudos

Hi,

I actually wanted to know how this is done at the Webdynpro view level. i.e. in a view i need a button on click of which a web page should open within the same view .

Regards,

Jayant.

vijayakhanna_raman
Active Contributor
0 Kudos

Hi,

The above explaination is done in the view level only.

U can find the interface view in the Component interface of a component.

Go and Creare the outbound plug as i said.

Then add the interface view to the view which contains the button.

In the onAction of the button write the above code.

Hope this helps.

Regards,

Vijayakhanna Raman

vijayakhanna_raman
Active Contributor
0 Kudos

Hi,

Go the interface view, and create the outbound plug name xxx with parameter Url of type String.

Add this interface view in the prorerties tab of the view and write this code.

wdThis.wdGet<Application name>InterfaceViewController().wdFirePlugXxx("http://google.com");

Regards,

Vijayakhanna Raman