APM Advanced Customization Examples with Modern Template, v15.1+
Introduction
This guide will walk through how the logon, webtop, and other UI pages are created by APM, how it works, and some examples.The new APM modern template has an updated look in both mobil...
Updated Feb 09, 2022
Version 2.0Lucas_Thompson
Employee
Joined January 29, 2020
DmitryT
Oct 09, 2024Nimbostratus
Hello! how do I get an authorized user's email on the webtop page? Via the user-webtop file.js in the store object - this data is missing, session is an empty string. Thanks
import { App, EventType, PageType } from 'apmui';
const app = App.get();
app.subscribe(EventType.WEBTOP_CONFIGURATION_COMPLETE, (_, store) => {
if (store.pageType !== PageType.WEBTOP) {
return;
}
const session = '%{session}';
const sessionJSON = JSON.stringify('%{session}', null, 2);
console.log({ store, session, sessionJSON });
});