cancel
Showing results for 
Search instead for 
Did you mean: 

Link to URL Question

Former Member
0 Kudos

Hi all!

I wanna know if there exists a way to open a new window without the toolbars using the link to URL element of web dynpro.

If there is posible, i wanna know how.

Thx a lot

Best regards.

Gregory.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Gregory,

Here is an exact answer:

Valery Silaev

EPAM Systems

http://www.NetWeaverTeam.com

P.S. Search terms on forum search: "url AND tool AND bar", Date range: "All", Result: first

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Gregory,

I think this sample code snippet should help you.

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

{

//@@begin onActionShowAddressBookPopUp(ServerEvent)

IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("AddressBookWindow");

// create the “AddressbookWindow”

IWDWindow window = wdComponentAPI.getWindowManager().createWindow(windowInfo, true);

// set the WindowPosition on the screen

window.setWindowPosition(300,150);

window.removeWindowFeature(WDWindowFeature.ADDRESS_BAR);

window.removeWindowFeature(WDWindowFeature.MENU_BAR);

window.removeWindowFeature(WDWindowFeature.STATUS_BAR);

window.removeWindowFeature(WDWindowFeature.TOOL_BAR);

// and show the window

window.open();

// Save WindowInstance in Context

wdContext.currentPopupElement().setWindowInstance(window);

//@@end

}

If you need more input let me know.

Regards,

Karthick Eswaran

Former Member
0 Kudos

Thx Valery n Karthick.

You help me solve my problem.

I use the post that recomends me Valery, but i'm having a javascrip error when the external window is closed the error says:

'childNodes.length' is null or not an object.

This is normal? can i close the external window without this error happends? how can i solve that?

Thx and regards.

Gregory

Former Member
0 Kudos

Javascript errors are never normal, please open an OSS message.

Armin