[end-form]
[VBSCRIPT]
Option Explicit
Function CustomizedPane_OnRefresh()
Dim Supplier
Supplier = CustomizedPane.CodeObject.RefreshValue
If Supplier = "" then
Exit Function
End if
dim XMLOut, XMLParam
XMLParam = XMLParam & " "
XMLParam = XMLParam & " "
XMLParam = XMLParam & " "
XMLParam = XMLParam & " "
XMLParam = XMLParam & " "
XMLParam = XMLParam & " "
on error resume next
XMLOut = CallBO("APSQRY",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 SupplierHoldFlag = "Y" then
SupplierHeader.CodeObject.SupplierOnHold = ""
else
SupplierHeader.CodeObject.SupplierOnHold = ""
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