on 01-23-2013 10:37 AM
Hi all,
I'm having trouble getting the service call udf form as soon as the form opens. Here is my code:
if (((pVal.FormType == -60110 & pVal.EventType != SAPbouiCOM.BoEventTypes.et_FORM_UNLOAD) & (pVal.Before_Action == true)))
{
// get the event sending form
oServiceCallFormUDF = globals.SBO_Application.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount);
}
I have used the "-" sign, but it only works when I click on the UDF form. Can anyone help?
Thanks,
Costas
Hi Costas,
Can you try
if (((pVal.FormTypeEx == "60110" & pVal.EventType != SAPbouiCOM.BoEventTypes.et_FORM_UNLOAD) & (pVal.Before_Action == true)))
{
// get the event sending form
oServiceCallFormUDF = globals.SBO_Application.Forms.GetFormByTypeAndCount("-" + pVal.FormTypeEx, pVal.FormTypeCount);
}
Regards
Edy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the reply.
I tried it. I had to modify it a little as it asks for an int, but it fails:
if (((pVal.FormTypeEx == "60110" & pVal.EventType != SAPbouiCOM.BoEventTypes.et_FORM_UNLOAD) & (pVal.Before_Action == true)))
{
string formTypeExUDF = "-" + pVal.FormTypeEx;
int formTypeExUDF1 = int.Parse(formTypeExUDF);
// get the event sending form
oServiceCallFormUDF = globals.SBO_Application.Forms.GetFormByTypeAndCount(formTypeExUDF1, pVal.FormTypeCount);
}
I get an error shown below:
User | Count |
---|---|
100 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.