Combo Box Widget Issue

0
Hi Folks, Whenver I am trying to use Combo box widget I am getting below error let me know any solution for this and also combo box is not retaining previosly selected items in the dropdown   System.InvalidOperationException: No undo context.   at Mendix.Modeler.Utility.UndoManager.AddAction(UndoAction undoAction) in Mendix.Modeler.Utility\Undo\UndoManager.cs:line 375   at Mendix.Modeler.Texts.Text.MakeEqualTo(Text source) in Mendix.Modeler.Core\Texts\Text.cs:line 187   at Mendix.Modeler.WebUI.Forms.Widgets.Texts.ClientTemplate.SetTemplate(Text template) in Mendix.Modeler.WebUI\Forms\Widgets\Texts\ClientTemplate.cs:line 36   at Mendix.Modeler.WebUI.Forms.Widgets.CustomWidgets.CustomWidget.UpdateLabel(WidgetValue widgetValue, String activeLanguageCode, IPath newValue) in Mendix.Modeler.WebUI\Forms\Widgets\CustomWidgets\CustomWidget.cs:line 639   at Mendix.Modeler.WebUI.Forms.Widgets.CustomWidgets.CustomWidget.<>c__DisplayClass45_0.<UpdateLabels>b__0(WidgetProperty p) in Mendix.Modeler.WebUI\Forms\Widgets\CustomWidgets\CustomWidget.cs:line 628   at Mendix.Common.Util.EnumerableUtil.ForEach[T](IEnumerable`1 source, Action`1 action) in Mendix.Common\Util\EnumerableUtil.cs:line 51   at Mendix.Modeler.WebUI.Forms.Widgets.CustomWidgets.CustomWidget.UpdateLabels(CustomWidgetPropertiesView visibleProperties, String activeLanguageCode) in Mendix.Modeler.WebUI\Forms\Widgets\CustomWidgets\CustomWidget.cs:line 624   at Mendix.Modeler.WebUI.View.Forms.CustomWidgets.CustomWidgetForm.CollectControls(IGroup grp, IUIFrameworkForm uiForm) in Mendix.Modeler.WebUI.View\Forms\CustomWidgets\CustomWidgetForm.cs:line 36   at Mendix.Modeler.UIFramework.Properties.PropertiesObjectFromFormSpec.CollectProperties(IPropertyCollection properties) in Mendix.Modeler.UIFramework\Properties\PropertiesObjectFromFormSpec.cs:line 31   at Mendix.Modeler.UIFramework.Properties.PropertyCollection..ctor(IPropertiesObject propertiesObject) in Mendix.Modeler.UIFramework\Properties\PropertyCollection.cs:line 21   at Mendix.Modeler.UIFramework.Properties.PropertyCollectionFactory.FromPropertiesObject(IPropertiesObject propertiesObject) in Mendix.Modeler.UIFramework\Properties\PropertyCollectionFactory.cs:line 46   at Mendix.Modeler.UIFramework.Properties.PropertyCollectionFactory.FromFormSpec(IFormSpec formSpec, IUndoManagerProvider element) in Mendix.Modeler.UIFramework\Properties\PropertyCollectionFactory.cs:line 25   at Mendix.Modeler.WebUI.View.Views.FormsView`1.<.ctor>b__1_0() in Mendix.Modeler.WebUI.View\Views\FormsView.cs:line 23   at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)--- End of stack trace from previous location ---   at Mendix.Modeler.Core.View.ToolWindows.PropertiesViewModel.<.ctor>b__35_0() in Mendix.Modeler.Core.View\ToolWindows\Properties\PropertiesViewModel.cs:line 108   at System.Lazy`1.CreateValue()   at Mendix.Modeler.WebUI.View.Views.FormsView`1.GetCustomProperties() in Mendix.Modeler.WebUI.View\Views\FormsView.cs:line 82   at Mendix.Modeler.Core.View.ToolWindows.PropertiesViewModel.GetSelectedElementPropertyCollection(Object selectedElement) in Mendix.Modeler.Core.View\ToolWindows\Properties\PropertiesViewModel.cs:line 256   at Mendix.Modeler.Core.View.ToolWindows.PropertiesViewModel.<>c__DisplayClass41_0.<UpdateAsync>g__UpdateTabViewModels|0() in Mendix.Modeler.Core.View\ToolWindows\Properties\PropertiesViewModel.cs:line 200   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)--- End of stack trace from previous location ---   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)   at System.Windows.Threading.DispatcherOperation.InvokeImpl()   at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)--- End of stack trace from previous location ---   at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)   at System.Windows.Threading.DispatcherOperation.Invoke()   at System.Windows.Threading.Dispatcher.ProcessQueue()   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)   at System.Windows.Window.ShowHelper(Object booleanBox)   at System.Windows.Window.Show()   at System.Windows.Window.ShowDialog()   at Eto.Wpf.Forms.DialogHandler.ShowModal()   at Eto.Forms.Dialog.ShowModal()   at Eto.Forms.Dialog.ShowModal(Control owner)   at Mendix.Modeler.Core.View.ExceptionHandling.ExceptionHandler.<>c__DisplayClass13_0.<ShowExceptionDialog>b__0() in Mendix.Modeler.Core.View\ExceptionHandling\ExceptionHandler.cs:line 153   at Mendix.Modeler.Core.View.ExceptionHandling.ExceptionHandler.ShowExceptionDialog(Exception exception) in Mendix.Modeler.Core.View\ExceptionHandling\ExceptionHandler.cs:line 145   at Mendix.Modeler.Core.View.ExceptionHandling.ExceptionHandler.HandleUnhandledException(Exception exception) in Mendix.Modeler.Core.View\ExceptionHandling\ExceptionHandler.cs:line 77   at Mendix.Modeler.MainWindow.ProgramInitializer.<InitExceptionHandling>g__HandleException|12_1(Exception exception) in Mendix.Modeler.MainWindow\ProgramInitializer.cs:line 127   at Mendix.Modeler.MainWindow.ProgramInitializer.<InitExceptionHandling>b__12_0(Object _, UnhandledExceptionEventArgs e) in Mendix.Modeler.MainWindow\ProgramInitializer.cs:line 123   at Eto.PropertyStore.TriggerEvent[T](Object key, Object sender, T args)   at Eto.Forms.Application.OnUnhandledException(UnhandledExceptionEventArgs e)   at Eto.Forms.Application.Callback.OnUnhandledException(Application widget, UnhandledExceptionEventArgs e)   at Eto.Wpf.Forms.ApplicationHandler.OnDispatcherUnhandledException(Object sender, DispatcherUnhandledExceptionEventArgs e)   at System.Windows.Threading.Dispatcher.CatchException(Exception e)   at System.Windows.Threading.Dispatcher.CatchExceptionStatic(Object source, Exception e)   at System.Windows.Threading.ExceptionWrapper.CatchException(Object source, Exception e, Delegate catchHandler)   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)   at System.Windows.Threading.DispatcherOperation.InvokeImpl()   at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)--- End of stack trace from previous location ---   at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)   at System.Windows.Threading.DispatcherOperation.Invoke()   at System.Windows.Threading.Dispatcher.ProcessQueue()   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)   at System.Windows.Threading.Dispatcher.Run()   at System.Windows.Application.RunDispatcher(Object ignore)   at System.Windows.Application.RunInternal(Window window)   at System.Windows.Application.Run(Window window)   at Eto.Wpf.Forms.ApplicationHandler.Run()   at Eto.Forms.Application.Run()   at Mendix.Modeler.MainWindow.ProgramInitializer.Start() in Mendix.Modeler.MainWindow\ProgramInitializer.cs:line 60   at Mendix.StudioPro.Windows.Program.Main() in Mendix.StudioPro.Windows\Program.cs:line 19
asked
2 answers
1

Hi,

Try cleaning the deployment directory and reimport the widget again

answered
1

I have the same issue, cleaning deployment directory doesn't work. Adding the widget to a page of snippet triggers the error, and when clicking close nothing happens and the whole modeler crashes. This is version 10.12.8 btw. Other members of the team don't have this issue.

 

Is there a solution yet?

answered