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

Eventing between HTML View and IView

OK... I've got a VC IView that contains an HTML View.

The URL for that HTML View is a BW Web Application.

I would like to raise an event from within the BW Web

Application and have that event 'fire' the input port on

another VC IView. Here's the code that I added to the BW

Web Application to try to get this to work... It runs without

error; the 'Got Here!' alert appears, but the event does not

fire on the other IView.

<script type="text/javascript"
src="/sap/bw/Mime/BEx/JavaScript/epcfproxy.js"></script>

...

<button onclick="testEvent();">Test Event</button>

...

<script language=javascript>
function testEvent()
{
EPCMPROXY.raiseEvent('urn:com.sap.visualcomposer:epcm','selectbusiness',
{sbuurl:'http://db1as1.rohmhaas.com/sap/bw/BEx?sap-language=EN&bsplanguage=EN
&cmd=ldoc&TEMPLATE_ID=ZW_ZZPRO_C11_VCDEMO3&CMD_1=DATA_PROVIDER%3D*%26FILTER_IOBJNM
%3D0PROFIT_CTR__ZBUSGRP%26FILTER_VALUE%3DBUSGRP002%26MULTI%3DX'});
alert ('Got Here!');
}

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 20, 2005 at 07:21 AM

    Hi,

    What version of VC are you working with?

    What is the name of the input signal on the other IView you created with VC?

    Generally, I think it would be better if you raise the signal from the first IView (the one with the HTML view) with a signal modeled in VC (and not write the code yourself). Did you try that?

    Lior

    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.