Customization->Wizards Tab->Form Event Wizard Tab->
1) Select AfterAdapterMethod or BeforeAdapterMethod ( I would think
after AdapterMethod)
2) Select CustomerAdapter
Then is the code make a case for GetByID. Uncomment out the messagebox
line to see the method names if your not sure.
The following is the results.
Private Sub oTrans_customerAdapter_AfterAdapterMethod(ByVal sender As
object, ByVal args As AfterAdapterMethodArgs) Handles
oTrans_customerAdapter.AfterAdapterMethod
'// ** Argument Properties and Uses **
'// args.MethodName
'
'Add Event Handler Code
'
'MessageBox.Show(args.MethodName) ' use this to find method
Select Case args.MethodName
Case "Update"
Case Else
End Select
End Sub
Private Sub oTrans_customerAdapter_BeforeAdapterMethod(ByVal sender As
object, ByVal args As BeforeAdapterMethodArgs) Handles
oTrans_customerAdapter.BeforeAdapterMethod
'// ** Argument Properties and Uses **
'// args.MethodName, args.Cancel
'
'Add Event Handler Code
'
'MessageBox.Show(args.MethodName) ' use this to find method
Select Case args.MethodName
Case "Update"
'Dim dRes As DialogResult = MessageBox.Show("Cancel Update?",
"Cancel", MessageBoxButtons.YesNo)
'If (dRes = DialogResult.Yes) Then
'args.Cancel = True
'Else
' 'Do Something Else
'End If
Case Else
End Select
End Sub
________________________________
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Randy Weber
Sent: Wednesday, September 30, 2009 9:26 AM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] V8.03x Customization Retrieve Event
Sorry, but I don't understand. I start with the form event wizard and
don't see a GetById event. Is this an event? Can you reply with sample
event trigger proedure. And where would I find this event if it's not in
the GUI?
Thanks,
Randy weber
From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
Behalf
Of Dan Godfrey
Sent: Wednesday, September 30, 2009 11:23 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Subject: RE: [Vantage] V8.03x Customization Retrieve Event
I would think the pre or post event for GetByID would work.
________________________________
From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> ] On
Behalf
Of randyweb
Sent: Wednesday, September 30, 2009 8:39 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
Subject: [Vantage] V8.03x Customization Retrieve Event
I am trying to trigger some code when we first load or pull up a
customer in customer maintenance. I thought the Retrieve event would
work. I want it to trigger when a customer is selected either by
searching or by typing in the CustId, but the event does not trigger.
Which event triggers when a new record is retrieved, and if it's not the
retrieve event, what IS the retrieve event?
Private Sub CustomerEntryForm_Retrieve(ByVal args As
EpiRetrieveEventArgs) Handles CustomerEntryForm.Retrieve
'
'Add Event Handler Code
'
messagebox.show("Retrieve Event")
End Sub
thanks in advance,
randy weber
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
1) Select AfterAdapterMethod or BeforeAdapterMethod ( I would think
after AdapterMethod)
2) Select CustomerAdapter
Then is the code make a case for GetByID. Uncomment out the messagebox
line to see the method names if your not sure.
The following is the results.
Private Sub oTrans_customerAdapter_AfterAdapterMethod(ByVal sender As
object, ByVal args As AfterAdapterMethodArgs) Handles
oTrans_customerAdapter.AfterAdapterMethod
'// ** Argument Properties and Uses **
'// args.MethodName
'
'Add Event Handler Code
'
'MessageBox.Show(args.MethodName) ' use this to find method
Select Case args.MethodName
Case "Update"
Case Else
End Select
End Sub
Private Sub oTrans_customerAdapter_BeforeAdapterMethod(ByVal sender As
object, ByVal args As BeforeAdapterMethodArgs) Handles
oTrans_customerAdapter.BeforeAdapterMethod
'// ** Argument Properties and Uses **
'// args.MethodName, args.Cancel
'
'Add Event Handler Code
'
'MessageBox.Show(args.MethodName) ' use this to find method
Select Case args.MethodName
Case "Update"
'Dim dRes As DialogResult = MessageBox.Show("Cancel Update?",
"Cancel", MessageBoxButtons.YesNo)
'If (dRes = DialogResult.Yes) Then
'args.Cancel = True
'Else
' 'Do Something Else
'End If
Case Else
End Select
End Sub
________________________________
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Randy Weber
Sent: Wednesday, September 30, 2009 9:26 AM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] V8.03x Customization Retrieve Event
Sorry, but I don't understand. I start with the form event wizard and
don't see a GetById event. Is this an event? Can you reply with sample
event trigger proedure. And where would I find this event if it's not in
the GUI?
Thanks,
Randy weber
From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
Behalf
Of Dan Godfrey
Sent: Wednesday, September 30, 2009 11:23 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Subject: RE: [Vantage] V8.03x Customization Retrieve Event
I would think the pre or post event for GetByID would work.
________________________________
From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> ] On
Behalf
Of randyweb
Sent: Wednesday, September 30, 2009 8:39 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
Subject: [Vantage] V8.03x Customization Retrieve Event
I am trying to trigger some code when we first load or pull up a
customer in customer maintenance. I thought the Retrieve event would
work. I want it to trigger when a customer is selected either by
searching or by typing in the CustId, but the event does not trigger.
Which event triggers when a new record is retrieved, and if it's not the
retrieve event, what IS the retrieve event?
Private Sub CustomerEntryForm_Retrieve(ByVal args As
EpiRetrieveEventArgs) Handles CustomerEntryForm.Retrieve
'
'Add Event Handler Code
'
messagebox.show("Retrieve Event")
End Sub
thanks in advance,
randy weber
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]