cancel
Showing results for 
Search instead for 
Did you mean: 

Simple JSP and Portal application script interaction

Former Member
0 Kudos

Hello,

On one hand, I have an Portal application containing javascript files deployed on the portal.

On the other hand, I have a JSP file (running on the WAS) using as URL iview.

Is it possible to reference and to call a script contained in my application from my JSP.

Something as:

var innerPage = "pcd:portal_content/.../com.sap.portal.innerpage";

var innerPageWindow = top.pageSupport.getIvuFrameWindow(innerPage);

innerPageWindow.expandPanel();

used to expand panel everywhere in the portal ....

Thanks,

Fabien

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Yes, u can resuse the resources of one portal application in other portal application.

This guide helps you to achieve that:

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b3c1af90-0201-0010-c0ac-c8d...

for example you can get an image like this also:

/irj/portalapps/<PAR_FILE_NAME>/images/mySample.gif

Read the above pdf to differentiate the public and private folders.

<b>Plz don forget points, if it helped</b>

Regards,

P.

Former Member
0 Kudos

Hello Peter,

I know this documentation.

My problem is that I am not working on 2 Portal application.

But only on:

- 1 Portal application (which contains script files)

- 1 JSP page running on the WAS (which is created by a CMS tool)

The other problem is that the javascript files can change (content and name)..

That why I would like to know if there was an other solution to call only a javascript function withtout declaring javascript files.

Based on the same example of:

var innerPage = "pcd:portal_content/.../com.sap.portal.innerpage";

var innerPageWindow = top.pageSupport.getIvuFrameWindow(innerPage);

innerPageWindow.expandPanel();

Is it possible to call the pageSupport on my iview which contains javascript files and function and to call the wanted one?

Thanks,

Fabien

Answers (0)