Hi.
I have jsp view with two input field (Cust_No, Sales_Org).
When submit buttin clicked, I want to create event and want to pass two input field.
So, I user EPCM event, client bag but I don't know how to tranfer two input field into fireEvent() function.
I attached my jsp file.
Please complete my code.
<%@ taglib uri="tagLib" prefix="hbj" %>
<script>
function fireEvent() {
EPCM.storeClientData( 'urn:com.sap.training.portal', 'Cust_No', Cust_No);
EPCM.storeClientData( 'urn:com.sap.training.portal', 'Sales_Org', Sales_Org);
EPCM.raiseEvent('urn:com.sap.training.portal', 'SalesOrder', '');
}
</script>
<hbj:content id="myContext" >
<hbj:page title="PageTitle">
<hbj:form id="myFormId">
<hbj:group id="group" title="Search Sales Order" design="SAPCOLOR" width="210">
<hbj:groupBody>
<hbj:gridLayout>
<hbj:gridLayoutCell rowIndex="1" columnIndex="1">
<hbj:textView id="lCust_No" text="Customer No" />
</hbj:gridLayoutCell>
<hbj:gridLayoutCell rowIndex="1" columnIndex="2">
<hbj:inputField id="Cust_No" type="string" />
</hbj:gridLayoutCell>
<hbj:gridLayoutCell rowIndex="2" columnIndex="1">
<hbj:textView id="lSales_Org" text="Sales Organization" />
</hbj:gridLayoutCell>
<hbj:gridLayoutCell rowIndex="2" columnIndex="2">
<hbj:inputField id="Sales_Org" type="string" />
</hbj:gridLayoutCell>
<hbj:gridLayoutCell rowIndex="3" columnIndex="2">
<hbj:button id="submit" text="Tell" onClientClick="fireEvent();" tooltip="Click me" onClick="onSubmit" design="emphasized" />
</hbj:gridLayoutCell>
</hbj:gridLayout>
</hbj:groupBody>
</hbj:group>
</hbj:form>
</hbj:page>
</hbj:content>
Regards, Arnold.