Skip to main content

Function: getEntityCount()

getEntityCount(page, path, options?): Promise<number>

Defined in: src/modules/odata.ts:404

Reads the number of entities in a binding from the UI5 model.

Parameters​

page​

ODataPage

Playwright Page (or compatible subset).

path​

string

OData model path (must start with '/').

options?​

ODataOptions

OData options (timeout, modelName).

Returns​

Promise<number>

The entity count (0 if no data or not an array).

Example​

const count = await getEntityCount(page, '/Products');