Skip to content

Instantly share code, notes, and snippets.

@strepicor
strepicor / Customization.epicor
Last active November 6, 2019 11:13
Epicor Customization - Reference Epicor native control
EpiUltraCombo cboTypeCode = (EpiUltraCombo)csm.GetNativeControlReference("5875b95a-4b6a-4e4c-b8c8-22ee5330ed40");
cboTypeCode.Enabled = false;
@strepicor
strepicor / Customization.epicor
Last active September 13, 2022 08:56
Epicor Customization - Retrive filtered data from Adaptor
private void CallUserCodesAdapterGetListMethod()
{
// Declare and Initialize EpiDataView Variables
// Declare and create an instance of the Adapter.
UserCodesAdapter adapterUserCodes = new UserCodesAdapter(this.oTrans);
adapterUserCodes.BOConnect();
// Build where clause for search.
string whereClause = "CodeID = \'1\'";
@strepicor
strepicor / BPM.txt
Created October 28, 2016 06:45
Epicor BPM - Acess newly added row data from BPM C# code
//Example
foreach(var ttPart_iterator in (from ttPart_Row in ttPart where String.Compare(ttPart_Row.RowMod, "A", true)==0 select ttPart_Row))
{
string partNum = ttPart_iterator.PartNum;
}
@strepicor
strepicor / Customization.txt
Created October 28, 2016 05:16
Epicor Customization - Rename UD Table Form's New Menu Items
baseToolbarsManager.Tools["EpiAddNewnewParent"].SharedProps.Caption = "Your Parent New Menu Item Name" ;
baseToolbarsManager.Tools["EpiAddNewnewChild"].SharedProps.Caption = "Your Child New Menu Item Name" ;
@strepicor
strepicor / Customization.txt
Last active May 4, 2017 12:12
Epicor Customization - Rename Form Treeview Container and Treeview Root Node
//Add this code to InitializeCustomCode() event
//Change Treeview Root Note text
EpiTreeViewPanel tvp = (EpiTreeViewPanel)(oTrans.EpiBaseForm.GetType().InvokeMember("epiTreeViewPanel1", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.GetField | System.Reflection.BindingFlags.NonPublic, null, oTrans.EpiBaseForm, null));
tvp.RootNodeText = "Your Root Node Text";
//Change Treeview Panel Title
Infragistics.Win.UltraWinDock.DockableWindow dockWindow = (Infragistics.Win.UltraWinDock.DockableWindow) tvp.Parent;
Infragistics.Win.UltraWinDock.DockableControlPane dockPane = (Infragistics.Win.UltraWinDock.DockableControlPane) dockWindow.Pane;
dockPane.Text = "Your Treeview Panel Title Text";
@strepicor
strepicor / BPM.txt
Last active April 11, 2025 17:05
Epicor BPM - Display Message Box
this.PublishInfoMessage("Message Text", Ice.Common.BusinessObjectMessageType.Information, Ice.Bpm.InfoMessageDisplayMode.Individual, "", "");