Article Details
Id: | 22110 |
Product: | finPOWER Connect |
Type: | NEW |
Version: | 6.00.01 |
Opened: | 19/03/2025 |
Closed: | 24/03/2025 |
Released: | 18/08/2025 |
Job: | J035355 |
Business Layer; finPool; SaveWithoutRefresh method added to allow Scripts to avoid refreshing the Global Collection when updating the record
Whenever a record in a global collection, e.g., Branches, Pools etc is saved, the global collection, e.g., finBL.Pools, is flagged to require a complete refresh from the database the next time it is accessed.
This can result in slow performance if a global collection is updated regularly.
Scripts can now use the following method to save a Pool record without causing the global collection to be flagged as requiring a refresh:
Public Function Main(parameters As ISKeyValueList) As Boolean
Dim Pool As finPool
' Assume Success
Main = True
' Update Pool
Pool = finBL.CreatePool()
Main = Pool.Load("X")
If Main Then
Pool.Description = "Internal X"
'Main = Pool.Save()
Main = Pool.SaveWithoutRefresh()
End If
End Function
WARNING: The current User and/ or other Users of finPOWER Connect are not guaranteed to immediately see this update in certain areas of the system if this method is used.