cancel
Showing results for 
Search instead for 
Did you mean: 

Calling a portal based application from another WD java application.

Former Member
0 Kudos

Dear All,

I have a requirement to Access a Portal based customised application from a WD Java appln.

Please help me .

Thanks and Regards,

Soumyadeep.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Soumyadeep

From our experience we added an iframe to the application with target url of portal application.

If u want a button to open a new window u can write this at the button action:

String url = "http://colpp7n:50000/irj/servlet/prt/portal/prtmode/preview/prtroot/pcd!3aportal_content!2fco.il.cc.orderScreen!2fcc.co.il.iview!2fjavadde2";

IWDWindow window = wdComponentAPI.getWindowManager().createExternalWindow(url, "Title",false);

window.setWindowSize(1,1);

window.open();

The url content is just an example.

Hope it helps,

Nitsan

Former Member
0 Kudos

Hi,

What do you mean by " Portal based customised application".

If I assume that " Portal based customised application" is PAR application, then develop iView out of it and you can access it from Web Dynpro application.

Regards,

Ganga

Former Member
0 Kudos

Dear Ganga,

I have a webdynpro application which is created as a Portal Iview.

It is an .EAR file.

What is the procedure to call the created Iview in another Webdynpro application?

Please advise.

Regards,

Soumyadeep.

Edited by: Soumyadeep Ghosh on May 13, 2009 3:47 AM

birojpatro
Contributor
0 Kudos

Hi Soumyadeep,

You can use OBN (Object Based Navigation) feature to call any of the Portal iVew in your WebDynpro application.

Please search OBN on sdn, you will get lots of links and discussions on OBN feature.

Hope this helps,

Good Luck!!!

Biroj Patro.

Former Member
0 Kudos

Hi Biroj/Abhilasha,

I have a code which is supposed to serve the purpose of calling a portal iview when a button on the Webdynpro java application is clicked.

The Action of the button contains the following code:

WDPortalNavigation.navigateAbsolute("ROLES://portal_content/com.essar.self_service/com.essar.com.customized/com.essar.mss.mss/com.essar.mss.iview_mss/com.essar.leaveapproval", WDPortalNavigationMode.SHOW_INPLACE,

(String) null,

*(String) null, *

WDPortalNavigationHistoryMode.NO_DUPLICATIONS,

(String) null,

(String) null,

"Name=Agreement");

But there is no action happening on the button being clicked and the action being associated with the button whereas the message with the code appears saying that the code is executed.

Regards,

Soumyadeep.

gill367
Active Contributor
0 Kudos

Hello Soumyadeep,

The procedure that you are using for calling the portal application is correct.

But if nothing is happening on click of the button then i think you are not running the application in the portal. You are running it as an independent web dynpro application.

If you run your application as an iview in the portal only then you can use this navigateabsolute method.

So run your application as an iview and try to navigate from there only then it will be able to fetch the url from the PCD.

otherwise get the url of that application and create a nonmodal exteranl window and give it the url of the

application.

So to use the code that you have written here you have to upload this application to the portal and then you can call that particular iview when it is called from the portal.

Hope it is clear.

Please let me know if you still have an issue.

Thanks

Sarbjeet Singh

Former Member
0 Kudos

hi

try this

String navigationtarget = "ROLES://portal_content/sandbox/tma_demo_v2/roles/tma_demo_v2/in_work/summary";

WDPortalNavigation.navigateAbsolute(navigationtarget, WDPortalNavigationMode.SHOW_INPLACE , WDPortalNavigationHistoryMode.NO_DUPLICATIONS, null);

birojpatro
Contributor
0 Kudos

Hi Soumydeep,

As Sarbjeet told, You have to create an iView for the WD application in portal. Becuse the OBN navigates to the PCD path of the portal iView.

Otherwise you can always create a create a nonmodal exteranl window and give it the url of the deployed WD application.

Regards,

Biroj Patro.

Former Member
0 Kudos

Dear All,

The code I pasted earlier served the purpose and when I tested the application after making an iview for the same, it worked.

Thanks everybody for your support and guidance.

Soumyadeep.

Former Member
0 Kudos