afterLoad function (Genie)
afterLoad() is a special function thatĀ allows you to customize a Genie screen after the screen has been rendered and all designer enhancements have been applied. Ā If defined, it will be called for every Genie screen.
The global flag pui.genie.isCustomized can be used to determine if the current Genie screen has been customized with the Visual Designer.
Example:
function afterLoad() {
// if it is past 5pm, change screen's tab panel style to Bright so that it is easier to see
if (pui.genie.isCustomized && (new Date()).getHours() > 17 && getObj("TabPanel1") != null) {
applyProperty("TabPanel1", "tab panel style", "Bright");
applyProperty("TabPanel1", "field type", "tab panel");
}
}
Some documentation pages have recently moved to a new section: Profound AppDev. If you are having trouble finding specific pages, try the documentation search capability or reach out to our Support team!