Skip to Content
author's profile photo Former Member
Former Member

Error on EPCMPROXY is undefined


I encountered an error message 'EPCMPROXY is undefined' when I have two BSP applications on the same page subscribing to the MSS teamviewer. This problem happens intermittently when I try to change the employee in the MSS teamviewer, to display detailed infomation in the two BSP applications.

In the two BSP applications, I use the following codes to subscribe to the MSS teamviewer upon change of the selected employee. I have tried to use two different procedure name for EPCMPROXY and myreceiveEvent. But the problem still exists. Anyone provide some help on this?


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

<script language=javascript>

var lnDotPos = document.domain.indexOf( "." );

if (lnDotPos >= 0) document.domain = document.domain.substr( lnDotPos + 1 );

EPCMPROXY2.subscribeEvent( '', 'objectChanged', window, 'myreceiveEvent2' );

function myreceiveEvent2( eventObj2 )


var dataKey2=eventObj2.dataObject;

Emp2.EmpID.value = dataKey2.substr(6,8);





Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Dec 03, 2004 at 11:30 AM


    just two remarks:

    1.) "EPCMPROXY2"?!?! Is this a typo?

    2.) If the problem exists for EPCMPROXY, too, check if the js file is accessed (seems not to be).

    Hope it helps &

    have a nice weekend


    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 07, 2004 at 06:33 AM

    Hi Detlev,

    Answer to your questions:

    1) I have purposely named one BSP application with EPCMPROXY and the other BSP application with EPCMPROXY2, thinking that it may solve the runtime error, but it didn't.

    2) If I display either one of the BSP applications, then the program will work without any error. If both BSP applications are displayed in the same page, then the runtime error will occur.

    Any idea what is causing this problem?


    Seow Ting

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.