cancel
Showing results for 
Search instead for 
Did you mean: 

One iView serving as content target for another iView on the same page

Former Member
0 Kudos

Hi.

Portal version: EP 6.0 NW 04

Question:

We have a page containing two or more iViews. One of the iViews is a URL iView showing some links. Is it possible (standard wise) to set up one of the other iViews on the same page as content target for the links in the first iView?

Simple example:

I have an iView on my page showing a link to www.google.com. When I click on that link the Google webpage is shown in another iView on the same page.

Thanks in advance.

BR Søren

Accepted Solutions (1)

Accepted Solutions (1)

detlev_beutner
Active Contributor
0 Kudos

Hi Søren,

One of the iViews is a URL iView showing some links

Do you really mean "URL iView", ie an iView just passing through the content from some webserver defined per URL?

If yes -> No, you can't.

If no -> Yes, you can, by using EPCF for example. If a link gets clicked, raise a LinkeClickedEvent to which the second iView must have registered. On such an event, pass the chosen URL, and now the second iView can show up the content within an inner iFrame.

Hope it helps

Detlev

Former Member
0 Kudos

Hi Detlev.

Let me specify/rephrase the scenario:

I have an MSSQL database containing data (i.e. project names) to be shown in a table in an iView. By clicking a project name in that table another iView should be updated with project relevant data.

PS!

It does not necessarily have to be URL iViews.

PPS!

Theoretically it "sounds" like dynamic navigation functionality we just need both iViews on the same page.

BR Søren

detlev_beutner
Active Contributor
0 Kudos

Hi Søren,

oké, this is somehow what I expected, so my approach offered should work (it's a classical master-detail-iView-relationship). For EPCF reference see https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/enterpris... portal client.pdf (see Event API, page 9++).

Hope it helps

Detlev

Former Member
0 Kudos

Soren,

(sorry, I don't know write to find the correct "o" on my keyboard)

So your scenario is something like a "selection iView" - "details iView"? If both iViews are placed on the same portal page, I would follow Detlev's approach and use the client framework (EPCF). On clicking on a cell in the tableview you would then do an EPCF.raiseEvent and pass - say - the URL to load in the second iView.

This second iView is custom coded and contains simply an iView (or an isolatedHtmlContainer in HBJ-speech) plus an EPCF event handler (EPCF.subscribeEvent + an event handler method). This event handler simply causes the iView to reload and updates the src attribute of the iframe.

I did similar scenarios several times in EP, it works smoothly and should not be to difficult to code.

Regards,

Dominik

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi all.

Thank you so much for all your replies!

I will dig into them right away and find the appropriate solution.

Merry christmas and happy new year to you all.

BR Søren

detlev_beutner
Active Contributor
0 Kudos

Hi Søren (Døminik: ever heard of Copy&Paste )

you're welcome. Please consider awarding some points by using the yellow star at helpful answers and choosing the corresponding amount of points.

Thanks in advance

Detlev

nol_hendrikx
Active Contributor
0 Kudos

Hi Søren,

If you can set the target for all urls then there is no problem.

For standard web development you can use the following:

Iview 1 (links):

Let's say your link to google looks like:

www.google.com

Iview 2 (display frame): (name should be "frame2")

nothing to do here

However: SAP Portal works with iFrames. Here is an example how you can point to it:

http://www.faqts.com/knowledge_base/view.phtml/aid/2075/fid/124

Good luck!

Noel