Platform Package reference: Function _RequestUpdate()

Description of the function _RequestUpdate() available in all Platform Packages for WebGL JavaScript compatible target systems. This function is intended to be used when integrating the Embedded Wizard created GUI application with the underlying graphics subsystem, graphics hardware or other external GUI applications coexisting on the same system.

Declaration

function _RequestUpdate()

Discussion

The function _RequestUpdate() triggers the application to perform the next update cycle. Usually, updates are performed automatically in response to user interactions or timer expirations. However, if Embedded Wizard functions are invoked from JavaScript code running outside of the Embeded Wizard application (e.g. in context of a network event handler), the application does not know anything about that event. In such case your implementation need to invoke _RequestUpdate() explicitly. For example:

/* Obtain access to the global autoobject 'Application::DeviceObject' */ var device = EmWiApp._GetAutoObject( EmWiApp.Application.DeviceObject ); /* In context of the object invoke the method 'EngineStarted' */ device.EngineStarted( 1369 ); /* Trigger the update of the GUI application */ EmWiApp._RequestUpdate();