The ActiveNode can only be set to a node that belongs to this co

Shrink it? and save the layout /customization?


Jose C Gomez

Software Engineer


T: 904.469.1524 mobile
E: jose@…

http://www.josecgomez.com
     Â


Quis custodiet ipsos custodes?


On Fri, Jan 10, 2014 at 10:30 AM, <livingstonmh@...> wrote:

Â
<div>
  
  
  <p></p><p>I would try that, but the form will not let me select the panel. I even tried adding a custom object to it and it just showed up under the main panel on the customization screen tree. <var></var></p><p></p>



</div>
 


<div style="color:#fff;min-height:0;"></div>

In a customization on UD100 I have removed the tree view using:

  Epicor.Mfg.UI.FrameWork.EpiTreeViewPanel TreeViewPanel = (Epicor.Mfg.UI.FrameWork.EpiTreeViewPanel)csm.GetNativeControlReference("8f08953f-b49f-4fb5-ba14-3c5102fd6b0c");
  TreeViewPanel.Dispose();

 

under the Initialize custom code event.

 

I am now getting an error "The ActiveNode can only be set to a node that belongs to this control." when selecting new from the file menu.

 

The reason I have hidden the tree view was because I have customized the form so much that selecting any records from UD100A was giving me errors. So instead of having the user select from the tree I just hid the tree. Here is the error I got when selecting a child record:

System.NullReferenceException: Object reference not set to an instance of an object.
   at Epicor.Mfg.UI.App.UD100Entry.UD100Form.EpiTreeView_EpiNodeChanged(EpiNodeChangedArgs args)
   at Epicor.Mfg.UI.FrameWork.EpiTreeView.OnNodeSelected(Object sender, SelectEventArgs e)
   at Infragistics.Win.UltraWinTree.UltraTree.OnAfterSelect(SelectEventArgs e)
   at Infragistics.Win.UltraWinTree.UltraTree.FireEvent(TreeEventIds id, EventArgs e)
   at Infragistics.Win.UltraWinTree.UltraTree.SelectNewSelection(SelectedNodesCollection selected, Boolean isRangeSelect, Boolean invalidate)
   at Infragistics.Win.UltraWinTree.UltraTree.InternalSelectItem(ISelectableItem item, Boolean clearExistingSelection, Boolean select, Boolean invalidate)
   at Infragistics.Win.UltraWinTree.UltraTree.Infragistics.Win.ISelectionManager.SelectItem(ISelectableItem item, Boolean clearExistingSelection)
   at Infragistics.Win.SelectionStrategySingle.OnMouseDown(ISelectableItem item, MouseMessageInfo& msginfo, Boolean forceDrag)
   at Infragistics.Win.SelectionStrategySingle.OnMouseDown(ISelectableItem item, MouseMessageInfo& msginfo)
   at Infragistics.Win.SelectionStrategySingle.OnMouseMessage(ISelectableItem item, MouseMessageInfo& msginfo)
   at Infragistics.Win.ControlUIElementBase.ProcessMouseDownHelper(Object sender, MouseEventArgs e)
   at Infragistics.Win.ControlUIElementBase.ProcessMouseDown(Object sender, MouseEventArgs e)
   at Infragistics.Win.Utilities.ProcessEvent(Control control, ProcessEvent eventToProcess, EventArgs e)
   at Infragistics.Win.UltraControlBase.OnMouseDown(MouseEventArgs e)
   at Infragistics.Win.UltraWinTree.UltraTree.OnMouseDown(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

 

Any one have any suggestions?

Try hiding the tree instead of disposing. There is a lot of NATIVE code that makes use of that tree and when you "dipose" its going to throw errors. Though I would try to just fix the initial error.


Jose C Gomez
Software Engineer


T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com

     Â


Quis custodiet ipsos custodes?


On Fri, Jan 10, 2014 at 9:30 AM, <livingstonmh@...> wrote:

Â
<div>
  
  
  <p></p><p>In a customization on UD100 I have removed the tree view using:</p><p>Â Â Epicor.Mfg.UI.FrameWork.EpiTreeViewPanel TreeViewPanel = (Epicor.Mfg.UI.FrameWork.EpiTreeViewPanel)csm.GetNativeControlReference(&quot;8f08953f-b49f-4fb5-ba14-3c5102fd6b0c&quot;);<br>

  TreeViewPanel.Dispose();

Â

under the Initialize custom code event.

Â

I am now getting an error "The ActiveNode can only be set to a node that belongs to this control." when selecting new from the file menu.

Â

The reason I have hidden the tree view was because I have customized the form so much that selecting any records from UD100A was giving me errors. So instead of having the user select from the tree I just hid the tree. Here is the error I got when selecting a child record:

System.NullReferenceException: Object reference not set to an instance of an object.
  at Epicor.Mfg.UI.App.UD100Entry.UD100Form.EpiTreeView_EpiNodeChanged(EpiNodeChangedArgs args)
  at Epicor.Mfg.UI.FrameWork.EpiTreeView.OnNodeSelected(Object sender, SelectEventArgs e)

  at Infragistics.Win.UltraWinTree.UltraTree.OnAfterSelect(SelectEventArgs e)
  at Infragistics.Win.UltraWinTree.UltraTree.FireEvent(TreeEventIds id, EventArgs e)
  at Infragistics.Win.UltraWinTree.UltraTree.SelectNewSelection(SelectedNodesCollection selected, Boolean isRangeSelect, Boolean invalidate)

  at Infragistics.Win.UltraWinTree.UltraTree.InternalSelectItem(ISelectableItem item, Boolean clearExistingSelection, Boolean select, Boolean invalidate)
  at Infragistics.Win.UltraWinTree.UltraTree.Infragistics.Win.ISelectionManager.SelectItem(ISelectableItem item, Boolean clearExistingSelection)

  at Infragistics.Win.SelectionStrategySingle.OnMouseDown(ISelectableItem item, MouseMessageInfo& msginfo, Boolean forceDrag)
  at Infragistics.Win.SelectionStrategySingle.OnMouseDown(ISelectableItem item, MouseMessageInfo& msginfo)

  at Infragistics.Win.SelectionStrategySingle.OnMouseMessage(ISelectableItem item, MouseMessageInfo& msginfo)
  at Infragistics.Win.ControlUIElementBase.ProcessMouseDownHelper(Object sender, MouseEventArgs e)

  at Infragistics.Win.ControlUIElementBase.ProcessMouseDown(Object sender, MouseEventArgs e)
  at Infragistics.Win.Utilities.ProcessEvent(Control control, ProcessEvent eventToProcess, EventArgs e)
  at Infragistics.Win.UltraControlBase.OnMouseDown(MouseEventArgs e)

  at Infragistics.Win.UltraWinTree.UltraTree.OnMouseDown(MouseEventArgs e)
  at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
  at System.Windows.Forms.Control.WndProc(Message& m)

  at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
  at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
  at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Â

Any one have any suggestions?

</div>
 


<div style="color:#fff;min-height:0;"></div>

ok I tried using Visible = false; which hid the actual tree, but it left the panel visible.

Do the same with the panel?


Jose C Gomez

Software Engineer


T: 904.469.1524 mobile
E: jose@…

http://www.josecgomez.com
     Â


Quis custodiet ipsos custodes?


On Fri, Jan 10, 2014 at 10:08 AM, <livingstonmh@...> wrote:

Â
<div>
  
  
  <p></p><p>ok I tried using Visible = false; which hid the actual tree, but it left the panel visible.<var></var></p><p></p>

</div>
 


<div style="color:#fff;min-height:0;"></div>

I would try that, but the form will not let me select the panel. I even tried adding a custom object to it and it just showed up under the main panel on the customization screen tree.