8.x Create a save button

From the toolbox, select a button control and place it (and size it) appropriately on the form you are customizing. (Add whatever appropriate button verbage text is needed also).

Go to Form wizard, select epibutton as the control and your specific newly added custom button as the specific control.

Not being familiar with touch screens myself, I'm not sure what available event to select that translates to a touch screen tap/press of the button... Try 'mouse down' or similar variants.

Inside the generated event subroutine. Add a simple messagebox.show("button pushed") message to use to test that you have selected the proper button event that will work with touchscreens.

Save the customization and test it, trying new button events until you get one that works.

Go back in and replace the messagebox.show statement with otrans.update().

That will save the current record state on screen when the button is pressed.

Rob Brown

--- On Wed, 5/28/08, Aaron Hoyt <aaron.hoyt@...> wrote:
From: Aaron Hoyt <aaron.hoyt@...>
Subject: [Vantage] 8.x Create a save button
To: vantage@yahoogroups.com
Date: Wednesday, May 28, 2008, 2:31 PM











Good afternoon group,

I am looking for code that I can attach to a button (customization) that

will cause a form to execute it's save function. I am trying to

customize a MES screen with a button that is big enough for someone to

tap with a finger on a touch screen that will save the current record

similar to the old OK buttons in 6.1. Can anyone help me out with the

correct VB code? I just need to basically duplicate the code for the

save button.

Thanks,

Aaron Hoyt

Vantage Plastics
Good afternoon group,
I am looking for code that I can attach to a button (customization) that
will cause a form to execute it's save function. I am trying to
customize a MES screen with a button that is big enough for someone to
tap with a finger on a touch screen that will save the current record
similar to the old OK buttons in 6.1. Can anyone help me out with the
correct VB code? I just need to basically duplicate the code for the
save button.
Thanks,
Aaron Hoyt
Vantage Plastics
If you are on version 8+, the .Update() call should work in the button click event for your custom button

eg:

Private oTrans As Epicor.Mfg.UI.App.POEntry.Transaction

Private Sub mybtn_click(ByVal Sender As Object, ByVal Args As System.EventArgs) Handles mybtn.click
oTrans.Update()
end sub


Please note that the oTrans variable declaration is almost always included in whatever customization you are doing - you probably will not need to declare it.

Thanks,
Kunal



----- Original Message ----
From: Aaron Hoyt <aaron.hoyt@...>
To: vantage@yahoogroups.com
Sent: Wednesday, May 28, 2008 1:31:08 PM
Subject: [Vantage] 8.x Create a save button


Good afternoon group,
I am looking for code that I can attach to a button (customization) that
will cause a form to execute it's save function. I am trying to
customize a MES screen with a button that is big enough for someone to
tap with a finger on a touch screen that will save the current record
similar to the old OK buttons in 6.1. Can anyone help me out with the
correct VB code? I just need to basically duplicate the code for the
save button.
Thanks,
Aaron Hoyt
Vantage Plastics





[Non-text portions of this message have been removed]