Skip to Content
0
Former Member
Jun 23, 2005 at 08:40 PM

Portal eventing

20 Views

I trying to connect between the dynamic navigation and an Iview frame on a page. I am using 1 BSP application, with two different views having different model classes. They are called in the seperate IVIEWS using the link "test.do" and "test1.do" We are using WAS640 and EP6.0 both on SP12.

Any help will be greatly appreciated.

Here are sample of my code from the first page(dynamic navigation IVIEW).

Sending page..........

<htmlb:documentHead title="Test Application" >

<script>

<%= runtime->GET_DOMAIN_RELAX_SCRIPT( ) %>

</script>

<script language=JavaScript>history.forward()</script>

<%-- here we pput the portal eventing code ____ --%>

<script language="JavaScript" type="text/JavaScript" src="epcfproxy.js"></script>

<%-- here is function call to populaqte the data bag ____ --%>

<script language="JavaScript" type="text/JavaScript">

function dataBagFill(posnr_list){

try{

EPCMPROXY.storeClientData("urn:com.sap.myObjects", "vBob", posnr_list);

}catch(ex){alert('Store:'+ex)}

try{

EPCMPROXY.raiseEvent("urn:com.sap.myObjects", "eBob", posnr_list, null);

}catch(ex){alert('Raise:'+ex)}

}

</script>

Receiving page........

<script>

<%= runtime->GET_DOMAIN_RELAX_SCRIPT( ) %>

</script>

<%-- portal eventing include scripts --%>

<script src="epcfproxy.js"></script>

<%-- function called for portal eventing --%>

<script language=JavaScript>

function dataBagRead(){

try{

EPCMPROXY.subscribeEvent("urn:com.sap.myObjects","eBob",window,"bProc");

}catch(ex){alert(ex);}

}

function bProc(){

alert('read');

var posnr_list = EPCMPROXY.loadClientData("urn:com.sap.myObjects","vBob");

alert(posnr_list);

}

</script>