I usually start w/ making the button & using the wizard to create the event. Then throw in code depending on what I want.
Call a Form:
private void xOpenMemo_Click(object sender, System.EventArgs args)
{
ProcessCaller.LaunchForm(oTrans, "SHIPMEMO");
}
Trigger a BPM:
Private Sub epiButtonC1_Click(ByVal sender As Object, ByVal args As System.EventArgs)
Try
Dim objUD05 As New Epicor.Mfg.BO.UD05(MainController.Session.ConnectionPool)
Dim UD05ds As New Epicor.Mfg.BO.UD05Dataset
Dim output As string
UD05ds = objUD05.getByID("Reports","","","","")
IF UD05ds.UD05.Rows(0)("Checkbox03") = True THEN
UD05ds.UD05.Rows(0)("Checkbox03") = FALSE
ELSE IF UD05ds.UD05.Rows(0)("Checkbox03") = FALSE THEN
UD05ds.UD05.Rows(0)("Checkbox03") = True
END IF
objUD05.Update(UD05ds)
Catch ex AS exception
Messagebox.show(ex.tostring)
End Try
End Sub
Brenda
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
On Behalf Of ryan@...
Sent: Thursday, October 17, 2013 8:36 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Launch a dashboard from a button
Good morning... Epicor 9.05.702
How might one go about launching a dashboard (or perhaps other things) from a custom button slapped on Quote Entry and Sales Order Entry? (This may answer another question regarding putting buttons on dashboard trackers)
I imagine it's a C# modification, but is it possible to to do this with the wizard tools or can someone supply a brief code snippet of what I'd need?
Also a step-by-step something like:
1. Create button on screen...
2. Then...
3. Then..
4. It works!
:)
Thanks again,
Ryan M.