' SummaryPage2_AccountApp_KeyDetails
Option Explicit On
Option Strict On

' #################################################################
' Account Application Key Details

' Version: 1.01 (05/09/2017)

' Usage: Calls the Summary Script defined on the Account Application Type
' #################################################################

'#const "EventNumberOfDays",Integer,30,"Number of Days of Events to display."
'#const "EventAuditInclude",Boolean,False,"Include Audit Events?"
'#const "ShowEventBlock",Boolean,False,"Show Event block?"

Public Function Main(source As Object, eventId As String, eventArgs As ISKeyValueList, ByRef handled As Boolean, ByRef returnValues As ISKeyValueList, ByRef text As String) As Boolean

  ' Assume Success
  Main = True

  ' Use Summary Page from Account Application Type (pass ContextData so Constants etc are available to the Summary Script)
  text = finBL.SummaryPageFunctions.AccountAppSummary(False, DirectCast(source, finAccountApp), ScriptInfo.ContextData.ToKeyValueList(), ScriptInfo.Constants.ToKeyValueList())

End Function