<RELATIONSHIPS>
Attribute | Type | Size | REQ | Default | Comments |
---|---|---|---|---|---|
No attribute
|
The <RELATIONSHIPS> XML element is separate from the global <NLS> element and is to be used in Loan Details and Branch Loan Details task relationships.
The fields in the task relationship may be updated by importing an XML file through scripting. An XML file may be exported from NLS then modified for importing to help with the process.
Export to an XML File
Create a UDF button named “Export” and enter the following script where “C:\Path\Relationship.xml” is the full path to the output file:
VBScript
xml = nlsapp.GetField ("TASK_RELATIONSHIPS") Set objFSO=CreateObject("Scripting.FileSystemObject") outFile="C:\Path\Relationship.xml" Set objFile = objFSO.CreateTextFile(outFile,True) objFile.Write xml objFile.Close
Import from an XML File
Create a UDF button named “Import” and enter the following script where “C:\Path\Relationship.xml” is the full path to the XML file being imported:
VBScript
Set objFileToRead = CreateObject("Scripting.FileSystemObject").OpenTextFile("C:\Path\Relationship.xml",1) xml = objFileToRead.ReadAll() nlsapp.SetField "TASK_RELATIONSHIPS", xml
Clicking the Export button will create an XML file. Edit the resulting XML file then click the Import button to read the edited XML file. This should update the screen based on the new imported XML values.