Get any model instance in the current engine by model uid (e.g. BlockModel, PageModel, ActionModel). Use it to access other blocks/pages/actions from RunJS.
If you only need the model of the current context, prefer ctx.model or ctx.blockModel.
| Parameter | Type | Description |
|---|---|---|
uid | string | Unique identifier of the target model instance |
searchInPreviousEngines | boolean | Optional, default false. When true, search from the top of the view stack to root (useful for modals, multi-level views, etc.) |
FlowModel subclass instance (e.g. BlockModel, PageModel) if foundundefined if not founduid. When searchInPreviousEngines: true, it searches the current engine and upstream engines (previousEngine chain), starting from the top of the stack.uid (e.g. get another block model and read/write its resource or form).ctx.getModel for advanced control of other models.ctx.model or ctx.blockModel.