security.applicationScreensInMenu
Returns a list of screens used in a menu.
js
security.applicationScreensInMenu(applicationId, menuPageId)Parameters
| Parameter | Type | Description |
|---|---|---|
applicationId | string | The application id. |
menuPageId | string | The id of the menu. |
Returns
objectAn array of screen objects for the screens the menu links to. null when the application or menu page is not found.
Examples
js
const screens = security.applicationScreensInMenu("Finance App", "page-menu-1");
for (const screen of screens) {
console.log(screen.title);
}