Skip to Content
0
Former Member
Sep 28, 2005 at 09:07 PM

Event value across pages

28 Views

How to get the subscribed event data across pages?

I have 6 pages, with team viewer as common iview in all pages. When a user click on first item say "employee1"in team viewer event is captured and is working fine. now how to retain the same event data across all my 6 pages.

for e.g when user clicks on 3 pages the data for employee1 should load .Any help would be appreciated.

below is my receive event function (Courtesy Prakash)

<script language="javascript">

EPCM.subscribeEvent( "urn:com.sap.pct.hcm.orgmanagement:CurrentObject", "objectChanged", window, "receiveEvent");

function receiveEvent(Evt) {

var pernr = Evt.dataObject;

var funcName = htmlb_formid+"_getHtmlbElementId";

func = window[funcName];

var inputfield = eval(func("pernr"));

if (inputfield)

inputfield.setValue(pernr);

var form = document.all(htmlb_formid);

form.submit();

}

</script>