No announcement yet.
  • Filter
  • Time
Clear All
new posts

  • SmartClient 8.0:Patch for error drawing HTMLFlow

    In SmartClient release 8.0 (isc.version number "SC_SNAPSHOT-2011-01-05") a bug was introduced whereby HTMLFlow components would throw an error on draw().
    The following patch code added to the HTML bootstrap file in your application after loading the SmartClient libraries fixes this issue:
    if (window.isc != null) {
        if (isc.version.startsWith("SC_SNAPSHOT-2011-01-05/")) {
            if (isc.HTMLFlow != null) {
                isc.HTMLFlow.addProperties({modifyContent:function () {}});
        } else {
            isc.Log.logWarn("Patch for SmartClient 8.0 final release (reported version 'SC_SNAPSHOT-2011-01-05/') " +
                "included in this application. " + 
                "You are currently running SmartClient verion '"+ isc.version + 
                "'. This patch is not compatible with this build and will have no effect. " +
                "It should be removed from your application source.");
    Note: This patch is also required for SmartGWT 2.4 Enterprise, Pro and Power editions, which have the same underlying SmartClient JavaScript code. The SmartGwt 2.4 LGPL release should not require this patch code.

    To apply the patch code to a SmartGWT application, simply add a <script> block containing the above code to the bootstrap HTML file under your war directory, after the <script src=applicationname/applicationname.nocache.js></script> block.
    Last edited by Isomorphic; 6th Jan 2011, 11:44.