new bcdui.core.lifecycle.AutoRefresh(args)
core/lifecycle/autoRefresh.js, line 29
| Name | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
args |
Object |
The parameter map contains the following properties:
|
Example
let arModel = myCube.getPrimaryModel().getPrimaryModel();
new bcdui.core.lifecycle.AutoRefresh({ model: arModel });
Members
-
staticbcdui.core.lifecycle.AutoRefresh.strategy
-
x Pre-defined strategies for activeIf and onModified arguments of AutoRefresh
Properties:
Name Type Description activeIfObject Predefined callbacks for args.activeIf Properties
Name Type Description bcdIsAutoRefreshInFilterfunction True if bRef 'bcdIsAutoRefresh' is part of f:Filter of the requestModel of an args.model being a SimpleModel modifiedIfObject Predefined callbacks for args.modifiedIf Properties
Name Type Description wrsTsfunction Check on /*/@ts onModifiedObject Predefined callbacks for args.onModified Properties
Name Type Description applyActionfunction Reload page if modification is found Example
new bcdui.core.lifecycle.AutoRefresh({ model: arModel, activeIf: bcdui.core.lifecycle.AutoRefresh.strategies.activeIf.bcdIsAutoRefreshInFilter });
Methods
-
isActive()
core/lifecycle/autoRefresh.js, line 76 -
Check whether we are still active according to args.activeIf