Hi,
I am working on Teamviewer eventing. Here is my complete JSP page code. All I am trying to do is pass the data from client event back to server side Dynpage. I am getting an error on bottom status bar that "objected expected" on the line "var inputfield = eval(func("pernr"));" Can anyone tell what could be the problem ?
<jsp:useBean id="myBean" scope="application" class="com.wrigley.evt.EvtBean" />
<hbj:content id="myContext" >
<hbj:page title="PageTitle">
<hbj:form id="myFormId" >
<hbj:inputField
id="pernr"
type="string"
maxlength="20"
value=""
visible="FALSE"
jsObjectNeeded="true">
</hbj:inputField>
</hbj:form>
</hbj:page>
</hbj:content>
<script language="javascript">
EPCM.subscribeEvent("urn:com.sap.pct.hcm.orgmanagement:CurrentObject", "objectChanged", 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>
<%=myBean.getCW1()%>