Sorry if this question has been asked in the past, but I have had not been able to find a solution so far.
I have a working E9 customization where I have added the part IUM to the Cost Adjustment screen. I do so by pulling the related part table data and plucking out the IUM. I do so using the ConnectionPool like this:
Epicor.Mfg.Core.Session objSession = oTrans.Session as Epicor.Mfg.Core.Session;
Epicor.Mfg.BO.Part adpPart = new Epicor.Mfg.BO.Part(objSession.ConnectionPool);
Epicor.Mfg.BO.PartDataSet dsPart = new Epicor.Mfg.BO.PartDataSet();
try
{
if (txtPart.Text.ToString() != "")
{
dsPart = adpPart.GetByID(txtPart.Text.ToString());
if (dsPart.Tables[0].Rows.Count > 0)
txtIUM.Text = dsPart.Part.Rows[0]["IUM"].ToString();
}
}
catch (Exception Ex)
{
txtIUM.Text = "";
}
// Cleanup
dsPart.Dispose();
From what I have read here on the group, ConnectionPool is no longer available in E10 so I'm searching for an equivalent way in E10. I am certainly open to other ideas if someone has a better way of accomplishing the same task.
Thanks,
Tim
Jose C Gomez
T: 904.469.1524 mobile
Quis custodiet ipsos custodes?
On Fri, Mar 11, 2016 at 10:38 AM, tvonderhaar@... [vantage] <vantage@yahoogroups.com> wrote:Â<div> <p></p><p><span>Sorry if this question has been asked in the past, but I have had not been able to find a solution so far.</span></p><p><span><br></span></p><p><span>I have a working E9 customization where I have added the part IUM to the Cost Adjustment screen. I do so by pulling the related part table data and plucking out the IUM. I do so using the ConnectionPool like this:</span></p><p><span><br></span></p><p><span>  Epicor.Mfg.Core.Session objSession = oTrans.Session as Epicor.Mfg.Core.Session;<br>       Epicor.Mfg.BO.Part adpPart = new Epicor.Mfg.BO.Part(objSession.ConnectionPool);<br>       Epicor.Mfg.BO.PartDataSet dsPart = new Epicor.Mfg.BO.PartDataSet();    </span></p><p><span>  try<br>  {<br>   if (txtPart.Text.ToString() != "")<br>   {<br>         dsPart = adpPart.GetByID(txtPart.Text.ToString());<br>    if (dsPart.Tables[0].Rows.Count > 0) <br>     txtIUM.Text = dsPart.Part.Rows[0]["IUM"].ToString();<br>   } <br>  } <br>  catch (Exception Ex)<br>  {<br>   txtIUM.Text = "";<br>  }<br>  // Cleanup<br>  dsPart.Dispose();</span></p><p><span><br></span></p><p><span>From what I have read here on the group, ConnectionPool is no longer available in E10 so I'm searching for an equivalent way in E10. I am certainly open to other ideas if someone has a better way of accomplishing the same task.</span></p><p><span><br></span></p><p><span>Thanks,</span></p><p><span>Tim</span></p><p></p> </div> <div style="color:#fff;min-height:0;"></div>