on 01-22-2008 7:47 PM
Hi,
I have to call a webdynpro application in an external window using the application name. Please note that no iViews are created out of the application which i am going to call.
I have DC1 and DC2 and from the Comp Controlller of DC1 , i need to invoke the application in DC2.
String depObjectName =wdComponentAPI.getDeployableObjectPart().getDeployableObjectName();
WDDeployableObjectPart depObjectpart=WDDeployableObject.getDeployableObjectPart(depObjectName,"TestApp",WDDeployableObjectPartType.APPLICATION);
String url = WDURLGenerator.getApplicationURL(depObjectpart) ;
* *
window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(url,"Test View");
* *
window.show();
Is this the correct API to get getDeployableObjectName which is in the different DC.
Please let me know the correct API which i can use to get the getDeployableObjectName and the subsequently the Application which is availbale in the different DC.
Thanks and Regards,
Sekar
Sekar,
You are using the correct API to get deployed applciation details. But i would rather use following code to get the deployableobject.
WDDeployableObjectPart objectPart = WDDeployableObject.getDeployableObjectPart("sap.com/<Name of second DC>","<Application you want to call>",
WDDeployableObjectPartType.APPLICATION));
Chintan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chintan Virani,
Thanks for your reply.
Is it possible to get to know through the APis that the Webdynpro Application Deployed in the server is started.
I hope some API's will be available.I need to open this application only when it is started.
I tried this,
IWDDeployableObject deplObj = WDDeployableObject.getDeployableObject("TestApp");
if ( deplObj.getState() == WDDeployableObjectState.STARTED ) {
// do something
}
com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to create deployable object TestApp' since it is not a Web Dynpro object. null
Thanks and Regards,
Sekar
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.