Skip to Content
0
Former Member
Jan 26, 2009 at 05:44 PM

Can't pass event from WebDynPro to JspDynPage - why?

18 Views

I Created JSP project and embedded in main page script (in its title),

which subscribes to event by EPCM API,

EPCM.subscribeEvent("urn:ru.intertech.common.wd.component", "save",   go);

and created WebDynPro page that fires event using, when pressing on some bution:

WDPortalEventing.fire("urn:ru.intertech.common.wd.component", "save", navUrl);

but first code newer receives that event...

why so ?

____________

for test reason I tested firing EPCM event on same JSP page,

and it was received,

also

I tested receiving Portal event "urn:com.sapportals:navigation", "Navigate"

it was received on same JSP page.

both iViews is not URL isolated according their properties.

WebDynPro package is:

package ru.intertech.common.wd.component;

_____________

note from else people expirence:

Does it important that receiving and firing side must be in same package? as written there:

https://www.sdn.sap.com/irj/scn/thread?messageID=462647

"The problem was that I created the Sender Application in package "com.sender" and the Receiver Application in "com.receiver".

I created them in the same package and it works."

What means domain for JSP page or WspDynPro component?

Does it important?

=================

JSP code is (changed script formattin to be able to post here, and removed else business content):

[hbj_content  ]
  [hbj_page_title"]
  
  [script_type="text/javascript__"]
  //alert["title started"];
  //EPCM.subscribeEvent["urn:com.sapportals:navigation", "Navigate", eventHandlingFunctionName];  
  //EPCM.subscribeEvent["urn:ru.intertech.navigation:epcm", "Navigate", eventHandlingFunctionName];  
  //EPCM.subscribeEvent["urn:ru.intertech.navigation:epcm", "Navigate",   pop];    
  //EPCMP.subscribeEvent[ "urn:ru.intertech.navigation:epcm", "Navigate", window,"eventHandlingFunctionName"];

    EPCM.subscribeEvent["urn:ru.intertech.common.wd.component", "save",   go]; 
   
	EPCM.subscribeEvent["urn:com.sapportals:navigation", "Navigate", eventHandlingFunctionName];  
	EPCMPROXY.subscribeEvent["urn:ru.intertech.common.wd.component", "save"  , window,   go]; 

  function eventHandlingFunctionName[ eventObj ]
  { 
	alert["title started=" + eventObj.sourceId + ": " + eventObj.dataObject  ];
  }
  
  function go[ evt ]
  { 
	alert["go started=" ];
  }  
  
  </script>
   <hbj:form id="myFormId" >