NEW3.03.03 · Released 1 October 2020
NEWfinPOWER Connect
Released in
3.03.03
1 October 2020
- Opened13 Jul
- Closed13 Jul
- Released1 Oct
Article 17161
Job J024610
Business Layer; ISCodeDescriptionList objects can now be populated from a DataTable
The following function has been added to the ISCodeDescriptionList Class: FromDataTable(dataTable, Code, Description)
This allows a Code Description List to be populated from two columns of a DataTable.
An example of how this may be used is demonstrated below.
Public Function Main(parameters As ISKeyValueList) As BooleanDim CodeDescriptionList As ISCodeDescriptionList' Assume SuccessMain = True' InitialiseCodeDescriptionList = finBL.Runtime.CreateCodeDescriptionList()' Populate List with US StatesIf CodeDescriptionList.FromDataTable(finBL.Addressing.GetStatesDataTable("US"), "Code", "Description") ThenfinBL.DebugPrint(CodeDescriptionList.ToJsonString())ElseMain = FalseEnd IfEnd Function