<?xml version="1.0" encoding="utf-8"?><finScript version="1.00" exportedUtcDate="2018-05-16T00:14:46.0000000"><CreatedUserId>ADMIN</CreatedUserId><CreatedUtcDate>2018-05-14T21:57:50.6600000</CreatedUtcDate><UpdatedUserId>ADMIN</UpdatedUserId><UpdatedUtcDate>2018-05-16T00:14:25.0170000</UpdatedUtcDate><ScriptId>BLT.APPSH</ScriptId><Description>Business Layer Training - Application Shortcuts</Description><ScriptType>General</ScriptType><Active>true</Active><AllowUI>false</AllowUI><Category /><Code>Option Explicit On
Option Strict On

' (c) Copyright Intersoft Systems Limited, 2018. All rights reserved.
' ###################################################################
' Summary Block Override Script.
'
' Version: 1.00.00 (16/05/2018)
'
' Usage: Must be configured in Global Settings &gt; Summary Pages
'
' Revision History
' ----------------
' 16/05/2017  1.00.00   ISS.ME    Created.
' ########################################

Public Function Main(parameters As ISKeyValueList) As Boolean

  Dim ApplicationShortcutExternal As ISApplicationShortcut
  Dim ApplicationShortcutFormShow As ISApplicationShortcut
  Dim ApplicationShortcutHtmlShowUrl As ISApplicationShortcut
  Dim ApplicationShortcutMapShowClient As ISApplicationShortcut
  Dim ApplicationShortcutPageSet As ISApplicationShortcut
  Dim FilenameFull As String
  Dim PageSetId As String

  ' Assume Success
  Main = True

  ' Get Script Constants
  With ScriptInfo.Constants
    FilenameFull = .GetString("FilenameFull")
    PageSetId = .GetString("PageSetId")
  End With

  ' Initialise
  ApplicationShortcutFormShow = finBL.CreateApplicationShortcutFormShow("Accounts", "L10000", "Disbursements")
  ApplicationShortcutHtmlShowUrl = finBL.CreateApplicationShortcutHtmlShowUrl("www.google.co.nz", "Google", True)
  ApplicationShortcutMapShowClient = finBL.CreateApplicationShortcutMapShowClient("C10001")

  ' Check the File exists before creating an Application Shortcut for it
  If Not finBL.Runtime.FileUtilities.FileExists(FilenameFull) Then
    Main = False
    finBL.Error.ErrorBeginFormat("File '{0}' does not exist.",  FilenameFull)
  End If

  If Main Then
    ' Initialise the "External File" Application Shortcut
    ApplicationShortcutExternal = finBL.CreateApplicationShortcutExternal(FilenameFull)

    ' Check the Page Set exists before creating an Application Shortcut for it
    If Not finBL.PageSets.Exists(PageSetId) Then
      Main = False
      finBL.Error.ErrorBeginFormat("PageSet '{0}' does not exist.",  PageSetId)
    End If
  End If

  If Main Then
    ' Initialise the "PageSet" Application Shortcut
    ApplicationShortcutPageSet = finBL.CreateApplicationShortcutPageSet(PageSetId)

    ' Execute the Application Shortcut(s)
    Main = finBL.ExecuteApplicationShortcut(ApplicationShortcutFormShow)
'    Main = finBL.ExecuteApplicationShortcut(ApplicationShortcutHtmlShowUrl)
'    Main = finBL.ExecuteApplicationShortcut(ApplicationShortcutMapShowClient)
'    Main = finBL.ExecuteApplicationShortcut(ApplicationShortcutPageSet)
'    Main = finBL.ExecuteApplicationShortcut(ApplicationShortcutExternal)
  End If

End Function</Code><Language>VisualBasic</Language><Notes /><PermissionKeyExecute /><RunWithoutPrompts>false</RunWithoutPrompts><TemplateText /><TemplateTextBookmarks /><TimeoutSeconds>60</TimeoutSeconds><AllowSaveLoadParametersOnExecute>true</AllowSaveLoadParametersOnExecute><ShowInAccountProcesses>false</ShowInAccountProcesses><AccountProcessesRunByDefault>false</AccountProcessesRunByDefault><RunAsAdministrator>false</RunAsAdministrator><ShowInMenu>None</ShowInMenu><ShowInTaskManager>false</ShowInTaskManager><WebServiceName /><ParametersType>None</ParametersType><Constants><ISScriptConstants version="1.00"><ScriptConstant name="PageSetId" constantType="String"><Value>PS.UTILS</Value></ScriptConstant><ScriptConstant name="FilenameFull" constantType="String"><Value>C:\Program Files (x86)\Intersoft\finPOWERConnect3\Templates\Account_Letter.docx</Value></ScriptConstant></ISScriptConstants></Constants></finScript>