Skip to content

Instantly share code, notes, and snippets.

@strepicor
strepicor / BPM.txt
Last active July 20, 2021 15:55
Epicor BPM - Display Message Box
this.PublishInfoMessage("Message Text", Ice.Common.BusinessObjectMessageType.Information, Ice.Bpm.InfoMessageDisplayMode.Individual, "", "");
@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 / 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 / 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.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 / 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 April 2, 2024 02:19
Epicor Customization - Retrieve Data from a BAQ
// Add a reference to "Ice.Contracts.Bo.DynamicQuery"
public struct BaqParam
{
public BaqParam(string paramName, string paramType, string paramValue)
{
this.ParamName = paramName;
this.ParamType = paramType;
this.ParamValue = paramValue;
@strepicor
strepicor / Customization.epicor
Last active April 2, 2024 02:23
Epicor Customization - Update fields using an adaptor
JobEntryAdapter adapterJobEntry = new JobEntryAdapter(this.oTrans);
adapterJobEntry.BOConnect();
DataSet dsJobDetails = adapterJobEntry.GetData(jobNum);
DataRow dr = adapterJobEntry.JobEntryData.JobHead.Rows[0];
dr.BeginEdit();
dr["FieldName_c"] = newValue;
@strepicor
strepicor / Customization.epicor
Created December 9, 2016 09:07
Epicor Customization - Hide Default Treeview Panel
using System.Reflection;
public class Script
{
Infragistics.Win.UltraWinDock.UltraDockManager dock;
public void InitializeCustomCode()
{
@strepicor
strepicor / Customization.epicor
Created December 16, 2016 05:41
Epicor Customization - Create EpiDataView Refernce
EpiDataView edvViewName = ((EpiDataView)(this.oTrans.EpiDataViews["ViewName"]));