Force Form Refresh on Save

Works perfectly. Thanks!

-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of vicdrecchio
Sent: Friday, January 07, 2011 12:23 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: Force Form Refresh on Save

I use this on my Labor Entry to force a refresh upon Update. Works
great. Just a simple oTrans.Refresh() on the after-adapter method.


Private Sub oTrans_laborAdapter_AfterAdapterMethod(ByVal sender
As object, ByVal args As AfterAdapterMethodArgs) Handles
oTrans_laborAdapter.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"
oTrans.Refresh()

Case Else

End Select

End Sub

--- In vantage@yahoogroups.com, "Brian W. Spolarich" <bspolarich@...>
wrote:
>
> Ping on this in case anyone who does client customization cares. :-)
>
> -----Original Message-----
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On
Behalf
> Of Brian W. Spolarich
> Sent: Thursday, January 06, 2011 12:04 PM
> To: vantage@yahoogroups.com
> Subject: [Vantage] Force Form Refresh on Save
>
> Is there an easy way to force a form to refresh after every save?
>
>
>
> I have a RowRule on the Labor Entry screen to show an error if
> DspPayHours and TotLbrHrs aren't the same (or whatever). However if I
> make a change and save it, the rowrule doesn't fire unless I refresh.
>
>
>
> Ideally I'd just line to make sure that after the Save button is
> clicked the form saves but the rowrules are invoked.
>
>
>
> -bws
>
>
>
> --
>
> Brian W. Spolarich ~ Manager, Information Services ~ Advanced Photonix
/
> Picometrix
>
> bspolarich@...
> <mailto:bspolarich@...> ~ 734-864-5618 ~
> www.advancedphotonix.com <http://www.advancedphotonix.com>
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
> ------------------------------------
>
> 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/linksYahoo! Groups Links
>




------------------------------------

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/linksYahoo! Groups Links
Is there an easy way to force a form to refresh after every save?



I have a RowRule on the Labor Entry screen to show an error if
DspPayHours and TotLbrHrs aren't the same (or whatever). However if I
make a change and save it, the rowrule doesn't fire unless I refresh.



Ideally I'd just line to make sure that after the Save button is
clicked the form saves but the rowrules are invoked.



-bws



--

Brian W. Spolarich ~ Manager, Information Services ~ Advanced Photonix /
Picometrix

bspolarich@...
<mailto:bspolarich@...> ~ 734-864-5618 ~
www.advancedphotonix.com <http://www.advancedphotonix.com>





[Non-text portions of this message have been removed]
Ping on this in case anyone who does client customization cares. :-)

-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Brian W. Spolarich
Sent: Thursday, January 06, 2011 12:04 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Force Form Refresh on Save

Is there an easy way to force a form to refresh after every save?



I have a RowRule on the Labor Entry screen to show an error if
DspPayHours and TotLbrHrs aren't the same (or whatever). However if I
make a change and save it, the rowrule doesn't fire unless I refresh.



Ideally I'd just line to make sure that after the Save button is
clicked the form saves but the rowrules are invoked.



-bws



--

Brian W. Spolarich ~ Manager, Information Services ~ Advanced Photonix /
Picometrix

bspolarich@...
<mailto:bspolarich@...> ~ 734-864-5618 ~
www.advancedphotonix.com <http://www.advancedphotonix.com>





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



------------------------------------

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/linksYahoo! Groups Links
I second you. I also would love to know how to do this.

Ephraim Feldman
Programmer / Analyst
Axis Lighting

-----Original Message-----
From: "Brian W. Spolarich" <bspolarich@...>
Sender: vantage@yahoogroups.com
Date: Fri, 7 Jan 2011 11:35:05
To: <vantage@yahoogroups.com>
Reply-To: vantage@yahoogroups.com
Subject: RE: [Vantage] Force Form Refresh on Save

Ping on this in case anyone who does client customization cares. :-)

-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Brian W. Spolarich
Sent: Thursday, January 06, 2011 12:04 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Force Form Refresh on Save

Is there an easy way to force a form to refresh after every save?



I have a RowRule on the Labor Entry screen to show an error if
DspPayHours and TotLbrHrs aren't the same (or whatever). However if I
make a change and save it, the rowrule doesn't fire unless I refresh.



Ideally I'd just line to make sure that after the Save button is
clicked the form saves but the rowrules are invoked.



-bws





Brian W. Spolarich ~ Manager, Information Services ~ Advanced Photonix /
Picometrix

bspolarich@...
<mailto:bspolarich@...> ~ 734-864-5618 ~
www.advancedphotonix.com <http://www.advancedphotonix.com>





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





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/linksYahoo! Groups Links






[Non-text portions of this message have been removed]
I use this on my Labor Entry to force a refresh upon Update. Works great. Just a simple oTrans.Refresh() on the after-adapter method.


Private Sub oTrans_laborAdapter_AfterAdapterMethod(ByVal sender As object, ByVal args As AfterAdapterMethodArgs) Handles oTrans_laborAdapter.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"
oTrans.Refresh()

Case Else

End Select

End Sub

--- In vantage@yahoogroups.com, "Brian W. Spolarich" <bspolarich@...> wrote:
>
> Ping on this in case anyone who does client customization cares. :-)
>
> -----Original Message-----
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
> Of Brian W. Spolarich
> Sent: Thursday, January 06, 2011 12:04 PM
> To: vantage@yahoogroups.com
> Subject: [Vantage] Force Form Refresh on Save
>
> Is there an easy way to force a form to refresh after every save?
>
>
>
> I have a RowRule on the Labor Entry screen to show an error if
> DspPayHours and TotLbrHrs aren't the same (or whatever). However if I
> make a change and save it, the rowrule doesn't fire unless I refresh.
>
>
>
> Ideally I'd just line to make sure that after the Save button is
> clicked the form saves but the rowrules are invoked.
>
>
>
> -bws
>
>
>
> --
>
> Brian W. Spolarich ~ Manager, Information Services ~ Advanced Photonix /
> Picometrix
>
> bspolarich@...
> <mailto:bspolarich@...> ~ 734-864-5618 ~
> www.advancedphotonix.com <http://www.advancedphotonix.com>
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
> ------------------------------------
>
> 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/linksYahoo! Groups Links
>
Just guessing out loud here.....

After adapter method

Select Case args.MethodName
Case "Update"
oTrans.Refresh()
Case Else
End Select

--- In vantage@yahoogroups.com, effgroups@... wrote:
>
> I second you. I also would love to know how to do this.
>
> Ephraim Feldman
> Programmer / Analyst
> Axis Lighting
>
> -----Original Message-----
> From: "Brian W. Spolarich" <bspolarich@...>
> Sender: vantage@yahoogroups.com
> Date: Fri, 7 Jan 2011 11:35:05
> To: <vantage@yahoogroups.com>
> Reply-To: vantage@yahoogroups.com
> Subject: RE: [Vantage] Force Form Refresh on Save
>
> Ping on this in case anyone who does client customization cares. :-)
>
> -----Original Message-----
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
> Of Brian W. Spolarich
> Sent: Thursday, January 06, 2011 12:04 PM
> To: vantage@yahoogroups.com
> Subject: [Vantage] Force Form Refresh on Save
>
> Is there an easy way to force a form to refresh after every save?
>
>
>
> I have a RowRule on the Labor Entry screen to show an error if
> DspPayHours and TotLbrHrs aren't the same (or whatever). However if I
> make a change and save it, the rowrule doesn't fire unless I refresh.
>
>
>
> Ideally I'd just line to make sure that after the Save button is
> clicked the form saves but the rowrules are invoked.
>
>
>
> -bws
>
>
>
> --
>
> Brian W. Spolarich ~ Manager, Information Services ~ Advanced Photonix /
> Picometrix
>
> bspolarich@...
> <mailto:bspolarich@...> ~ 734-864-5618 ~
> www.advancedphotonix.com <http://www.advancedphotonix.com>
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
> ------------------------------------
>
> 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/linksYahoo! Groups Links
>
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
Thanks, Vic. That's exactly the kind of thing I was expecting, but
its so difficult to know how to leverage this object model and the
specifics of it if you don't do this very often.

I'll try this later today and verify it works for me.

-brian

-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of vicdrecchio
Sent: Friday, January 07, 2011 12:23 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: Force Form Refresh on Save

I use this on my Labor Entry to force a refresh upon Update. Works
great. Just a simple oTrans.Refresh() on the after-adapter method.


Private Sub oTrans_laborAdapter_AfterAdapterMethod(ByVal sender
As object, ByVal args As AfterAdapterMethodArgs) Handles
oTrans_laborAdapter.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"
oTrans.Refresh()

Case Else

End Select

End Sub

--- In vantage@yahoogroups.com, "Brian W. Spolarich" <bspolarich@...>
wrote:
>
> Ping on this in case anyone who does client customization cares. :-)
>
> -----Original Message-----
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On
Behalf
> Of Brian W. Spolarich
> Sent: Thursday, January 06, 2011 12:04 PM
> To: vantage@yahoogroups.com
> Subject: [Vantage] Force Form Refresh on Save
>
> Is there an easy way to force a form to refresh after every save?
>
>
>
> I have a RowRule on the Labor Entry screen to show an error if
> DspPayHours and TotLbrHrs aren't the same (or whatever). However if I
> make a change and save it, the rowrule doesn't fire unless I refresh.
>
>
>
> Ideally I'd just line to make sure that after the Save button is
> clicked the form saves but the rowrules are invoked.
>
>
>
> -bws
>
>
>
> --
>
> Brian W. Spolarich ~ Manager, Information Services ~ Advanced Photonix
/
> Picometrix
>
> bspolarich@...
> <mailto:bspolarich@...> ~ 734-864-5618 ~
> www.advancedphotonix.com <http://www.advancedphotonix.com>
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
> ------------------------------------
>
> 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/linksYahoo! Groups Links
>




------------------------------------

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/linksYahoo! Groups Links