Mar 20, 2014

Epicor Launch Form with parameters

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;

0 comments:

Post a Comment

Nam Le © 2014 - Designed by Templateism.com, Distributed By Templatelib