I have this script running at a customer, but after upgradring to SO85R07, its not running as before. I changed so it runs on document.Name insted of TASK_IDX becuase task_idx was not working, but now its removing some of the hedding and now always addning the number to the heading?
Has there been some major changes to how VB scipts works on 8.5R07?
If document.Identity = 0 Then
taskId = document.Template.Id
setupId = Database.Find.FirstMatch("pv_Doc_Template_List", "pv_Doc_Template_List_id", "DOC_TMPL_ID", taskId)
If setupId <> 0 Then
'header = Database.Preferences.Get("Adwiza.EDS", "$fandimprojektnr")
header = CurrentSale.Title
document.Header = header
If setupId = 0 Then
document.Header = ""
'If field = "appointment.TASK_IDX" Then DoSetHeader(CurrentDocument)
If field = "document.NAME" Then DoSetHeader(CurrentDocument) 'change made by Rune & Allan 14jan2020