cancel
Showing results for 
Search instead for 
Did you mean: 

Eventing between HTML View and IView

Former Member
0 Kudos

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!');
}

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (0)