on 10-25-2006 3:35 PM
Hi,
I am able to receive and display portal events (EPCF API) with the following code:
<SCRIPT src="epcfproxy.js"></SCRIPT>
<script language="javascript">
if(window.document.domain == window.location.hostname){
document.domain = document.domain.substring(document.domain.indexOf('.')+1);
}
EPCMPROXY.subscribeEvent("urn:com.sap:BWEvents","BWiViewevent", window, "myreceiveEvent");
function myreceiveEvent( eventObj ) {
alert("event received:" + eventObj.dataObject );
}
But now the received data is only stored in Javascript-"variables".
How can I copy the received string to ABAP variables? These variables will be declared as Page Attribute (e.g. rec_event_data TYPE STRING)
Is my Javascript-solution a good way to handle portal events or are there better solutions?
Thanks a lot.
Regards,
Henning
Hi,
Did you make any progress ?
Thanks.
Best regards,
Guillaume
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
yes I was able to do it.
The code should be something like this. I can not test it at the moment.
function myreceiveEvent( eventObj )
{
document.form1.rec_event.value = eventObj.dataObject;
document.form1.submit();
}
<htmlb:form id="form1">
<input type="hidden" name="rec_event" value="">
</htmlb:form>
Event Handler: OnInputProcessing
rec_event_data = request->get_form_field('rec_event').
Regrads,
Henning
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.