Jose suggested:
imports System.Reflection
...
...
...
Dim mi as System.Reflection.MethodInfo
'// Thanks to Jose Gomez for the Save code
mi = GetType(Epicor.Mfg.UI.App.SerialNumberAssignmentEntry.Transaction).GetMethod("Update", BindingFlags.NonPublic Or BindingFlags.Instance)
mi.Invoke(oTrans, new object() {})
This compiles and runs like a champ. Thanks Jose!
Mark W.
> since the Update method its private you'll have to use ReflectorSince this was one of my older customizations, it was in VB and that translated to:
> to get at it.
> Include in your customization System.Reflection.
>
> Then do something like this (note I am writing this out of memory
> so the syntax may not be 100%)
> MethodInfo mi =
> typeof(Epicor.Mfg.UI.App.YourForm.Transaction).GetMethod("Update"),
> BindingFlags.NonPublic | BindingFlags.Instance);
> mi.Invoke(oTrans, new object[] { });
>
imports System.Reflection
...
...
...
Dim mi as System.Reflection.MethodInfo
'// Thanks to Jose Gomez for the Save code
mi = GetType(Epicor.Mfg.UI.App.SerialNumberAssignmentEntry.Transaction).GetMethod("Update", BindingFlags.NonPublic Or BindingFlags.Instance)
mi.Invoke(oTrans, new object() {})
This compiles and runs like a champ. Thanks Jose!
Mark W.