Page tree
Skip to end of metadata
Go to start of metadata

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");
  }
}
  • No labels