Good day, in the mass receipt window, I added my own process button and tried to have it execute some BO from the trace I have. Once the button is clicked, it runs those method calls but nothing happens. It should work based on the methods I am calling but does not do anything. The method call is below:
private void btnProcess_Click(object sender, System.EventArgs args)
{
// ** Place Event Handling Code Here **
CallReceiptAdapterAutoSetToLocationToDfltMethod();
//CallReceiptAdapterAutoSetToLocationMethod();
//CallReceiptAdapterCommitRcvDtlMethod();
}
private void CallReceiptAdapterAutoSetToLocationToDfltMethod()
{
try
{
// Declare and Initialize EpiDataView Variables
// Declare and create an instance of the Adapter.
ReceiptAdapter adapterReceipt = new ReceiptAdapter(this.oTrans);
adapterReceipt.BOConnect();
// Call Adapter method
bool result = adapterReceipt.AutoSetToLocationToDflt();
// Cleanup Adapter Reference
adapterReceipt.Dispose();
} catch (System.Exception ex)
{
ExceptionBox.Show(ex);
}
}