Skip to content

Instantly share code, notes, and snippets.

@tdcbm
Last active June 24, 2020 16:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tdcbm/e76837b768cee87bc0491256cafbbdc5 to your computer and use it in GitHub Desktop.
Save tdcbm/e76837b768cee87bc0491256cafbbdc5 to your computer and use it in GitHub Desktop.
Epicor Launch Form with parameters
//Code src: http://lethanhname.blogspot.co.id/2014/03/epicor-launch-form-with-parameters.html
public void CallLot(string PartNum,string LotNum)
{
try
{
string[] CompoundKeys =new string[]{PartNum,LotNum};
CompoundKeyBinding cb=new CompoundKeyBinding(CompoundKeys,null,null);
LaunchFormOptions opts = new LaunchFormOptions();
opts.ValueIn=cb;
ProcessCaller.LaunchForm(oTrans, "IMMT1051", opts);
}
catch (Exception exception)
{
ExceptionBox.Show(exception);
}
}
LaunchFormOptions launchObject = new LaunchFormOptions();
launchObject.IsModal = true;
Hashtable hashtable = new Hashtable();
hashtable.Add("CashDeskID", this.CashDeskID);
hashtable.Add("ReferenceNum", this.ReferenceNum);
launchObject.ValueIn = hashtable;
ProcessCaller.LaunchForm(this, "Epicor.Mfg.UIRpt.PrintPettyCashDoc", launchObject);
launchObject.IsModal = true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment