Fire Toolbar function from c#

Here you go, this is what the button click does, just have this happen when you want it. No need to "Clicl the Tool Bar"
if (oTrans.Update())
{

    oTrans.SetReadyToCalc();

}

          


Jose C Gomez
Software Engineer


T: 904.469.1524 mobile


Quis custodiet ipsos custodes?


On Tue, Feb 11, 2014 at 1:09 PM, <kflatford@...> wrote:

 
<div>
  
  
  <p></p><p>Order form, Action menu, Order-&gt;CalculateTax</p><p></p>

</div>
 


<div style="color:#fff;min-height:0;"></div>

In Epicor, is there a way to fire a toolbar item click from C#. For example: On the Sales Order Entry screen I need to call the CalculateTaxTool from C# because the tax is not being recalculated as we change misc charges. 

You would have to get the reference of that tool (kind of a pain, but not impossible by any means) then call obj.PerformClick() on that tool.

 

Joshua Giese

CIO

920.437.6400 Ext. 337

Site ID: 27450-E905700B2-SQL64

Wisconsin Converting, Inc.

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of kflatford@...
Sent: Monday, February 10, 2014 1:11 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Fire Toolbar function from c#

 

 

In Epicor, is there a way to fire a toolbar item click from C#. For example: On the Sales Order Entry screen I need to call the CalculateTaxTool from C# because the tax is not being recalculated as we change misc charges. 

We see PerformClick on a button, but not on the Button Tool (this is a tool under the Actions Menu/Order/CaculateTax).  Has anyone tried to cause a toolbar item to click?

The best thing might be to call the underlaying function. Which button on Which Form are you using?



Jose C Gomez
Software Engineer



T: 904.469.1524 mobile


Quis custodiet ipsos custodes?


On Tue, Feb 11, 2014 at 10:31 AM, <kflatford@...> wrote:

 
<div>
  
  
  <p></p><p>We see PerformClick on a button, but not on the Button Tool (this is a tool under the Actions Menu/Order/CaculateTax). &nbsp;Has anyone tried to cause a toolbar item to click?</p><p></p>

</div>
 


<div style="color:#fff;min-height:0;"></div>

Order form, Action menu, Order->CalculateTax