Change Log Access when no Toolbar Icon exists

Here's the detailed process to customize a form button to access the change log. This was done with 9.05.605 on the DMR Processing form but should work for any form with minor modification to step 5.

1. Open DMR Processing in development mode then click Tools > Customization from the menu.
2. In the Customization Tools Dialog window click Tools > Assembly Reference manager, then scroll down and select Epicor.Mfg.AD.ChgLog.dll.
3. Open the Toolbox (Tools > Toolbox) and select EpiButton to place a button on the form. The default name will be epiButtonC1.
4. In the Customization Tools Dialog window, go to the Wizards tab, then the Event Wizard tab. Set values as follows:

Control Type Filter = EpiButton
Custom Control = epiButtonC1
Available Control Events = Click

Click the right arrow and you will see the following three lines of code entered into the Control Event Code field.

Private Sub epiButtonC1_Click(ByVal sender As Object, ByVal args As System.EventArgs)
' ** Place Event Handling Code Here **
End Sub

5. Replace the second line with the following three lines. Replace all occurences of DMRHead with the name of the table where you have defined a BAM.

dim edvDMRHead as EpiDataView = CType(oTrans.EpiDataViews("DMRHead"),EpiDataView)
dim chg as Epicor.Mfg.UI.App.ChgLogEntry.ChgLogArgs
chg.Start(oTrans,"DMRHead",edvDMRHead.dataView(edvDMRHead.Row)("RowIdent").ToString(),true)

6. Click the Update All Event Code button at the bottom of the form.
Has anyone cracked this in 9.05? There are a couple of posts showing VB
code for 8.03 but I haven't been able to get it working in 9.05.

V8.03.4xx Change Log
<http://tech.groups.yahoo.com/group/vantage/message/84779>
Re: Change Log for HDCase Table
<http://tech.groups.yahoo.com/group/vantage/message/95340>

In our case, it's the DMR Processing screen where we need access to the
change log. Maybe a BAQ or dashboard is the way to go but I was hoping
for something integrated with the form.

Thanks,
Brad



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