Hi,
I have a GP Tool customization for GP2010 SP3. I am running dexterity code in order to know the number of items for a list ('Select Payables Cheques' window).
The code is working well on all my test enviroments. But when we install at the client, we get the error: Unknown Identifier PM_Mass_Voucher_Selection
What should i check? maybe the client has a corrupted dictionary?
StringBuilder DexCmnd = new StringBuilder();
DexCmnd.AppendLine("local boolean err_val;");
DexCmnd.AppendLine("local integer count;");
DexCmnd.AppendFormat("set count to countitems('(L) Restrictions Selected' of window {0} of form {0});", "PM_Mass_Voucher_Selection");
DexCmnd.AppendLine();
DexCmnd.AppendLine("set err_val to OLE_SetProperty(\"cls_ParameterName\", str(count));");
string error = String.Empty;
string sanscript = DexCmnd.ToString();
SanScriptParams paramHandler = new SanScriptParams();
Dynamics.Application DynamicsApp = System.Runtime.InteropServices.Marshal.GetActiveObject("Dynamics.Application") as Dynamics.Application;
DynamicsApp.SetParamHandler(paramHandler);
if (DynamicsApp.ExecuteSanscript(sanscript, out error) != 0 || !error.Equals(String.Empty))
{
throw new Exception("Error retrieving the value of the countitems function: " + error);
}
Hopefully someone can help
*This post is locked for comments