getItemObjects()

Returns an array of list items that match the currently applied filters. Call this method for UI-Binding only. Use getAllItems() if you want to get all existing items in the list.

Required Editions

Available in: Lightning Experience in Professional, Unlimited, and Enterprise Editions that have Consumer Goods Cloud enabled.

Returns

Filtered items in the list.

Example
Example
var orderMetas = this.getItemObjects();
var pKey = " ";
if (orderMetas.length >0) {
pKey = orderMetas[0].getPKey();