Skip to Content
avatar image
Former Member

open wd view in new window in portal

Hi

I have small application with two views in the WD application

i have established plugs and navigation links between these two views.

I have created WD ivew for these application in the portal.

when i run the application in the portal first i will show the first view of Wd applicatioa and when i click submit button in the first view it should navigate to second view in the new Internet Explor window.

let me know how to slove this problem

regards

mmukesh

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Feb 06, 2007 at 02:38 PM

    hi create the new application name and new window name add the second view into that newly created window.

    goto the newly created application properties and call the first applicationwindowinterfaceview.

    And in first view button action add this code. it will work.

    String url ="";

    String depObjectName = wdComponentAPI.getDeployableObjectPart().getDeployableObjectName();

    try {

    WDDeployableObjectPart depObjectpart=WDDeployableObject.getDeployableObjectPart(depObjectName,"Newapplicationname",WDDeployableObjectPartType.APPLICATION);

    url = WDURLGenerator.getApplicationURL(depObjectpart) ;

    wdComponentAPI.getMessageManager().reportSuccess(url);

    } catch (Exception e) {

    }

    IWDWindow window = wdComponentAPI.getWindowManager().createExternalWindow(url,"Pdfwindow",true);

    window.setWindowSize(500,500);

    window.setWindowPosition(WDWindowPos.CENTER);

    window.open();

    Thanks,

    Lohi.

    Add comment
    10|10000 characters needed characters exceeded