# Customized Panes for 'xxxxxxxx' Created: 2010/03/03 # PANE:Supplier Branch Details [PANE] ADMIN ARSPENLZ 01001Supplier Branch 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 = "
" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" Formprops = FormProps & "" 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, SupplierBranch, FormData CustomizedPane.CodeObject.UpdateFormValues = " " ' Populate the SupplierBranch variable with the refresh value SupplierBranch = CustomizedPane.CodeObject.RefreshValue if SupplierBranch = "" then exit function end if ' Build up the XML to be passed to the business object XMLParam = XMLParam & " " XMLParam = XMLParam & " ApBranch" XMLParam = XMLParam & " " & SupplierBranch & "" XMLParam = XMLParam & " " on error resume next ' Call the business object, supplying the XML and putting the result in to XMLOut XMLOut = CallBO("COMFCH",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, Branch, BrDesc Dim ApBrnGlCode, ApBrnDscGlCode, PoPrefix, PoNextNumber, GrnPrefix, GrnNextNumber, Nationality ' 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 Branch = XMLDoc.SelectSingleNode("//Branch").Text BrDesc = XMLDoc.SelectSingleNode("//Description").Text ApBrnGlCode = XMLDoc.SelectSingleNode("//ApBrnGlCode").Text ApBrnDscGlCode = XMLDoc.SelectSingleNode("//ApBrnDscGlCode").Text PoPrefix = XMLDoc.SelectSingleNode("//PoPrefix").Text PoNextNumber = XMLDoc.SelectSingleNode("//PoNextNumber").Text GrnPrefix = XMLDoc.SelectSingleNode("//GrnPrefix").Text GrnNextNumber = XMLDoc.SelectSingleNode("//GrnNextNumber").Text Nationality = XMLDoc.SelectSingleNode("//Nationality").Text FormData = "
" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "
" CustomizedPane.CodeObject.UpdateFormValues = FormData End Function