Article Details
Id:15887
Product:finPOWER Connect
Type:NEW
Version:3.01.11
Opened:19/02/2019
Closed:21/02/2019
Released:03/04/2019
Job: J021902

HTML Widgets; New widget.ArrayAllowLookupById to extend array functionality

A new widget.ArrayAllowLookupById method has been added to allow JavaScript arrays (collections) to have a case-insensitive GetItem(id) method.

The can be used as follows (assumes the AccountTypes collection contains items with both AccountTypeId and Description properties:

widget.ArrayAllowLookupById(AccountTypes, "AccountTypeId");
window.alert(AccountTypes.GetItem("CC").Description);