Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

refreshScheme - event for triggering refresh data in external screen


Prompting the HasChanges Dialog in ExternalScreens

External screens can also have changes that are bound to a secondary external screen. In this use-case it is possible to programmatically prompt the user with the has changes dialog by adding an EventBeforeSelect on the corresponding Grid object.

Example:

/**
     * Method to execute before row selecting to display ExternalScreen hasChanges prompt 
     * @param grid 
     */
    export function onBeforeDossierSelect(grid: akioma.swat.Grid) {
        const payload:any = {};
        const DocviewerExternalScreen = akioma.ExternalScreen.getExternalPopup('sDocViewerExternalWindow');
        const hasChangesExternal:boolean = DocviewerExternalScreen.akioma.swat.Root.getFirstChildByType('businessEntity').hasChanges();
        
        if(hasChangesExternal) {
            payload.promptCursorChange = true;
        }



        return payload;
    }