Article Details
Id:20000
Product:finPOWER Connect
Type:NEW
Version:4.00.01
Opened:02/03/2023
Closed:02/03/2023
Released:20/03/2023
Job: J030576

Script compile; added "Alternate" Obsolete flag

Added a new optional "ALTERNATE" flag to obsoleted members.

When this is defined it means the obsoleted function has an alternative that could be used - but its fine to continue using. The alternate function may provide better functionality, additional parameters, be future proofed or may be more compatible with C#.

These will not be shown as "obsoleted", and unless selected, omitted from warning lists.

On Script pages on, for example, the Scripts form, the "Build Script" button now has option to show/ hide "Show Alternate member information". These items are shown with an information icon.

The Tools, Utilities, Script Compilation Errors Report has an option to show/ not show Alternate Warnings (under Error Types).

The following functions have been updated, or reintroduced, to use the new ALTERNATE flag:

  • finBL
    • CreateAccountPaymentReverse
      • Use CreateBankTransactionReverse instead.
    • CreateAccountStatementCycleChange
      • Use CreateAccountStatementChange instead.
  • finAccount
    • GetUnclearedFunds
      • Use GetUnclearedFunds2 instead.
  • finClient
    • AddresseeNameResolved
      • Use AddresseeNameResolved2 instead.
    • NameFull
      • Use GetFullName instead.
  • finDocumentManagerFunctions
    • CreateUniqueFileNameAccount
    • CreateUniqueFileNameAccountApp
    • CreateUniqueFileNameClient
    • DeleteDocumentManagerFile
      • Avoid using as does not support sub-folders or potential new services in the future.
    • DocumentManagerFileExists
      • Avoid using as does not support sub-folders or potential new services in the future.
    • DocumentManagerFolderCreate
      • Avoid using as does not support sub-folders or potential new services in the future.
    • DocumentManagerFolderExists
      • Avoid using as does not support sub-folders or potential new services in the future.
  • finSettingsWebServices
    • ElectronicSignatureDefaultServiceId
      • This property was removed in version 4.0.0 but a Read-Only property has been reintroduced.
      • WARNING: This returns the "Global" Cost Centre's default. If using Cost Centres this may not work as expected.
  • ISSelectQueryBuilder
    • ExecuteDataReader
      • Use ExecuteDisconnectedDataReader instead.
  • ISSummaryTableCellWordDocumentOptions
    • ParagraphKeepLinesTogether
      • Use ParagraphFormat.KeepLinesTogether instead. NOTE: This option does not support Nothing/Null.
  • ISSummaryTableWordDocumentOptions
    • BorderColour
      • This property was removed in version 4.0.0 and has been reintroduced.
      • Use Borders object and BordersEnabled property instead
    • BorderColourCell
      • This property was removed in version 4.0.0 and has been reintroduced.
      • Use Borders object and BordersEnabled property instead
    • ParagraphKeepLinesTogether
      • This property was removed in version 4.0.0 and has been reintroduced.
      • Use ParagraphFormat.KeepLinesTogether instead. NOTE: This option does not support Nothing/Null.
    • SetBordersCell
      • This property was removed in version 4.0.0 and has been reintroduced.
      • Use SetBordersCells instead.

In addition, the following objects, which include a finBankingDetails object, now use the new ALTERNATE flag for the obsoleted properties that were replaced by the finBankingDetails object. Note, there are new properties and functionality available on the finBanking object.

  • finAccountBankingDetail
  • finAccountClose
  • finAccountDirectDebit
  • finAccountDisbursementPayee
  • finAccountDisbursementsApproveItem
  • finAccountDisbursement
  • finAccountInterestPayout
  • finAccountPaymentDetailsUpdate
  • finAccountPayment
  • finAccountStdTran
  • finAccountWithdrawal
  • finBankAccountSuspenseItem
  • finBankTransactionEdit
  • finBankTransactionView
  • finBatchBankTransaction
  • finLodgement

The following built-in script has been updated:

  • GeneralUserInterface_ScriptCompileReport
    • Version: 3.11 (02/03/2023)