How to catch "Save" event in V8 vb.net

when you write code like this, how to you setup/use it in vantage?


________________________________

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Stephen Edginton
Sent: Wednesday, November 01, 2006 5:26 PM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] how to catch "Save" event in V8 vb.net



Joe,

Sorry I did not actually test that last code. Note sure
exactly what you are trying to do but, You can always use the following
(this detects changes made to the CommentText in DMR head.

Private Sub DMRHead_BeforeFieldChange(ByVal sender As object, ByVal args
As DataColumnChangeEventArgs) Handles DMRHead_Column.ColumnChanging

'// ** Argument Properties and Uses **

'// args.Row("[FieldName]")

'// args.Column, args.ProposedValue, args.Row

'

'Add Event Handler Code

'

Select Case args.Column.ColumnName

Case "CommentText"

MessageBox.Show("Comment Text
changed ")

Case Else

End Select

End Sub

Regards,

Stephen Edginton

________________________________

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
Behalf
Of Jose Ferrer
Sent: 01 November 2006 22:59
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Subject: RE: [Vantage] how to catch "Save" event in V8 vb.net

Thanks

Unfortunately, in this particulary screen ("DMRProcessing"), this option
did
not work, it is doing other type of call

In Vantage when the screen have "special" views (like virtual view)
sometimes this code do not work another example of this special views is
the
Inventory Transfer screen where ther is not a direct relationship
between
the view and the data tables

Regards,
Jose Ferrer

>From: "Stephen Edginton" <stephene@...
<mailto:stephene%40dotnetit.co.uk>
<mailto:stephene%40dotnetit.co.uk> >
>Reply-To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
>To: <vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> >
>Subject: RE: [Vantage] how to catch "Save" event in V8 vb.net
>Date: Wed, 1 Nov 2006 22:22:26 -0000
>
>Jose,
> Take a look at the FormEventWizard -> BeforeAdapterMethod for
>the adapter
>
>Private Sub oTrans_adapter_BeforeAdapterMethod(ByVal sender As object,
>ByVal args As BeforeAdapterMethodArgs) Handles
>oTrans_adapter.BeforeAdapterMethod
> '// ** Argument Properties and Uses **
> '// args.MethodName, args.Cancel
> '
>
> Select Case args.MethodName
>
> Case "Update"
> 'Do checking here
>
> '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
>
>Regards,
>Stephen Edginton
>
>-----Original Message-----
>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 Jose Ferrer
>Sent: 01 November 2006 21:56
>To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
>Subject: RE: [Vantage] how to catch "Save" event in V8 vb.net
>
>
>Thank you, good tip but unfortunately we have 8.00.809g and I agree,
>there
>are some screens that are not using the standard "Save" method call
>
>Regards,
>Jose Ferrer
> >
> >
> > >From: "ferrerspine" <ferrerj@...
<mailto:ferrerj%40hotmail.com>
<mailto:ferrerj%40hotmail.com> >
> > >Reply-To: vantage@yahoogroups.com
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
> > >To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
> > >Subject: [Vantage] how to catch "Save" event in V8 vb.net
> > >Date: Wed, 01 Nov 2006 20:01:55 -0000
> > >
> > >Hello
> > >
> > >Is there a way to catch the "Save" event when a user click the
"save"
> > >button in the tool bar?
> > >
> > >we are using V8-vb.net
> > >
> > >This because in form DMR processing the standard way to apply
> > >validation before save does not work, I need to add some
validations
> > >when the user save the data
> > >
> > >Thanks for your help,
> > >Jose Ferrer
> > >
>

__________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!

http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
<http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/>
<http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
<http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/> >

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






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

Is there a way to catch the "Save" event when a user click the "save"
button in the tool bar?

we are using V8-vb.net

This because in form DMR processing the standard way to apply
validation before save does not work, I need to add some validations
when the user save the data

Thanks for your help,
Jose Ferrer
If you have 8.03, you can use the new BMP module to insert code (validation
code) at the before, base, or after stream of the save function. Seems to
work well (from looking at it during Perspectives). It basically sits
between the UI layer and the db committment layer. I am going to do it to
auto-hold sales orders when the GETNEW() function is called from the SO UI.
However, the underlying code in the GETNEW() and SAVE() SEEMS to be a little
different depending on which logicial module you are using. So, you would
likely have to do this for each place you want to intercept the save
command.
Carey



>From: "ferrerspine" <ferrerj@...>
>Reply-To: vantage@yahoogroups.com
>To: vantage@yahoogroups.com
>Subject: [Vantage] how to catch "Save" event in V8 vb.net
>Date: Wed, 01 Nov 2006 20:01:55 -0000
>
>Hello
>
>Is there a way to catch the "Save" event when a user click the "save"
>button in the tool bar?
>
>we are using V8-vb.net
>
>This because in form DMR processing the standard way to apply
>validation before save does not work, I need to add some validations
>when the user save the data
>
>Thanks for your help,
>Jose Ferrer
>
>

_________________________________________________________________
Find a local pizza place, music store, museum and more�then map the best
route! http://local.live.com?FORM=MGA001
Thank you, good tip but unfortunately we have 8.00.809g and I agree, there
are some screens that are not using the standard "Save" method call

Regards,
Jose Ferrer


>From: "Carey S" <rotary1@...>
>Reply-To: vantage@yahoogroups.com
>To: vantage@yahoogroups.com
>Subject: RE: [Vantage] how to catch "Save" event in V8 vb.net
>Date: Wed, 01 Nov 2006 15:35:56 -0600
>
>If you have 8.03, you can use the new BMP module to insert code (validation
>code) at the before, base, or after stream of the save function. Seems to
>work well (from looking at it during Perspectives). It basically sits
>between the UI layer and the db committment layer. I am going to do it to
>auto-hold sales orders when the GETNEW() function is called from the SO UI.
>However, the underlying code in the GETNEW() and SAVE() SEEMS to be a
>little
>different depending on which logicial module you are using. So, you would
>likely have to do this for each place you want to intercept the save
>command.
>Carey
>
>
>
> >From: "ferrerspine" <ferrerj@...>
> >Reply-To: vantage@yahoogroups.com
> >To: vantage@yahoogroups.com
> >Subject: [Vantage] how to catch "Save" event in V8 vb.net
> >Date: Wed, 01 Nov 2006 20:01:55 -0000
> >
> >Hello
> >
> >Is there a way to catch the "Save" event when a user click the "save"
> >button in the tool bar?
> >
> >we are using V8-vb.net
> >
> >This because in form DMR processing the standard way to apply
> >validation before save does not work, I need to add some validations
> >when the user save the data
> >
> >Thanks for your help,
> >Jose Ferrer
> >
> >
>
>_________________________________________________________________
>Find a local pizza place, music store, museum and more�then map the best
>route! http://local.live.com?FORM=MGA001
>
>
>
>Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have
>already linked your email address to a yahoo id to enable access. )
>(1) To access the Files Section of our Yahoo!Group for Report Builder and
>Crystal Reports and other 'goodies', please goto:
>http://groups.yahoo.com/group/vantage/files/.
>(2) To search through old msg's goto:
>http://groups.yahoo.com/group/vantage/messages
>(3) To view links to Vendors that provide Vantage services goto:
>http://groups.yahoo.com/group/vantage/links
>Yahoo! Groups Links
>
>
>
>

_________________________________________________________________
Don't just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
Jose,
Take a look at the FormEventWizard -> BeforeAdapterMethod for
the adapter

Private Sub oTrans_adapter_BeforeAdapterMethod(ByVal sender As object,
ByVal args As BeforeAdapterMethodArgs) Handles
oTrans_adapter.BeforeAdapterMethod
'// ** Argument Properties and Uses **
'// args.MethodName, args.Cancel
'

Select Case args.MethodName

Case "Update"
'Do checking here

'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

Regards,
Stephen Edginton

-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Jose Ferrer
Sent: 01 November 2006 21:56
To: vantage@yahoogroups.com
Subject: RE: [Vantage] how to catch "Save" event in V8 vb.net


Thank you, good tip but unfortunately we have 8.00.809g and I agree,
there
are some screens that are not using the standard "Save" method call

Regards,
Jose Ferrer
>
>
> >From: "ferrerspine" <ferrerj@...>
> >Reply-To: vantage@yahoogroups.com
> >To: vantage@yahoogroups.com
> >Subject: [Vantage] how to catch "Save" event in V8 vb.net
> >Date: Wed, 01 Nov 2006 20:01:55 -0000
> >
> >Hello
> >
> >Is there a way to catch the "Save" event when a user click the "save"
> >button in the tool bar?
> >
> >we are using V8-vb.net
> >
> >This because in form DMR processing the standard way to apply
> >validation before save does not work, I need to add some validations
> >when the user save the data
> >
> >Thanks for your help,
> >Jose Ferrer
> >
Thanks

Unfortunately, in this particulary screen ("DMRProcessing"), this option did
not work, it is doing other type of call

In Vantage when the screen have "special" views (like virtual view)
sometimes this code do not work another example of this special views is the
Inventory Transfer screen where ther is not a direct relationship between
the view and the data tables

Regards,
Jose Ferrer


>From: "Stephen Edginton" <stephene@...>
>Reply-To: vantage@yahoogroups.com
>To: <vantage@yahoogroups.com>
>Subject: RE: [Vantage] how to catch "Save" event in V8 vb.net
>Date: Wed, 1 Nov 2006 22:22:26 -0000
>
>Jose,
> Take a look at the FormEventWizard -> BeforeAdapterMethod for
>the adapter
>
>Private Sub oTrans_adapter_BeforeAdapterMethod(ByVal sender As object,
>ByVal args As BeforeAdapterMethodArgs) Handles
>oTrans_adapter.BeforeAdapterMethod
> '// ** Argument Properties and Uses **
> '// args.MethodName, args.Cancel
> '
>
> Select Case args.MethodName
>
> Case "Update"
> 'Do checking here
>
> '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
>
>Regards,
>Stephen Edginton
>
>-----Original Message-----
>From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
>Of Jose Ferrer
>Sent: 01 November 2006 21:56
>To: vantage@yahoogroups.com
>Subject: RE: [Vantage] how to catch "Save" event in V8 vb.net
>
>
>Thank you, good tip but unfortunately we have 8.00.809g and I agree,
>there
>are some screens that are not using the standard "Save" method call
>
>Regards,
>Jose Ferrer
> >
> >
> > >From: "ferrerspine" <ferrerj@...>
> > >Reply-To: vantage@yahoogroups.com
> > >To: vantage@yahoogroups.com
> > >Subject: [Vantage] how to catch "Save" event in V8 vb.net
> > >Date: Wed, 01 Nov 2006 20:01:55 -0000
> > >
> > >Hello
> > >
> > >Is there a way to catch the "Save" event when a user click the "save"
> > >button in the tool bar?
> > >
> > >we are using V8-vb.net
> > >
> > >This because in form DMR processing the standard way to apply
> > >validation before save does not work, I need to add some validations
> > >when the user save the data
> > >
> > >Thanks for your help,
> > >Jose Ferrer
> > >
>

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
Joe,

Sorry I did not actually test that last code. Note sure
exactly what you are trying to do but, You can always use the following
(this detects changes made to the CommentText in DMR head.



Private Sub DMRHead_BeforeFieldChange(ByVal sender As object, ByVal args
As DataColumnChangeEventArgs) Handles DMRHead_Column.ColumnChanging

'// ** Argument Properties and Uses **

'// args.Row("[FieldName]")

'// args.Column, args.ProposedValue, args.Row

'

'Add Event Handler Code

'

Select Case args.Column.ColumnName

Case "CommentText"

MessageBox.Show("Comment Text
changed ")

Case Else

End Select

End Sub



Regards,

Stephen Edginton





________________________________

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Jose Ferrer
Sent: 01 November 2006 22:59
To: vantage@yahoogroups.com
Subject: RE: [Vantage] how to catch "Save" event in V8 vb.net



Thanks

Unfortunately, in this particulary screen ("DMRProcessing"), this option
did
not work, it is doing other type of call

In Vantage when the screen have "special" views (like virtual view)
sometimes this code do not work another example of this special views is
the
Inventory Transfer screen where ther is not a direct relationship
between
the view and the data tables

Regards,
Jose Ferrer

>From: "Stephen Edginton" <stephene@...
<mailto:stephene%40dotnetit.co.uk> >
>Reply-To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
>To: <vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> >
>Subject: RE: [Vantage] how to catch "Save" event in V8 vb.net
>Date: Wed, 1 Nov 2006 22:22:26 -0000
>
>Jose,
> Take a look at the FormEventWizard -> BeforeAdapterMethod for
>the adapter
>
>Private Sub oTrans_adapter_BeforeAdapterMethod(ByVal sender As object,
>ByVal args As BeforeAdapterMethodArgs) Handles
>oTrans_adapter.BeforeAdapterMethod
> '// ** Argument Properties and Uses **
> '// args.MethodName, args.Cancel
> '
>
> Select Case args.MethodName
>
> Case "Update"
> 'Do checking here
>
> '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
>
>Regards,
>Stephen Edginton
>
>-----Original Message-----
>From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
Behalf
>Of Jose Ferrer
>Sent: 01 November 2006 21:56
>To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
>Subject: RE: [Vantage] how to catch "Save" event in V8 vb.net
>
>
>Thank you, good tip but unfortunately we have 8.00.809g and I agree,
>there
>are some screens that are not using the standard "Save" method call
>
>Regards,
>Jose Ferrer
> >
> >
> > >From: "ferrerspine" <ferrerj@...
<mailto:ferrerj%40hotmail.com> >
> > >Reply-To: vantage@yahoogroups.com
<mailto:vantage%40yahoogroups.com>
> > >To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> > >Subject: [Vantage] how to catch "Save" event in V8 vb.net
> > >Date: Wed, 01 Nov 2006 20:01:55 -0000
> > >
> > >Hello
> > >
> > >Is there a way to catch the "Save" event when a user click the
"save"
> > >button in the tool bar?
> > >
> > >we are using V8-vb.net
> > >
> > >This because in form DMR processing the standard way to apply
> > >validation before save does not work, I need to add some
validations
> > >when the user save the data
> > >
> > >Thanks for your help,
> > >Jose Ferrer
> > >
>

__________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!

http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
<http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/>





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