# Customized Panes for 'xxxxxxxx' Created: 2008/11/07 # PANE:Recent Purchases [PANE] Phil IMP04ZLZ 00000Customer Recent Purchases 020 000000000000IMP04Z000M [VBSCRIPT] ' This script contains functions for customized pane events. ' You must not modify the name of the functions. Option Explicit Function CustomizedPane_OnLoad() dim ListXML ListXML = ListXML & "" ListXML = ListXML & "" ListXML = ListXML & "" ListXML = ListXML & "" CustomizedPane.CodeObject.ListviewProperties = ListXML End Function Function CustomizedPane_OnRefresh() Dim dtCurDate, strCurDate ' Process purchases up to 120 days ago dtCurDate = DateAdd("D",-120, Now) strCurDate = Year(dtCurDate) & "-" & Right("0" & Month(dtCurDate),2) & "-" & Right("0" & Day(dtCurDate),2) dim XMLOut, XMLParam, Customer Customer = CustomizedPane.CodeObject.RefreshValue if Customer = "" then exit function end if XMLParam = XMLParam & " " XMLParam = XMLParam & " " XMLParam = XMLParam & " " & Customer & "" XMLParam = XMLParam & " " XMLParam = XMLParam & " " XMLParam = XMLParam & " " on error resume next XMLOut = CallBO("ARSQIP",XMLParam,"auto") if err then CustomizedPane.CodeObject.ListviewData = " " exit function end if ' Switch on error handling on error goto 0 CustomizedPane.CodeObject.ListviewData = xmlout End Function