# Customized Panes for 'xxxxxxxx' Created: 2010/03/03
# PANE:Bank Details
[PANE]
ADMIN ARSPENLZ 01001Bank Details 090settings\ADMIN_VBS_ARSPEN01.XML 000000500000ARSPEN010M000 0000 00000
[VBSCRIPT]
' This script contains functions for form and field events.
' You must not modify the name of the functions.
Option Explicit
Function CustomizedPane_OnLoad()
Dim FormProps
FormProps = "
"
CustomizedPane.CodeObject.FormProperties = FormProps
End Function
Function CustomizedPane_OnRefresh()
' Specify the variables to be used when calling the business object
dim XMLOut, XMLParam, Bank, FormData
CustomizedPane.CodeObject.UpdateFormValues = " "
' Populate the RequisitionUser variable with the refresh value
Bank = CustomizedPane.CodeObject.RefreshValue
if Bank = "" then
exit function
end if
' Build up the XML that will be supplied to the business object
XMLParam = XMLParam & " "
XMLParam = XMLParam & " "
XMLParam = XMLParam & " "
XMLParam = XMLParam & " "
XMLParam = XMLParam & " "
XMLParam = XMLParam & " "
on error resume next
' Call the business object, supplying the XML and putting the result in to XMLOut
XMLOut = CallBO("CSHQ45",XMLParam,"auto")
if err then
exit function
end if
' Switch on error handling
on error goto 0
' Define the variables required for extracting the information from the DOM.
Dim XMLDoc, BankCode, Description, AccNum, CurrencyCode, CurrencyDesc, Telephone, Foreign, CashAccount, CashAccountDesc
' Load the output from the business object in to the DOM
Set XMLDoc = createobject("MSXML2.DOMDocument")
XMLDoc.async = false
XMLDoc.LoadXML(XMLOut)
' Populate the values for the fields
BankCode = XMLDoc.SelectSingleNode("//Bank").Text
Description = XMLDoc.SelectSingleNode("//BankDescription").Text
AccNum = XMLDoc.SelectSingleNode("//AccountNumber").Text
CurrencyCode = XMLDoc.SelectSingleNode("//Currency").Text
CurrencyDesc = XMLDoc.SelectSingleNode("//TBLCUR_Description").Text
Telephone = XMLDoc.SelectSingleNode("//Telephone").Text
CashAccount = XMLDoc.SelectSingleNode("//CashLedgerAccount").Text
CashAccountDesc = XMLDoc.SelectSingleNode("//GENMST_Description").Text
Foreign = "Yes"
If CurrencyCode = SystemVariables.CodeObject.LocalCurrency then
Foreign = "No"
End If
FormData = ""
CustomizedPane.CodeObject.UpdateFormValues = FormData
End Function