Skip to content

Instantly share code, notes, and snippets.

// Display both date and time in column
EpiUltraGrid grid = (EpiUltraGrid)csm.GetNativeControlReference("{GUID}");
grid.DisplayLayout.Bands[0].Columns[2].MaskInput = "hh:mm tt";
grid.DisplayLayout.Bands[0].Columns[2].MaskDisplayMode = Infragistics.Win.UltraWinMaskedEdit.MaskMode.IncludeBoth;
/*
In many Epicor10 foms,there are controls that cannot be accessd directly because they are not stanard control types.
For example, on the IssueReturn form, the From Warehouse dropdown is a control of type Erp.Adapters.Controls.IRWarehouseCombo. But I am unable to use this control type in the script section in the standard fashion:
IRWarehouseCombo cbo = (IRWarehouseCombo)csm.GetNativeControlReference("GUID");
This makes it difficult to change the value of this field. However, you can do so by
1. Changing the value of the underlying form data
2. Creating a generic reference to the IRWarehouseCombo element
3. Updating the generic reference
/*
If you are using a custom schema for your DbContext, you need to tell Entity Framework where to look for the migraton history table in order to use code-first data migratios. To do this, create a new HistoryContext class as follows.
Failure to do this wll result in the following Package Manager error:
Automatic migrations that affect the location of the migrations history system table (such as default schema changes) are not supported. Please use code-based migrations for operations that affect the location of the migrations history system table.
*/
using System.Data.Common;
using System.Data.Entity;
using System.Data.Entity.Migrations.History;
public static string SplitStringByCase(this string str)
{
if (!string.IsNullOrWhiteSpace(str))
{
return Regex.Replace(str, "[A-Z0-9]((?![A-Z0-9].)|(?<![A-Z0-9].))", " $0").Trim();
}
else
{
return "";
}
// Hide the min/max/close buttons:
this.ControlBox = false;

Outlook has a hidden feature, QueryBuilder, which can be very useful for those of you who need to define complex criteria for Search Folders or Advanced Find.

To add the QueryBuilder key to the registry, follow these steps:

  • Quit Outlook.
  • Click Start, and then click Run.
  • In the Open box, type regedit,and then click OK.
  • Locate the following key in the registry based on your installed version:
@lockworld
lockworld / Shortcut to clear clipboard.md
Last active February 6, 2018 14:38
General tips and tricks for making Windows run faster, better, smoother, or more personalized.

I found some instructions to create a shortcut that will clear your clipboard when you double-click on it. You can follow the instructions below to create your own shortcut: Clear Clipboard Shortcut

Right-click on the desktop or elsewhere, and choose New==>Shortcut from the menu.

Then in the shortcut location box, enter the following command:

cmd /c “echo off | clip”
@lockworld
lockworld / Force application to run as administrator.md
Last active February 7, 2023 16:25
Use caution when editing the registry! This can cause instability in your system and even render your OS inoperable.

To force any application to run as an administrator (Even, for example, when you open it by double-clicking on an associated file type), create a new registry entry in

\!h Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers

This should be a string value with the name set to the path for the executable that you want to run as an administrator. The below example is for Visual Studio 2015:

\!h C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe
@lockworld
lockworld / 000 Epicor Standard Practice Snippets.md
Last active January 3, 2024 11:38
Code snippets intended to be reused throughout the Epicor 10 implementation.

A set of gists for re-use throughout various Epicor customizations.

@lockworld
lockworld / General Notes.md
Last active August 24, 2018 14:36
Helpful tips and commands for Epicor Dashboards

Create a tracker view on your dashboard using the date field you want for the range. Check Honor Prompts and then use greater than or equal to for that field. After you create the tracker field, right click and select customize tracker view. From the toolbox menu, select date/time combo box and add it to your tracker view next to your date range. In the customization properties, select the field and then for is tracker query control select = True. It will then open up the fields you want to use. Select the date field you originally used in your tracker. Under honor dashboard prompts select True and then set your compare to less than or equal to.

Close out of customization view and on your tracker your will have a date range

http://erp.ittoolbox.com/groups/technical-functional/epicor-l/epicor-e9-dashboard-4746821