Skip to Content
author's profile photo Former Member
Former Member

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

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Dec 16, 2004 at 09:49 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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

  • Posted on Dec 16, 2004 at 09:47 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 16, 2004 at 10:36 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.