VB Code to Save?

Beautiful, works like a charm. Thanks.

________________________________

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Stephen Edginton
Sent: Tuesday, January 29, 2008 10:39 AM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] VB Code to Save?



oTrans.Update()

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
Behalf
Of Ken Williams
Sent: Tuesday, January 29, 2008 5:29 PM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Subject: [Vantage] VB Code to Save?

Is there a function to have custom code initiate a save of the entry
you're on?

I've setup a checkbox on order entry that when checked and the document
is saved triggers a BAM to print a special report for me. This works
great, but if someone needs to re-print they have to uncheck the box,
save, check the box, save. Not the end of the world obviously.
However, I'm thinking creating a button and some code like this would
work great if there's a way to call a save:

Private Sub btnPrnReport_Click(ByVal Sender As Object, ByVal Args As
System.EventArgs) Handles btnPrnReport.Click
'// ** Place Event Handling Code Here **

if
(edvOrderHed.dataView(edvOrderHed.Row)("CheckBox10")=="True") then

edvOrderHed.dataView(edvOrderHed.Row)("CheckBox10")="False"
*savefunction()
endif
edvOrderHed.dataView(edvOrderHed.Row)("CheckBox10")="True"
*savefunction()

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






[Non-text portions of this message have been removed]
Is there a function to have custom code initiate a save of the entry
you're on?

I've setup a checkbox on order entry that when checked and the document
is saved triggers a BAM to print a special report for me. This works
great, but if someone needs to re-print they have to uncheck the box,
save, check the box, save. Not the end of the world obviously.
However, I'm thinking creating a button and some code like this would
work great if there's a way to call a save:

Private Sub btnPrnReport_Click(ByVal Sender As Object, ByVal Args As
System.EventArgs) Handles btnPrnReport.Click
'// ** Place Event Handling Code Here **

if
(edvOrderHed.dataView(edvOrderHed.Row)("CheckBox10")=="True") then

edvOrderHed.dataView(edvOrderHed.Row)("CheckBox10")="False"
*savefunction()
endif
edvOrderHed.dataView(edvOrderHed.Row)("CheckBox10")="True"
*savefunction()

Thanks for any thoughts on this.
oTrans.Update()



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Ken Williams
Sent: Tuesday, January 29, 2008 5:29 PM
To: vantage@yahoogroups.com
Subject: [Vantage] VB Code to Save?



Is there a function to have custom code initiate a save of the entry
you're on?

I've setup a checkbox on order entry that when checked and the document
is saved triggers a BAM to print a special report for me. This works
great, but if someone needs to re-print they have to uncheck the box,
save, check the box, save. Not the end of the world obviously.
However, I'm thinking creating a button and some code like this would
work great if there's a way to call a save:

Private Sub btnPrnReport_Click(ByVal Sender As Object, ByVal Args As
System.EventArgs) Handles btnPrnReport.Click
'// ** Place Event Handling Code Here **

if
(edvOrderHed.dataView(edvOrderHed.Row)("CheckBox10")=="True") then

edvOrderHed.dataView(edvOrderHed.Row)("CheckBox10")="False"
*savefunction()
endif
edvOrderHed.dataView(edvOrderHed.Row)("CheckBox10")="True"
*savefunction()






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