Skip to Content
avatar image
Former Member

How to retrieve data sent from a JAVA iView to a BSP iView

Hi All,

We are trying to retrieve the personnel number from the Teamviewer iView(a java iview) to a custom iView, which is written in BSP. The eventing problem within the BSP iView thru the EPCMPROXY to subscribe the event raised by Teamviewer iView has been resolved. However, once the string has been successfully sent to the BSP application from Teamviewer iView, how can i load this data string, this case will be the personnel id, to my BSP page. Below is the htlmb page i did for the BSP iView, has anyone ever done anything similar to this? Or anyone could take a look at my BSP, let me know what i was missing in the java scripts that will load the string onto my BSP page:

<htmlb:content design = "design2002">

<htmlb:page title = "Employee General Data">

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

<script language="javascript">

function receiveEvent(eventObj) {

//alert("Inside receiveEvent!");

alert(eventObj.dataObject);

var dataKey = eventObj.dataObject;

//IPortalRequestEvent navEvent = componentRequest.createRequestEvent("myEvent");

//return dataKey;

}

//var lnDotPos = location.hostname.indexOf(".");

//if (lnDotPos >= 0)

// document.domain = location.hostname.substr(lnDotPos + 1);

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

</script>

<htmlb:form id = "gendata_form" method = "post">

<br>

<htmlb:gridLayout columnSize = "4"

rowSize = "10"

cellSpacing = "15" >

<htmlb:gridLayoutCell columnIndex = "1"

rowIndex = "1"

width = "100"

horizontalAlignment = "LEFT" >

<htmlb:label id = "NAME"

text = "Name"

for = "name" />

</htmlb:gridLayoutCell>

<htmlb:gridLayoutCell columnIndex = "2"

rowIndex = "1"

width = "200" >

<htmlb:inputField id = "NAME"

description = "Employee name"

size = "08"

width = "150"

maxlength = "15"

value = "<%=w_name%>" />

</htmlb:gridLayoutCell>

<htmlb:gridLayoutCell columnIndex = "3"

rowIndex = "1"

width = "200"

horizontalAlignment = "LEFT" >

<htmlb:label id = "POSITION"

text = "Position"

for = "position" />

</htmlb:gridLayoutCell>

<htmlb:gridLayoutCell columnIndex = "4"

rowIndex = "1"

width = "200">

<htmlb:inputField id = "POSITION"

description = "Position"

size = "08"

width = "200"

maxlength = "15"

value = "<%=s_gendata-postxt%>" />

</htmlb:gridLayoutCell>

Any help will be highly appreciated.

Regards,

Amy Lee

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Jun 17, 2004 at 09:36 AM

    having the event and the value is the first step.

    You should now consider how to display it. Maybe you like to manipulate a control value by javascript?

    Add comment
    10|10000 characters needed characters exceeded