on 05-06-2005 11:52 PM
My EPCM eventing code does not work completely. I have been able to get an event handler to populate an SAP InputField but I cannot get the event handler to execute a click() on a SAP Button in the same iView. I'm using the following code:
EPCM.subscribeEvent("urn:PPM.SAPIntegration.Events", "GetSapEquipment", GetSapEquipment);
function GetSapEquipment(eventObj)
{
var equipDesc = eventObj.dataObject;
<%= Form.ID + "." + txtDescription.ClientID %>.value = equipDesc;
<%= Form.ID + "." + btnGetEquipment.ClientID %>.click();
}
The button works if it is pressed manually. It calls my .NET function btnGetEquipment_Action. I see examples of this type of event handlers so I am confused why my code does not work.
instead of
<%= Form.ID + "." + btnGetEquipment.ClientID %>.click();
you should call
<%= btnGetEquipment.ClientID %>.click();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I also ran the PDK example that uses a search field and button to make a google.com
search. That example works. In my case, I'm trying to execute my button code that resides
in my portal component on the server. Therefore my button has the runat=server
option. When the SAP button is pressed, the portal component should be called so
that this c# procedure gets executed:
private void btnGetEquipment_Action(object sender, SAP.Web.UI.Controls.AbstractButton.ActionEventArgs e)
Again I say that if I press the button manually, it works.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.