Page tree

Versions Compared

Key

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

...

 It is a static class, used for waitCursor and progressState functionality. The class provides methods like showWaitCursor, hideWaitCursor, showProgressState, hideProgressState, setProgressStateForLinks, createLogger and others.


debugModeproperty  - can be set to true or false and it’s used for the log level and for showing/hiding the blur on window in the progressState. If debugMode is true, than log.level is debug, else log.level is warn. Default is false

hasActiveProgressState property- this property returns true or false depending if the progressState is on or off. Default is false.

showWaitCursor() - method for showing the loading cursor in the panel. accepts as a parameter the dynObject

example :

Code Block
akioma.invokeServerTask({ 
                name: 'Akioma.Swat.FilterBT',
                methodName: 'GetFilters', 
                paramObj: {
                    plcParameter: oData
                },
                showWaitCursor: true,
                uiContext: oSelf.dynObject
            })


Code Block
    akioma.WaitCursor.showWaitCursor(opts.uiContext);


Image Added

 


showProgressState() - method for showing the progressState which will block the user from clicking on buttons inside the window/container object and show/hide blur depending on the debugMode property.

example of waitCursor + progressState with debugMode set to true