[end-form]
[VBSCRIPT]
Option Explicit
Function CustomizedPane_OnRefresh()
Dim Customer
Customer = CustomizedPane.CodeObject.RefreshValue
If Customer = "" then
Exit Function
End if
dim XMLOut, XMLParam
XMLParam = ""
XMLParam = XMLParam & " "
XMLParam = XMLParam & " "
XMLParam = XMLParam & " "
XMLParam = XMLParam & " "
XMLParam = XMLParam & " "
on error resume next
XMLOut = CallBO("ARSQRY",XMLParam,"auto")
if err then
exit function
end if
' Switch on error handling
on error goto 0
SetFieldValues(XMLOut)
End Function
Sub SetFieldValues(XMLOut)
Dim XMLDom : Set XMLDom = CreateObject("Microsoft.XMLDOM")
XMLDom.Async = False
XMLDom.LoadXML(XMLOut)
FormData = ""
CustomizedPane.CodeObject.UpdateFormValues = FormData
If CustomerHoldFlag = "Y" then
CustomerHeader.CodeObject.CustomerOnHold = ""
else
CustomerHeader.CodeObject.CustomerOnHold = ""
End if
End Sub
Function CleanXML(TextIn)
TextIn = Replace(TextIn, "&", "&")
TextIn = Replace(TextIn, """", """)
TextIn = Replace(TextIn, "'", "'")
TextIn = Replace(TextIn, "<", "<")
TextIn = Replace(TextIn, ">", ">")
CleanXML = TextIn
End Function