Skip to main content
Version: 1.x

Function: setFilterBarField()

setFilterBarField(page, filterBarId, fieldName, value, options?): Promise<void>

Sets a filter field value on the filter bar.

Parameters​

page​

ListReportPage

Playwright Page (or compatible subset).

filterBarId​

string

The UI5 control ID of the filter bar.

fieldName​

string

The name/key of the filter field.

value​

string

The value to set.

options?​

ListReportOptions

Optional timeout and stability settings.

Returns​

Promise<void>

Intent​

Set a filter field value on the SmartFilterBar or MDC FilterBar.

Capability​

fe.listReport.setFilter

Throws​

ControlError if the filter bar or field is not found.

Example​

await setFilterBarField(page, 'app--filterBar', 'CompanyCode', '1000');