NEW1.06.00 · Released 1 August 2012
NEWfinPOWER Connect
Released in
1.06.00
1 August 2012
- Opened13 Jul
- Closed13 Jul
- Released1 Aug
Article 10311
Job J010001
Scripting; Summary Text Scripts enhanced
Summary Text type Scripts have been enhanced so that they can control more formatting details on form headers.
The following can now be set:
- Background Colour
- Title
- Title Colour
- Title Bold
- Summary
- Summary Colour
- Summary Bold
The template Script has been updated to provide an example of using the new functionality.
The following forms have been updated to support this new functionality:
- Accounts
- Clients
- Security Statements
- Workflows
The following Script will update the Accounts form header if the Account Notes start with the text '<critical>':
Public Function Main(ByVal source As Object, _ByVal target As iseSummaryTextTarget, _ByVal contextData1 As Object, _ByVal contextData2 As Object, _ByRef text As String) As BooleanDim Account As finAccountDim SummaryText As ISSummaryText' Assume SuccessMain = True' InitialiseAccount = DirectCast(source, finAccount)SummaryText = finBL.CreateSummaryText()' Critical MessageIf StrComp(Left(Account.Notes, 10), "<CRITICAL>", CompareMethod.Text) = 0 ThenWith SummaryText.BackgroundColour = "orange".TitleColour = "red".Summary = Mid(Account.Notes, 11).SummaryColour = "yellow"text = .ToXmlString()End WithEnd IfEnd Function