# Customized Panes for 'xxxxxxxx' Created: 2010/03/03 # PANE:Customer Branch Details [PANE] ADMIN ARSPENLZ 01001Customer 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 & "" 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 & "" 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, CustomerBranch, FormData CustomizedPane.CodeObject.UpdateFormValues = " " ' Populate the CustomerBranch variable with the refresh value CustomerBranch = CustomizedPane.CodeObject.RefreshValue if CustomerBranch = "" then exit function end if ' Build up the XML to be passed to the business object XMLParam = XMLParam & " " XMLParam = XMLParam & " SalBranch" XMLParam = XMLParam & " " & CustomerBranch & "" 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, BrAddr1, BrAddr2, BrAddr3 Dim SalesCtlAcc, FrtSalesAcc, FinChargeAcc, RoundingAcc, DepositAcc, SalesTaxAcc, FrtCosAcc, CosCtlAcc Dim PrefixNextInv, NextInvoice, NextCreditNote, NextDebitNote, PrefixNextRma, NextRma Dim PrefixNextSo, NextSalesOrder, NextSoCrNote, NextSoDbNote, NextDelNote ' 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 BrAddr1 = XMLDoc.SelectSingleNode("//BranchAddr1").Text BrAddr2 = XMLDoc.SelectSingleNode("//BranchAddr2").Text BrAddr3 = XMLDoc.SelectSingleNode("//BranchAddr3").Text SalesCtlAcc = XMLDoc.SelectSingleNode("//SalesCtlAcc").Text FrtSalesAcc = XMLDoc.SelectSingleNode("//FrtSalesAcc").Text FinChargeAcc = XMLDoc.SelectSingleNode("//FinChargeAcc").Text RoundingAcc = XMLDoc.SelectSingleNode("//RoundingAcc").Text DepositAcc = XMLDoc.SelectSingleNode("//DepositAcc").Text SalesTaxAcc = XMLDoc.SelectSingleNode("//SalesTaxAcc").Text FrtCosAcc = XMLDoc.SelectSingleNode("//FrtCosAcc").Text CosCtlAcc = XMLDoc.SelectSingleNode("//CosCtlAcc").Text PrefixNextInv = XMLDoc.SelectSingleNode("//PrefixNextInv").Text NextInvoice = XMLDoc.SelectSingleNode("//NextInvoice").Text NextCreditNote = XMLDoc.SelectSingleNode("//NextCreditNote").Text NextDebitNote = XMLDoc.SelectSingleNode("//NextDebitNote").Text PrefixNextRma = XMLDoc.SelectSingleNode("//PrefixNextRma").Text NextRma = XMLDoc.SelectSingleNode("//NextRma").Text PrefixNextSo = XMLDoc.SelectSingleNode("//PrefixNextSo").Text NextSalesOrder = XMLDoc.SelectSingleNode("//NextSalesOrder").Text NextSoCrNote = XMLDoc.SelectSingleNode("//NextSoCrNote").Text NextSoDbNote = XMLDoc.SelectSingleNode("//NextSoDbNote").Text NextDelNote = XMLDoc.SelectSingleNode("//NextDelNote").Text FormData = "
" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = FormData & "" FormData = 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