Article Details
Id: | 12444 |
Product: | finPOWER Connect |
Type: | NEW |
Version: | 2.02.03 |
Opened: | 21/11/2014 |
Closed: | 21/11/2014 |
Released: | 04/12/2014 |
Job: | J014517 |
Decision Cards; New business layer method to get Decision Outcome Item by code
A new business layer method has been added to finDecisionOutcomeItems to retrieve the first item in the collection given a code.
Unlike many collections that have an ItemById property, this new method is named finDecisionOutcomeItems .ItemByCode.
The reason for this is that the collection is not keyed on this code (as say the Branches collection is keyed on BranchId). Instead, the code can just be used to identify an item and potentially, more than one item in the collection can exist with the same code.
This method will not cause an error if no item with the specified code exists. Instead, it will return Nothing, therefore any calling Script should test the return value to avoid errors.