Hi,
I have a Dashboard with a Tracker. I believe the Tracker has an EpiUltraCombo filter for Plant, although it says Erp.Adapters.Controls.PlantCombo. I’m trying to default the filter’s value to the current plant when the screen loads.
I can get the current Plant ID and Name successfully, but I cannot make the value stick to this Combo box. Maybe I’m referencing the wrong type.
I get this error:
Error: CS0234 - line 64 (148) - The type or namespace name ‘Controls’ does not exist in the namespace ‘Erp.Adapters’ (are you missing an assembly reference?)
Thanks for the suggestion Jason. Unfortunately I got the following error:
Application Error
Exception caught in: mscorlib
Error Detail
Message: Exception has been thrown by the target of an invocation.
Inner Exception Message: Index 0 is either negative or above rows count.
Program: CommonLanguageRuntimeLibrary
Method: InvokeMethod
Client Stack Trace
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Ice.Lib.Customization.CustomScriptMethodInvoker.InvokeScriptMethod(MethodInfo scriptMethod, Object[] parameters)
at Ice.Lib.Customization.CustomScriptMethodInvoker.InvokeCustomFormLoadIfExists(String methodName, Object sender, EventArgs e)
at Ice.Lib.Customization.CustomScriptManager.<>c__DisplayClass104_0.b__0()
at Ice.Lib.Customization.CustomScriptManager.TryActionShowExceptionBoxOrLogVerificationErrorIfException(Action action, String exceptionBoxTitle)
Inner Exception
Index 0 is either negative or above rows count.
at System.Data.DataView.GetRow(Int32 index)
at Script.MainController_Load(Object sender, EventArgs args)
Just to confirm, this combo is on the Tracker View.
I don’t know if you ever got this figured out… I’ve been struggling with it myself for the past couple of days. Here’s what finally seemed to work for me to get the value to stick in the PlantCombo