# Customized Panes for 'SORPENLZ' Created: 2013/04/09
# PANE:Stock Code Header
[PANE]
DUP SORPENLZ 01001Stock Code Header 090settings\DUP_VBS_SORPEN01.XML 000000503290SORPEN010M000 0000 00000 None 0#
[start-form]
[end-form]
[VBSCRIPT]
Option Explicit
Function CustomizedPane_OnRefresh()
If CustomizedPane.CodeObject.RefreshValue = "" then
Exit Function
End if
dim XMLOut, XMLParam
XMLParam = ""
XMLParam = XMLParam & " "
XMLParam = XMLParam & " "
XMLParam = XMLParam & " "
XMLParam = XMLParam & " "
XMLParam = XMLParam & " "
XMLParam = XMLParam & " "
XMLParam = XMLParam & " "
XMLParam = XMLParam & " "
on error resume next
XMLOut = CallBO("INVQRY",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
StockCodeHeader.CodeObject.DangerousGoods = " "
End Sub
Function CleanXML(TextIn)
TextIn = Replace(TextIn, "&", "&")
TextIn = Replace(TextIn, """", """)
TextIn = Replace(TextIn, "'", "'")
TextIn = Replace(TextIn, "<", "<")
TextIn = Replace(TextIn, ">", ">")
CleanXML = TextIn
End Function