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

EPCF - from Javascript to JSP

Hi y'all,

I’m trying to develop a reporting portal app, which will comprises 2 iViews. The first iView (V1) displays a table listing data retrieved from a bapi. Depending on which row is selected from this table, the second iView (V2) displays its own table listing the corresponding item specific information retrieved from a second bapi.

I am still in the process of prototyping the system and have taken an epcf approach to allow simplex communication between iViews. (and I’ve hard-coded the table model in V1 for prototyping purposes).

Now that I’ve been successful in transferring data from V1 to V2, I think I may have overlooked a fundamental issue in taking an epcf approach in that ecpf uses javascript which is run on client-side. Does this mean that it would be impossible to use data sent from V1 to invoke a bapi from within V2's context? i.e. pass data from javascript to the components code.

Any suggestions???

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Feb 14, 2005 at 01:00 PM

    Hi Sergio,

    no, that's no problem at all. The way it works is that you'll use EPCF eventing API so that you register V2 for (update) events sent by V1 including a parameter (from row selection, we already had this 😊). Within V2, a JS method is called upon V1-selection-events, which will update itself with the new value, so a server-roundtrip will occur. Everything you want.

    For sure it would make sense to have some caching implemented, but also this you should do on server side for simplicity reasons.

    Hope it helps

    Detlev

    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.