Hi all, i have a problem with my plugin (works with user defined form), in the begining it works fine but after some time fails to work properly and gives an exception on the following line.
oRecordSet = (Recordset)vCompany.GetBusinessObject(BoObjectTypes.BoRecordset);
please advice what might be the problem?
code
try
{
oRecordSet = (Recordset)vCompany.GetBusinessObject(BoObjectTypes.BoRecordset);
}
catch (Exception theException)
{
vCompany.GetLastError(out Errcode, out ErrorMessage);
Console.WriteLine("{0},,,,",Errcode,ErrorMessage,theException.Message,theException.Source,theException.InnerException);
}
oCommand = oRecordSet.Command;
oCommand.Name="Stored_Procedure";