Hello;
I hope someone can offer some help. I have a large Sales Order form and at the Save and Close button I need an alert to come up based on this criteria:
If customershippingaccount = null and shippingcost = 0
then the dialog would read:
The shipping cost is zero ...etc.
Within the dialog would be yes, no buttons. The yes would send along to Production as usual, a no would let the Sales person edit the form.
This is the code for the button as is to save and close.
Sub Click(Source As Button)
Dim session As New NotesSession
Dim db As NotesDatabase
Set db = session.CurrentDatabase
Dim workspace As New NotesUIWorkspace
Set uidoc = workspace.currentdocument
Set currentdoc = uidoc.document
Call uidoc.save
Call uidoc.close
End Sub
If someone can please show the best way to accomplish this it would be greatly appreciated.
Thank you
I hope someone can offer some help. I have a large Sales Order form and at the Save and Close button I need an alert to come up based on this criteria:
If customershippingaccount = null and shippingcost = 0
then the dialog would read:
The shipping cost is zero ...etc.
Within the dialog would be yes, no buttons. The yes would send along to Production as usual, a no would let the Sales person edit the form.
This is the code for the button as is to save and close.
Sub Click(Source As Button)
Dim session As New NotesSession
Dim db As NotesDatabase
Set db = session.CurrentDatabase
Dim workspace As New NotesUIWorkspace
Set uidoc = workspace.currentdocument
Set currentdoc = uidoc.document
Call uidoc.save
Call uidoc.close
End Sub
If someone can please show the best way to accomplish this it would be greatly appreciated.
Thank you