| Id: | 19184 |
| Product: | finPOWER Connect Cloud |
| Type: | FIX |
| Version: | 3.04.04.26 |
| Opened: | 27/04/2022 |
| Closed: | 27/04/2022 |
| Released: | 13/06/2022 |
| Job: | J028637 |
Account form; Transactions grid; If multiple layouts are available, top-right button overlaps filter box
When a grid as multiple layouts (as defined by a "finPOWER Connect Cloud Actions" type Script), the grid would show a button with a down arrow on a dark background in the top-left corner.
If the grid, e.g., the Account, Transactions grid, was showing a filter box above it, this button would overlap the filter box rather than aligning with the top-left of the grid header row.
This has been fixed and the styling of this button changed to use a fixed, light-yellow colour with an icon displaying 3 stacked cubes.
The following "finPOWER Connect Cloud Actions" Script can be used to demonstrate multiple grid layouts for the Transactions grid. This must then be configured for use on the finPOWER Connect Cloud Configuration form, "Forms & Actions", "Account" page:
Option Explicit OnOption Strict OnPublic Function Main(source As Object,headerInfo As finCloudConnectFormHeaderInfo,requestInfo As finScriptRequestInfo) As BooleanDim Account As finAccount' Assume SuccessMain = True' Change Transactions grid layout and allow alternate layoutsIf TypeOf source Is finAccount ThenAccount = DirectCast(source, finAccount)Select Case Account.AccountClassCase isefinAccountClass.Deposit, isefinAccountClass.Disbursement' Use default grid layoutCase Else' Custom layout for LoansWith headerInfo.Pages.ItemByPageId("Transactions")With .Grid1Layout.Columns.FromCsvString("Date,ElementId,Debit,Credit,DirectDebitStatus,DirectDebitValue,Balance,PromiseStatus,PromiseValue,Notes")End With' Alternate layout 1With .Grid1AlternateLayouts.Add("Overdues", "Overdue Focused").Columns.FromCsvString("Date,ElementId,Balance,Overdue,BalanceOverdue")End With' Alternate layout 1With .Grid1AlternateLayouts.Add("Contractual", "Contractual Focused").Columns.FromCsvString("Date,ElementId,Balance,OverdueContractual,BalanceOverdueContractual")End WithEnd WithEnd SelectEnd IfEnd Function