Rocket Modern Experience (formerly LegaSuite)

 View Only

Dojo charts no longer working after upgrading to MX Web versions 10.3.x

  • 1.  Dojo charts no longer working after upgrading to MX Web versions 10.3.x

    Posted 08-03-2023 05:41
    Edited by Roger Van Valen 08-03-2023 06:09

    We were notified by customers that they have been using Dojo charts in their Rocket MX Web solution, and as of an upgrade to Rocket MX Web version 10.3.x these did no longer appear. There was also no browser console error displayed.

    After analysis we found out that the root cause is the update of our internal Qooxdoo framework to version 7.5. It turns out there is an incompatibility between Qooxdoo 7.5 and the Dojo charts version 1.7 and up. Both of these components define a javascript function by the name require()and this causes a conflict.

    The conflict can be relatively easy be fixed by adding a prefix to the original function.

    In the index.html or index.jsp, prior to loading the web client in startClient()  (which will load the Qooxdoo framework), this code can be added:

       <script type="text/javascript" src=""></script>
       <script type="text/javascript">
     	let dojocharts = {
     		require : require

    This would look like this:

    Example change in index.html
    From now, you can use dojocharts.require() instead of the regular require() function call to work with the Dojo charts.
    That would look like this - see the old code commented out:
    Example usage of dojo require() with the prefix
    This last fix would need to be applied to all webpages and/or client side JavaScripts where the dojo require() function was used with the callback function. Calls that used dojo.require() should nog be changed..
    This fix will make sure your dojo charts will become visible again.

    Roger van Valen
    Senior manager, software engineering
    Rocket Software
    Dordrecht, The Netherlands