|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| Question |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: |
Sub Querysend(Source As Notesuidocument, Continue As Variant)
Dim sess As New NotesSession
Dim ws As New NotesUIWorkspace
Dim db As NotesDatabase, jobcorDB As NotesDatabase
Dim doc As NotesDocument, memo As NotesDocument
Dim customerJob As Variant, sentBy As Variant, recipients As Variant
Dim subject As String, customerName As String, jobNumber As String, h As String, mailSort As String
Dim Body As String
' validate form
Set db = sess.CurrentDatabase
Set doc = Source.Document
customerJob = doc.GetItemValue("CustomerJob")
If (customerJob(0) = "To file please select a job here") Then
Continue = False
Exit Sub
End If
' parse customer job to get new job numbers
Forall vi In customerJob
h = Strtoken(vi, " | ", 1)
If (jobNumber <> "") Then jobNumber = jobNumber + ";"
jobNumber = jobNumber + Strtoken(h, ":", 2)
End Forall
'modify subject line
Call source.FieldAppendText("Subject"," [" & JobNumber$ & "]")
doc.Subject = subject + " [" + jobNumber + "]"
customerName = Trim(Strleft(customerJob(0), "-"))
doc.Customer = customerName
' compose new memo in jobcor db
Set jobcorDB = New NotesDatabase("domino1/dalinalaw","jobcor2.nsf")
Set memo = New NotesDocument(jobcorDB)
Call doc.CopyAllItems(memo, True)
'memo.body = doc.body
memo.Company = customerName
memo.Form = "Memo"
If (doc.GetItemValue("Principal")(0) = "") Then sentBy = doc.GetItemValue("From") Else sentBy = doc.GetItemValue("Principal")
recipients = Arrayappend(doc.GetItemValue("SendTo"), doc.GetItemValue("CopyTo"))
recipients = Arrayappend(recipients, sentBy)
mailSort = "Internal"
Forall c In recipients
If (Instr(c, "dalinalaw") = 0) Then
mailSort = "Client"
Exit Forall
End If
End Forall
memo.MailSort = mailSort
Call memo.RemoveItem("$REF")
Call memo.Save(True, False)
'update Filed status on current doc
doc.Filed = "Yes"
Call doc.Save(True, False)
'End If
End Sub
|
Advertisement
| Hall of Fame |